I just coded this simple NPC and wanted to modify / change to the following:
( 1 ) Whenever a person already done the first quest then the NPC wont let him do it again. instead it skips to the next.
( 2 ) They are only able to take this quest every 3 Days.
( 3 ) After they select Yes, I want to remove this message "Want to proceed to the next step?"
crystilia,73,73,4 script try 100,{
// FIRST STEP
mes "You want to start this quest?";
mes "You need to have this Items:";
mes "10 Jellopies";
mes "10 zRo Coins";
next;
mes "Let me check";
next;
if(countitem(909) < 10 || countitem(20103) < 10) goto L_wala;
announce ""+strcharinfo(0)+" has started the Godly quest!",0;
delitem 909,10;
delitem 20103,10;
next;
mes "Want to proceed to the next step?";
menu "Yes",L_yes1,"No",L_no;
// second step
L_yes1:
mes "This is the second step, get me these items";
mes "10 TCG";
mes "10 zRo Coins";
next;
mes "Let me check it again.";
next;
if(countitem(20103) < 10 || countitem(7227) < 10) goto L_wala2;
delitem 7227,10;
delitem 20103,10;
mes "You receive 1 Emblem of the sun gold!";
getitem 1009,1;
next;
next;
mes "Want to proceed to the next step?";
menu "Yes",L_yes2,"No",L_no;
//last step
L_yes2:
mes "This is the last step";
mes "Bring me these items";
mes "1 Emblem of the Sun Gold";
mes "1 Yggdrasil Berry";
next;
mes "Check!";
next;
if(countitem(607) < 1 || countitem(1009) < 1) goto L_wala2;
delitem 607,1;
delitem 1009,1;
mes "Congratulations! you receive Godly item!";
getitem 20107,1;
announce ""+strcharinfo(0)+" has finished the Godly quest!",0;
close;
L_wala:
mes "Sorry, please bring those items to me";
close;
L_wala2:
mes "Sorry, please bring those items to me";
close;
L_no:
close;
}
Thank you moderators.
Edited by Emistry Please use [CODEBOX] or Attachments for long contents.
Question
Yudax
Hello goodevening,
I just coded this simple NPC and wanted to modify / change to the following:
( 1 ) Whenever a person already done the first quest then the NPC wont let him do it again. instead it skips to the next.
( 2 ) They are only able to take this quest every 3 Days.
( 3 ) After they select Yes, I want to remove this message "Want to proceed to the next step?"
Thank you moderators.
Edited by EmistryPlease use [CODEBOX] or Attachments for long contents.
Link to comment
Share on other sites
11 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.