im using point system to add +1 points for each time a player picks 1 of each activity such as below ( menu )
Spoiler
gathering:if(mastery ==3)goto finish;if(countitem(40008)>1){
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "You have already picked";
mes "GATHERING MASTERY.";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now select again..";
menu "Gathering",gathering,"Weapon And Tool Crafting",weapon,"Armor Crafting",armor,"Cooking",cookzz,"Slaughter",slaugh,"Processing",process;}
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Great pick!";
getitem 40008,1;
mastery +=1;
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now select again..";
menu "Gathering",gathering,"Weapon And Tool Crafting",weapon,"Armor Crafting",armor,"Cooking",cookzz,"Slaughter",slaugh,"Processing",process;
now here is the weird part (for me) when i have pick only 1 activity (menu), the script reads my mastery points as more then 3, when it should allow me to pick 2 more, what i am trying to do is player can only pick 3 activity from the menu list, onces player had pick up 3 diffrent type of activity the script should send to this below..
Spoiler
finish:
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Great now you have 3 main";
mes "MASTERY, remember if you";
mes "in lost or need help";
mes "ask in discord";
close3;
can someone help me with my mess up script..
full script (If someone can optimise and clean up my script that would be great help..) :
Spoiler
moc_para01,27,35,4 script FARHANA 532,{
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Hello, welcome to GUILD HALL,";
mes "how may i help you ?";
next;switch(select("- Benefit become a member ?:- I wish to register as guild member:- Nothing")){case1:
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Becoming a member of GUILD HALL";
mes "will enable you to boost your";
mes "MASTERY, take guild quest, and";
mes "many more...";
next;switch(select("- MASTERY ?:- Guild Quest ?:- Nothing")){case1:
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Yes mastery, such as gathering,";
mes "cooking, weapon and armor Crafting";
mes "as you progress on doing more of";
mes "those activity you will gain";
mes "more points to unlock more";
mes "higher tier stuff..";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "But sadly.. you can only have";
mes "3 main mastery to choose for.";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "as for the rest..";
mes "they will remain as tier 1";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "I would highly recomend to have";
mes "friends with diffrent mastery";
mes "so you can support each others";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "i guess that will that be all,";
mes "for now, see you soon..";
close3;case2:
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Guild Quest is a great help,";
mes "each member start from low rank";
mes "such a [D Rank] but you can";
mes "higher rank as you completed";
mes "more quest, higher quest get's";
mes "better reward!";
close3;case3:goto cancel;}case2:
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Ahh.. you wish to register,";
mes "sure i can do that, but i will";
mes "need 1 Durengo Coin";
next;switch(select("- I have it:- I need time")){case1:if(countitem(40016)<1){
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "I dont think you have";
mes "1 Durengo Coin...";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "You can exchange 1000 zeny";
mes "for 1 Durengo Coin from";
mes "my friend next to me";
close3;}
delitem 40016,1;
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "I will take your Durengo Coin now";
mes "oh yeah even if you cancel at any";
mes "part of these process, you will not";
mes "getting back that Durengo Coin";
mes "as it is require for precess fee";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Great, now remember you can";
mes "only select 3 Mastery";
mes "and only those Mastery will be able";
mes "to level up, and as for the rest";
mes "it will remain as Tier 1..";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now before you pick a Mastery";
mes "if you are new to the server";
mes "i would highly sugguest to pick";
mes "GATHERING, PROCESSING and 1 of";
mes "your own pick.";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "But.. if you know what you are doing";
mes "then go for it..";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now please select your";
mes "1st MASTERY";
mes "desire Mastery";switch(select("- Gathering:- Weapon And Tool Crafting:- Armor Crafting:- Cooking:- Slaughter:- Processing:- I need time")){case1:goto gathering_01;case2:goto weapon_01;case3:goto armor_01;case4:goto cookzz_01;case5:goto slaugh_01;case6:goto process_01;case7:goto cancel;}case2:goto cancel;}case3:goto cancel;}
cancel:
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "I shall see you soon..";
mes "Good Bye..";
close3;
gathering_01:
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "GATHERING....";
mes "nice choice, are you sure";
mes "you want to get";
mes "GATHERING MASTERY ?";switch(select("- YES:- NO")){case1:goto gathering;case2:goto cancel;}
gathering:if(mastery ==3)goto finish;if(countitem(40008)>1){
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "You have already picked";
mes "GATHERING MASTERY.";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now select again..";
menu "Gathering",gathering,"Weapon And Tool Crafting",weapon,"Armor Crafting",armor,"Cooking",cookzz,"Slaughter",slaugh,"Processing",process;}
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Great pick!";
getitem 40008,1;
mastery +=1;
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now select again..";
menu "Gathering",gathering,"Weapon And Tool Crafting",weapon,"Armor Crafting",armor,"Cooking",cookzz,"Slaughter",slaugh,"Processing",process;
weapon:if(mastery ==3)goto finish;if(countitem(40039)>1){
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "You have already picked";
mes "WEAPON AND TOOL MASTERY.";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now select again..";
menu "Gathering",gathering,"Weapon And Tool Crafting",weapon,"Armor Crafting",armor,"Cooking",cookzz,"Slaughter",slaugh,"Processing",process;}
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Great pick!";
getitem 40039,1;
mastery +=1;
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now select again..";
menu "Gathering",gathering,"Weapon And Tool Crafting",weapon,"Armor Crafting",armor,"Cooking",cookzz,"Slaughter",slaugh,"Processing",process;
weapon_01:
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "WEAPON AND TOOL CRAFTING....";
mes "nice choice, are you sure";
mes "you want to get ";
mes "WEAPON AND TOOL CRAFTING MASTERY ?";switch(select("- YES:- NO")){case1:goto weapon;case2:goto cancel;}
armor:if(mastery ==3)goto finish;if(countitem(40040)>1){
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "You have already picked";
mes "ARMOR CRAFTING MASTERY.";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now select again..";
menu "Gathering",gathering,"Weapon And Tool Crafting",weapon,"Armor Crafting",armor,"Cooking",cookzz,"Slaughter",slaugh,"Processing",process;}
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Great pick!";
getitem 40040,1;
mastery +=1;
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now select again..";
menu "Gathering",gathering,"Weapon And Tool Crafting",weapon,"Armor Crafting",armor,"Cooking",cookzz,"Slaughter",slaugh,"Processing",process;
armor_01:
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "ARMOR CRAFTING....";
mes "nice choice, are you sure";
mes "you want to get ";
mes "ARMOR CRAFTING MASTERY ?";switch(select("- YES:- NO")){case1:goto armor;case2:goto cancel;}
cookzz:if(mastery ==3)goto finish;if(countitem(40038)>1){
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "You have already picked";
mes "COOKING MASTERY.";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now select again..";
menu "Gathering",gathering,"Weapon And Tool Crafting",weapon,"Armor Crafting",armor,"Cooking",cookzz,"Slaughter",slaugh,"Processing",process;}
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Great pick!";
getitem 40038,1;
mastery +=1;
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now select again..";
menu "Gathering",gathering,"Weapon And Tool Crafting",weapon,"Armor Crafting",armor,"Cooking",cookzz,"Slaughter",slaugh,"Processing",process;
cookzz_01:
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "COOKING....";
mes "nice choice, are you sure";
mes "you want to get ";
mes "COOKING MASTERY ?";switch(select("- YES:- NO")){case1:goto cookzz;case2:goto cancel;}
slaugh:if(mastery ==3)goto finish;if(countitem(40041)>1){
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "You have already picked";
mes "SLAUGHTER MASTERY.";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now select again..";
menu "Gathering",gathering,"Weapon And Tool Crafting",weapon,"Armor Crafting",armor,"Cooking",cookzz,"Slaughter",slaugh,"Processing",process;}
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Great pick!";
getitem 40041,1;
mastery +=1;
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now select again..";
menu "Gathering",gathering,"Weapon And Tool Crafting",weapon,"Armor Crafting",armor,"Cooking",cookzz,"Slaughter",slaugh,"Processing",process;
slaugh_01:
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "SLAUGHTER....";
mes "nice choice, are you sure";
mes "you want to get ";
mes "SLAUGHTER MASTERY ?";switch(select("- YES:- NO")){case1:goto slaugh;case2:goto cancel;}
process:if(mastery ==3)goto finish;if(countitem(40007)>1){
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "You have already picked";
mes "PROCESSING MASTERY.";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now select again..";
menu "Gathering",gathering,"Weapon And Tool Crafting",weapon,"Armor Crafting",armor,"Cooking",cookzz,"Slaughter",slaugh,"Processing",process;}
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Great pick!";
getitem 40007,1;
mastery +=1;
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Now select again..";
menu "Gathering",gathering,"Weapon And Tool Crafting",weapon,"Armor Crafting",armor,"Cooking",cookzz,"Slaughter",slaugh,"Processing",process;
process_01:
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "PROCESSING....";
mes "nice choice, are you sure";
mes "you want to get ";
mes "PROCESSING MASTERY ?";switch(select("- YES:- NO")){case1:goto process;case2:goto cancel;}
finish:
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === FARHANA === ^000000";
mes "Great now you have 3 main";
mes "MASTERY, remember if you";
mes "in lost or need help";
mes "ask in discord";
close3;}
Question
Dolphin86
im using point system to add +1 points for each time a player picks 1 of each activity such as below ( menu )
now here is the weird part (for me) when i have pick only 1 activity (menu), the script reads my mastery points as more then 3, when it should allow me to pick 2 more, what i am trying to do is player can only pick 3 activity from the menu list, onces player had pick up 3 diffrent type of activity the script should send to this below..
can someone help me with my mess up script..
full script (If someone can optimise and clean up my script that would be great help..) :
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.