Jump to content
  • 0

Need help in creating multiple NPC chained quest..


Gelo

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  56
  • Reputation:   1
  • Joined:  05/10/12
  • Last Seen:  

The NPC is like this:

NPC 1 Needs this x Number of item1 , x number of item2 and x number of item3. then player will be warped in the map x. In NPC 2, Needed to have this x item1, x item2 to summon the boss monster..

If the player dies, he can come back again without any quest but when he finished the quest(killing the boss) the quest will reset.

Thanks..!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  56
  • Reputation:   1
  • Joined:  05/10/12
  • Last Seen:  

I tried to edit the Thana tower quest and this works good, but I need some tip to make it a better and understandable. thanks rathena!

prt_in,122,114,4 script Execute Quest 72,{

if(test_quest2 == 0){
mes "You want to activate This quest?";
next;
set test_quest2,1;
mes "Quest initialized";
close;}
if(test_quest2 > 1){
mes "Quest is already activated";
close;
}
}

prt_in,125,114,4 script Quest2 72,{
if(test_quest2 == 1) goto done;
if(test_quest2 == 2) goto initialize_3rd;
mes "[Thalos]";
mes "You must find initialize the 1st NPC first";
close;
done:
mes "[Thalos]";
mes "Quest to is ready";
mes "I need this items";
mes "Item 1: xxxx";
mes "Item 2: xxxx";
mes "item 3: xxxx";
next;
mes "do you have the items now?";
next;
if (countitem(918) > 8) goto q2_done;
mes "Seems that you need to hunt for those items";
close;

q2_done:
delitem 918,8;
set test_quest2,2;
mes "Good, I'll warp you to mr quest3";
next;
warp "prt_in", 127, 118;
close;
initialize_3rd:
mes "you need to talk to the final NPC to finish quest";
close;

}
prt_in,127,114,4 script Quest 3 72,{
if(test_quest2 == 2) goto q3_done;
mes "You didn't initialize quest";
close;
q3_done:
mes "[Mediane]";
mes "Okay, You I need this items to create you 1 test";
mes "1000 x";
mes "200 x";
mes "150 x";
mes "120 x";
next;
if (countitem(7539) < 1000) goto no_items;
mes "Congratulations! You can now recieve your Final quest items!";
set test_quest2,0;
delitem 7539,1000;
getitem 7179,100;
close;
no_items:
mes "YOu are lacking some items";
close;
}

Edited by Emistry
Please use [CODEBOX] for long contents.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...