Can someone help me,I did a script and I dont know whats wrong.
prontera,93,97,5 script Larry 953,{ mes "[Larry]"; mes "Hello stranger,who are you?"; next; switch(select("I am "+strcharinfo(0)+":Your friend Tom sent me here")) { case 1: mes "[Larry]"; mes "Hello"+strcharinfo(0)+" what do you want?"; next; switch(select("Buy items:Nothing.Bye")) { case 1: mes "[Larry]"; mes "Well, I have a sword and an armor.What do you want?"; next; switch(select("I want the sword:I want the armor")) { case 1: mes "[Larry]"; mes "The sword costs 1000000.Do you want to buy?"; next; switch(select("Yes….I do:No,sorry")) { case 1: mes "[Larry]"; mes "Ok here you have your sword."; next; getitem 13062,1; set Zeny,Zeny-1000000; next; mes "[Larry]"; mes "Ok good bye."; close; case 2: mes "[Larry]"; mes "Oh….Well.So good bye."; close; case 2: mes "[Larry]"; mes "The armor costs 2000000.Do you want to buy it?"; next; switch(select("Yes,I do:No sorry")) { case 1: mes "[Larry]"; mes "Ok.Here you have your armor."; next; getitem 2751,1; set Zeny,Zeny-2000000; next; mes "[Larry]"; mes "Ok good bye."; close; case 2: mes "[Larry]"; mes "Oh…Well I will find someone else.Bye"; close; case 2: mes "[Larry]"; mes "Ok.Goodbye"; close; case 2: mes "[Larry]"; mes "Ahhh yes you are"+strcharinfo(0)+" what do you want?"; next; switch(select("Buy items:Nothing.Bye")) { case 1: mes "[Larry]"; mes "Well, I have a sword and an armor.What do you want?"; next; switch(select("I want the sword:I want the armor")) { case 1: mes "[Larry]"; mes "The sword costs 500000.Do you want to buy?"; next; switch(select("Yes….I do:No,sorry")) { case 1: mes "[Larry]"; mes "Ok here you have your sword."; next; getitem 13062,1; set Zeny,Zeny-500000; next; mes "[Larry]"; mes "Ok good bye."; close; case 2: mes "[Larry]"; mes "Oh….Well.So good bye."; close; case 2: mes "[Larry]"; mes "The armor costs 1000000.Do you want to buy it?"; next; switch(select("Yes,I do:No sorry")) { case 1: mes "[Larry]"; mes "Ok.Here you have your armor."; next; getitem 2751,1; set Zeny,Zeny-1000000; next; mes "[Larry]"; mes "Ok good bye."; close; case 2: mes "[Larry]"; mes "Oh…Well I will find someone else.Bye"; close; case 2: mes "[Larry]"; mes "Ok.Goodbye"; close; } } } } } } } } } } [/codeBOX]
Question
Lukas
Can someone help me,I did a script and I dont know whats wrong.
Edited by LukasLink to comment
Share on other sites
10 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.