Jump to content
  • 0

Add more mobs to the quest_db


Question

Posted

Hello, i would like to know how to make the quest_db can allow to hunt more than 3 mobs, because i tryied that and it doesn't count the Eddgas.

Theres my script and the Quest Databse

// Quest Database
//
// Structure of Database:
// Quest ID,Time Limit,Target1,Val1,Target2,Val2,Target3,Val3,Quest Title
80001,0,1059,3,1147,3,1150,3,"Apha MvP Room"
turbo_room,129,133,4	script	Alpha MvP Quest	504,{
mes "[Hunter]";
mes "Hello, if you hunt some MvPs i will give you Zemy. Wanna try?";
next;
menu "~Sure!~",L_sure,"No thanks",L_no,"Drop Quest",L_drop;
L_drop:
erasequest 80001;
mes "How sad... allright good luck.";
close;
L_sure:
setquest 80001;
mes "Defeat those:";
mes "3 Mistress";
mes "3 Maya";
mes "3 Moonlight Flower";
mes "3 Eddga.";
next;
menu "-Got it!",L_ok,"-Done!.",L_hunted;
L_ok:
mes "Get them!!";
close;
L_hunted:
if (checkquest (80001,HUNTING) == 2) {
mes "Not bad lol, here is your zeny!";
set Zeny,Zeny+1000000;
erasequest 80001;
close;
}

than you in advance o:!

4 answers to this question

Recommended Posts

Posted

It's easiest (and more efficient) if you just add multiple quests instead, and check if all are completed. That's how official servers always handle multiple-objective quests.

  • Upvote 1
Posted

yeah i was thinking in that when i went to sleep lol 

but, the script also change a lil. right? for example, it would go like this?

// Quest Database
//
// Structure of Database:
// Quest ID,Time Limit,Target1,Val1,Target2,Val2,Target3,Val3,Quest Title
80001,0,1059,3,1147,3,1150,3,"Apha MvP Room"
80001,0,1115,3,0,0,0,0,"Apha MvP Room-Side"
turbo_room,129,133,4	script	Alpha MvP Quest	504,{
mes "[Hunter]";
mes "Hello, if you hunt some MvPs i will give you Zemy. Wanna try?";
next;
menu "~Sure!~",L_sure,"No thanks",L_no,"Drop Quest",L_drop;
L_drop:
erasequest 80001;
erasequest 81001;
mes "How sad... allright good luck.";
close;
L_sure:
setquest 80001;
setquest 81001;
mes "Defeat those:";
mes "3 Mistress";
mes "3 Maya";
mes "3 Moonlight Flower";
mes "3 Eddga.";
next;
menu "-Got it!",L_ok,"-Done!.",L_hunted;
L_ok:
mes "Get them!!";
close;
L_hunted:
if (checkquest (80001,HUNTING) == 2) { //here is where i'm not sure how to do it x_x how to check 2 or more quests
mes "Not bad lol, here is your zeny!";
set Zeny,Zeny+1000000;
erasequest 80001;
erasequest 81001;
close;
}

x_x

 

if (checkquest (80001,HUNTING) == 2) {

 

how i make it to read 2 or more quests D:?

 

thnak you so much euphy for the repply

Posted

allllllright thank you o:!!!

 

i was playing around with weird ideas x_x

 

some:

if (checkquest (80001,HUNTING) == 2) { scriptblabla; } && if (checkquest (81001,HUNTING) == 2) { scriptblabla2; } else { mes "You've fail to kill them all"; }


or just "and"

if (checkquest (80001,HUNTING) == 2) { scriptblabla; } and { if (checkquest (81001,HUNTING) == 2) { scriptblabla; } else { mes "You need to kill them all to claim your prize } 


even this lol

if (checkquest (80001,8101,HUNTING) == 2) { scriptblabla; } else { mes "You haven't kill them enought times"; }

thanks again euphy o:!!

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...