Jump to content
  • 0
Sign in to follow this  
SM7997

[Pedido] Npc

Question

Hola, Buena tarde o noche, requiero un npc que venda puntos de skills a cambio de Gold Coins, no se si sea mucha molestia en ayudarme, les agradezco inmensamente, un abrazo.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Como no has especificado nada más, te dejo indicado el código que deberías introducir dentro de un NPC.

 

Si no sabes cómo meterlo dentro de un NPC puedes buscar en alguna guía básica de scripting.

 

mes "Te vendo ^00FF005 SkillPoints^000000 a cambio de ^0000FF1 Golden Coin^000000.";mes "¿Te parece?";if (select("Sí:No") == 1) { // Si selecciona sí	if (countitem(Gold_Coin)) { // Si tiene Golden Coins		delitem Gold_Coin, 1;		SkillPoint += 5;		mes "¡Muchas gracias! ¡Ahí tienes!";		close;	}}mes "Vaya, qué pena...";close;

 

Tiene lo mínimo para funcionar: te recomendaría que lo completaras y editaras a tu gusto.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.