Jump to content
  • 0
Sign in to follow this  
Yazoo

Ajuda com script

Question

Ola...

bom estou tendo um problema num script ...

bom quando o script realiza a funlão mesmo com o close no final o mesmo não fecha

 

 

 

set @opcao, select("Nada, obrigado:Renascer!:Só minhas habilidades");
switch(@opcao){
case 2:
mes "[^666699 Profissões~ ^000000]";
mes "Ok, esta será a " +reborn+ "ª vez que você renasce.";
set @points, reborn*(100+20*(getgmlevel()>0 || reborn>=12));
mes "Você vai voltar ao nível 1 com a mesma classe, mas com " +@points+ " pontos de atributo.";
mes "Tem certeza?";
next;
if(select("Não, acho que não...:Sim, tenho!")==1);
mes "[^666699 Profissões~ ^000000]";
mes "Parabéns, agora você renasceu!";
resetstatus;
set BaseLevel, 1;
set StatusPoint, @points;
set reborn, reborn + 1;
query_sql "Update `char` Set resets="+(reborn-1)+" Where char_id="+getcharid(0);
close;

 
ja tentei usar end mais tn n funciona e fica assim  post-8966-0-00669100-1432772157_thumb.jpg
 
alguem sabe como resolvo isso ?

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

 case 2:
                mes "[^666699 Profissões~ ^000000]";
                mes "Ok, esta será a " +reborn+ "ª vez que você renasce.";
                @points = reborn*(100+20*(getgmlevel()>0 || reborn>=12));
                mes "Você vai voltar ao nível 1 com a mesma classe, mas com " +@points+ " pontos de atributo.";
                mes "Tem certeza?";
                next;
switch(select("Não, acho que não...:Sim, tenho!"))
{
case 1:
close;
 
case 2:
mes "[^666699 Profissões~ ^000000]";
mes "Parabéns, agora você renasceu!";
resetstatus;
BaseLevel = 1;
StatusPoint = @points;
reborn++;
query_sql "UPDATE `char` SET `resets` = "+(reborn-1)+" WHERE char_id="+getcharid(0)+"";
close;
}

Share this post


Link to post
Share on other sites
  • 0

adicione return; na última linha antes de fechar a function:

 

exemplo:

 

function<tab>script<tab>jobmaster<tab>{
bla blabla
bla bla bl a 
lba lb alba
código todo aqui
bla bla bla
 
return;
}

Share this post


Link to post
Share on other sites
  • 0

Consegui arrumar, o problema não era bem na script é que faltava uma tabela sql para que o npc fechasse

muito obrigado pela ajuda

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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