as mention above, my current script have part which it's keeps repeating the same message, could someone make it more easy and simple template, which later i can use to edit to add more and much more easy to manage?
like edit a configuration settings for rewards, require item for option 1, option 2 or anything came up on your idea..
thanks..
Spoiler
- script GreenTree FAKE_NPC,{
soundeffect "menu.wav",0;
mes "What do you want to do ?";
next;switch(select("- Gather Branch:- Gather Log:- Gather Tree Sap:- Cancel")){case1:
next;switch(select("- Use Stone Knife:- Cancel")){case1:if(rentalcountitem(40005)<1){goto no_stone_knife;}
next;
soundeffect "menu.wav",0;switch(select("- Start Gathering:- Cancel")){case1:if(countitem(40008)==1){
mes "Gathering in progress";
mes "Do not move or gathering";
mes "progress will be cancel.";
soundeffect "gathering.wav",0;
addtimer 2,strnpcinfo(0)+"::OnTest";
progressbar "0x00ff00",2;
next;
mes "Gathering Completed";
soundeffect "menu.wav",0;
gathering_points +=1;
dispbottom "Gain +1 Gathering Points";
getitem 40023,1;
close3;}
mes "Gathering in progress";
mes "Do not move or gathering";
mes "progress will be cancel.";
soundeffect "gathering.wav",0;
addtimer 2,strnpcinfo(0)+"::OnTest";
progressbar "0x00ff00",2;
next;
mes "Gathering Completed";
soundeffect "menu.wav",0;
getitem 40023,1;
close3;case2:goto cancel;}case2:goto cancel;}case2:
next;switch(select("- Use Makeshift Axe:- Cancel")){case1:if(rentalcountitem(40029)<1){goto no_axe;}
next;
soundeffect "menu.wav",0;switch(select("- Start Gathering:- Cancel")){case1:if(countitem(40008)==1){
mes "Gathering in progress";
mes "Do not move or gathering";
mes "progress will be cancel.";
soundeffect "gathering.wav",0;
addtimer 2,strnpcinfo(0)+"::OnTest";
progressbar "0x00ff00",2;
next;
mes "Gathering Completed";
soundeffect "menu.wav",0;
gathering_points +=1;
dispbottom "Gain +1 Gathering Points";
getitem 40027,1;
close;}
mes "Gathering in progress";
mes "Do not move or gathering";
mes "progress will be cancel.";
soundeffect "gathering.wav",0;
addtimer 2,strnpcinfo(0)+"::OnTest";
progressbar "0x00ff00",2;
next;
mes "Gathering Completed";
soundeffect "menu.wav",0;
getitem 40027,1;
close;case2:goto cancel;}case2:goto cancel;}case3:
next;switch(select("- Use Stone Knife:- Cancel")){case1:if(rentalcountitem(40005)<1){goto no_stone_knife;}
next;
soundeffect "menu.wav",0;switch(select("- Start Gathering:- Cancel")){case1:if(countitem(40008)==1){
mes "Gathering in progress";
mes "Do not move or gathering";
mes "progress will be cancel.";
soundeffect "gathering.wav",0;
addtimer 2,strnpcinfo(0)+"::OnTest";
progressbar "0x00ff00",2;
next;
mes "Gathering Completed";
soundeffect "menu.wav",0;
gathering_points +=1;
dispbottom "Gain +1 Gathering Points";
getitem 40190,1;
close3;}
mes "Gathering in progress";
mes "Do not move or gathering";
mes "progress will be cancel.";
soundeffect "gathering.wav",0;
addtimer 2,strnpcinfo(0)+"::OnTest";
progressbar "0x00ff00",2;
next;
mes "Gathering Completed";
soundeffect "menu.wav",0;
getitem 40190,1;
close3;case2:goto cancel;}case2:goto cancel;}case4:goto cancel;}
no_stone_knife:
next;
soundeffect "menu.wav",0;
mes "^ff0000 Require";
mes "- 1 Stone Knife ^000000";
close3;
no_axe:
next;
soundeffect "menu.wav",0;
mes "^ff0000 Require";
mes "- 1 Axe ^000000";
close;
cancel:
soundeffect "menu.wav",0;
mes "Cancel..";
close3;OnTest:
end;}// DUPLICATE//=================================================================
new_1-3,92,63,6 duplicate(GreenTree)GreenTree#1000 11000
new_1-3,96,65,6 duplicate(GreenTree)GreenTree#1001 11000
Question
Dolphin86
as mention above, my current script have part which it's keeps repeating the same message, could someone make it more easy and simple template, which later i can use to edit to add more and much more easy to manage?
like edit a configuration settings for rewards, require item for option 1, option 2 or anything came up on your idea..
thanks..
Link to comment
Share on other sites
5 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.