Jump to content
  • 0

help with this script


Kariton Revolution

Question


  • Group:  Members
  • Topic Count:  161
  • Topics Per Day:  0.04
  • Content Count:  429
  • Reputation:   5
  • Joined:  11/21/11
  • Last Seen:  

prontera,144,144,4    script    Rebirth NPC    83,{
set @name$,"[Rebirth NPC]";
set .max,300; //Change the max no. of reborns here
mes @name$;
mes "If you're a max of 255/130 you can rebirth 300 times";
mes "And during the 150th reborn you will become a Super Player!";
next;
menu    "Reborn Now",-,"Uhh.. See ya!",bye;
if(BaseLevel != 255 && JobLevel != 130){mes @name$; mes "You don't meet the level requirements"; close;}
if(BaseLevel == 255 && JobLevel == 130);
mes @name$;
mes "Are you sure you wont to have your rebirth now?";
next;
if(select("Yes","No")!=1){mes @name$; mes "Goodbye!"; close;}
if(reborn[0] < 300){mes @name$; mes "Whoa, you've already reached the maximum!"; close;}
if(reborn[0] < 150){
jobchange 4001;
set reborn[0],reborn[0]+1;
mes @name$;
mes "Enjoy!";
close;
}
if(reborn[0] == 150);
set reborn[0],reborn[0]+1;
query_sql "UPDATE login SET level=1 WHERE account_id='"+getcharid(3)+"'";
mes @name$;
mes "Enjoy!";
close;

 

 

when i click the npc nothing happen :(

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  


prontera,144,144,4 script Rebirth NPC 83,{

set @name$,"[Rebirth NPC]";

set .max,300; //Change the max no. of reborns here

mes @name$;

mes "If you're a max of 255/130 you can rebirth 300 times";

mes "And during the 150th reborn you will become a Super Player!";

next;

menu "Reborn Now",-,"Uhh.. See ya!",bye;

if(BaseLevel != 255 && JobLevel != 130){mes @name$; mes "You don't meet the level requirements"; close;}

if(BaseLevel == 255 && JobLevel == 130);

mes @name$;

mes "Are you sure you wont to have your rebirth now?";

next;

if(select("Yes","No")!=1){mes @name$; mes "Goodbye!"; close;}

if(reborn[0] < 300){mes @name$; mes "Whoa, you've already reached the maximum!"; close;}

if(reborn[0] < 150){

jobchange 4001;

set reborn[0],reborn[0]+1;

mes @name$;

mes "Enjoy!";

close;

}

if(reborn[0] == 150);

set reborn[0],reborn[0]+1;

query_sql "UPDATE login SET level=1 WHERE account_id='"+getcharid(3)+"'";

mes @name$;

mes "Enjoy!";

close;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  161
  • Topics Per Day:  0.04
  • Content Count:  429
  • Reputation:   5
  • Joined:  11/21/11
  • Last Seen:  

sir anakid can you change it to if 150 reborn @skillall ? Thankyou Very much sir :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  


prontera,144,144,4 script Rebirth NPC 83,{

set @name$,"[Rebirth NPC]";

set .max,300; //Change the max no. of reborns here

mes @name$;

mes "If you're a max of 255/130 you can rebirth 300 times";

mes "And during the 150th reborn you will become a Super Player!";

next;

menu "Reborn Now",-,"Uhh.. See ya!",bye;

if(BaseLevel != 255 && JobLevel != 130){mes @name$; mes "You don't meet the level requirements"; close;}

if(BaseLevel == 255 && JobLevel == 130);

mes @name$;

mes "Are you sure you wont to have your rebirth now?";

next;

if(select("Yes","No")!=1){mes @name$; mes "Goodbye!"; close;}

if(reborn[0] < 300){mes @name$; mes "Whoa, you've already reached the maximum!"; close;}

if(reborn[0] < 150){

jobchange 4001;

set reborn[0],reborn[0]+1;

mes @name$;

mes "Enjoy!";

close;

}

if(reborn[0] == 150);

atcommand "@skillall";

set reborn[0],reborn[0]+1;

query_sql "UPDATE login SET level=1 WHERE account_id='"+getcharid(3)+"'";

mes @name$;

mes "Enjoy!";

close;

}

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...