Hi guys! I'm a newbie in scripting. Just started learning today and just need your help on what's wrong with this script that I made?
I would really appreciate if you'll pin point my mistakes so that I will learn. Thank you!
// Item Trader
prontera,147,170,4 script ItemTrader622,{
mes "[Item Trader]";
mes "Hi! How can I help you?";
mes "Item Ticket = 100 Yggdrasil Berry";
mes "Item Ticket = 30 Poison Bottles";
menu "Item Ticket to Yggdrasil Berry", C_1,"Item Ticket to Poison Bottle", C_2,"Yggdrasil Berry to Item Ticket", C_3,"Poison Bottle to Item Ticket" C_4;
C_1:if(checkweight(607,100)==0)goto C_OW;if(countitem(7284)<1)goto C_NI;
delitem 7284,1;
getitem 607,100;
mes "[Item Trader]";
mes "[There you go!]";
close;
C_2:if(checkweight(678,30)==0)goto L_OW;if(countitem(7284)<1)goto C_NI;
delitem 7284,1;
getitem 678,300;
mes "[Item Trader]";
mes "[There you go!]";
close;
C_3:if(countitem(607)<100)goto C_NI;
delitem 607,100;
getitem 7284,1;
mes "[Item Trader]";
mes "[There you go!]";
close;
C_4:if(countitem(678)<30)goto C_NI;
delitem 678,30;
getitem 7284,1;
mes "[Item Trader]";
mes "[There you go!]";
close;
C_OW
mes "[Item Trader]";
mes "Sorry you're overweight";
close;
C_NI:
mes "[Item Trader]";
mes "[You don't have the items]";
close;}
Question
rochenel27
Hi guys! I'm a newbie in scripting. Just started learning today and just need your help on what's wrong with this script that I made?
I would really appreciate if you'll pin point my mistakes so that I will learn. Thank you!
Link to comment
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.