hello, could someone show me script example for this situation:
1. player bring item (multiple item) to the npc
2. npc will check for item requirement.
3. player will have to wait at least 1 minute before player can receive the item, while waiting the npc will have a text notification (crafting) and no other player can use the npc while its crafting
4. when the item craft is completed there will be a text notification completed (it will stay until the player who craft it or any other player take out the item (kinda stealing)
here is my my script...
Spoiler
new_1-3,90,35,6 script PublicWorkbench665,{if(BeginnerQuest==2)gotoBeginnerQuest2;if(BeginnerQuest==3)gotoBeginnerQuest3;if(BeginnerQuest==6)gotoBeginnerQuest6;if(BeginnerQuest==7)gotoBeginnerQuest7;BeginnerQuest7:
mes "I should ask Training Instructor.";
close;BeginnerQuest6:
mes "[Workbench]";
mes "Craft-";
menu "Rope",Rope,"Cancel",cancel1;Rope:
mes "[Workbench]";
mes "Item requirement:";
mes "4x Stalk";
next;
mes "[Workbench]";if(select("-Craft:Cancel")==2)goto cancel;if(countitem(40008)<4){
mes "^ff0000 Not enough Stalk ^000000";
close;}else{
delitem 40008,4;
specialeffect2 610;
mes "^30ff00 Success ! ^000000";
getitem 40007,1;
getitem 40014,1;setBeginnerQuest,7;
close;}
cancel1:
mes "[Workbench]";
mes "cancel";
close;BeginnerQuest3:
mes "I should ask Training Instructor.";
close;BeginnerQuest2:
mes "[Workbench]";
mes "Craft-";
menu "Stone Dagger",stonedagger,"Cancel",cancel2;
stonedagger:
next;
mes "[Workbench]";
mes "Item Requirement";
mes "Rock [2 pcs]";
next;if(select("-Craft:Cancel")==2)goto cancel;if(countitem(40005)<2){
next;
mes "^ff0000 Not enough Rock ^000000";
close;}else{
delitem 40005,2;
specialeffect2 610;
mes "^30ff00 Success ! ^000000";
getitem 40007,1;
getitem 40009,1;setBeginnerQuest,3;
close;}
cancel2:
next;
mes "[Workbench]";
mes "Cancel";
close;}
Question
Dolphin86
hello, could someone show me script example for this situation:
1. player bring item (multiple item) to the npc
2. npc will check for item requirement.
3. player will have to wait at least 1 minute before player can receive the item, while waiting the npc will have a text notification (crafting) and no other player can use the npc while its crafting
4. when the item craft is completed there will be a text notification completed (it will stay until the player who craft it or any other player take out the item (kinda stealing)
here is my my script...
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.