Jump to content
  • 0
Sign in to follow this  
K4m4r40

Script - npc shop

Question

Olá pessoal,

Estou querendo diminuir meu numero de "Npcs de Shop" 
em meu mercado para algo mais simples e organizado.

Já vi em alguns servidores, npcs de shop desse forma porém não
tenho nenhum script para usar como base.


NPC menu:

prontera.gat,164,193,3    script    Chico, O vendedor    880,{

set @npc$,"[^FF0000 Chico, O vendedor ^000000]";
    
mes @npc$;
mes "Olá, ^FF0000"+strcharinfo(0)+"^000000!";}
mes "Bem Vindo ao Mercado Negro!";
next;
mes @npc$;
mes "O que deseja comprar?";
menu 
"=> Armas",armas,
"=> Armaduras",armaduras,
"=> Nada, obrigado.",m_exit;

armas:
next;
mes @npc$;
mes "Ok, Boas compras.";
//???????
close;

armaduras:
next;
mes @npc$;
mes "Ok, Boas compras.";
//???????
close;


m_exit:
next;
mes @npc$;
mes "Ok, Volte sempre.";
close;
}
 

 

NPC shop:
prt_in,178,105,3    shop    Weapons_1    4_F_07,6258:-1
prt_in,178,103,3    shop    Armor_1    4_F_07,6258:-1

 

Agradeço a ajuda.

 

Edited by K4m4r40

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

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.