Update
This commit is contained in:
parent
7fcd0f5b9d
commit
c3e56b9c1b
@ -8211,9 +8211,9 @@ This command must be used after 'questinfo'.
|
|||||||
Add 'req_quest_id' as requirement for quest info with quest id 'quest_id'.
|
Add 'req_quest_id' as requirement for quest info with quest id 'quest_id'.
|
||||||
|
|
||||||
Value os 'state' are:
|
Value os 'state' are:
|
||||||
0: Player doesn't have 'req_quest_id'.
|
0: Player doesn't started 'req_quest_id'.
|
||||||
1: Player has 'req_quest_id'.
|
1: Player has 'req_quest_id' (state is either "inactive" or "active").
|
||||||
2: //! TODO
|
2: Player has 'req_quest_id' completed
|
||||||
|
|
||||||
This command must be used after 'questinfo'.
|
This command must be used after 'questinfo'.
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ iz_int,100,91,3 script Captain Carocc#iz_int 4_M_REINDEER,{
|
|||||||
if (!isbegin_quest(7471)) {
|
if (!isbegin_quest(7471)) {
|
||||||
mes "[Captain Carocc]";
|
mes "[Captain Carocc]";
|
||||||
mes "Had a good dream?";
|
mes "Had a good dream?";
|
||||||
mes "Soon, we will get to ^4d4fffIzlude^000000";
|
mes "Soon, we will get to ^4d4fffIzlude^000000.";
|
||||||
next;
|
next;
|
||||||
mes "[Captain Carocc]";
|
mes "[Captain Carocc]";
|
||||||
mes "And you can talk to other people like you just talked to me.";
|
mes "And you can talk to other people like you just talked to me.";
|
||||||
@ -2074,10 +2074,7 @@ iz_ac01,59,43,3 script Therapist#ac 4_M_6THPRIN1,{
|
|||||||
|
|
||||||
OnInit:
|
OnInit:
|
||||||
questinfo 7478, QTYPE_QUEST, 0;
|
questinfo 7478, QTYPE_QUEST, 0;
|
||||||
setquestinfo_req 7478,4269,1;// TODO! need more infos
|
setquestinfo_req 7478,4269,2;
|
||||||
|
|
||||||
// AddQuestInfo 7478 0 0
|
|
||||||
// SetQuestQuest 7478 4269 2
|
|
||||||
end;
|
end;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2828,7 +2825,7 @@ iz_ac01,134,47,5 script Trainer Mainz#ac 4_M_KY_KNT,4,4,{
|
|||||||
mes "Please keep in mind that I really wanted to have it but since you look exhausted I offered it to you first!";
|
mes "Please keep in mind that I really wanted to have it but since you look exhausted I offered it to you first!";
|
||||||
emotion e_no1;
|
emotion e_no1;
|
||||||
next;
|
next;
|
||||||
mes "- You open the lunchbox and there is some type of food inside ¡©";
|
mes "- You open the lunchbox and there is some type of food inside -";
|
||||||
next;
|
next;
|
||||||
mes "[Mainz]";
|
mes "[Mainz]";
|
||||||
mes "Wahahahat! Don't hesitate and just take it!";
|
mes "Wahahahat! Don't hesitate and just take it!";
|
||||||
@ -4069,11 +4066,11 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
|
|||||||
mes "[Mille Feuille]";
|
mes "[Mille Feuille]";
|
||||||
mes "Ingredients- ^0000cd1 Clover, 1 Green Herb, 1 Red Herb^000000.";
|
mes "Ingredients- ^0000cd1 Clover, 1 Green Herb, 1 Red Herb^000000.";
|
||||||
next;
|
next;
|
||||||
cutin "اӪƽī֥.bmp", 3;
|
cutin "루나틱카드.bmp", 3;
|
||||||
mes "[Dacquoise]";
|
mes "[Dacquoise]";
|
||||||
mes "Clover and the Red Herb are dropped by Lunatic or Fabre monsters wandering everywhere on the field outside Izlude.";
|
mes "Clover and the Red Herb are dropped by Lunatic or Fabre monsters wandering everywhere on the field outside Izlude.";
|
||||||
next;
|
next;
|
||||||
cutin "?۪أī֥.bmp", 3;
|
cutin "파브르카드.bmp", 3;
|
||||||
mes "[Eclaire]";
|
mes "[Eclaire]";
|
||||||
mes "Green Herbs are dropped by Fabres.";
|
mes "Green Herbs are dropped by Fabres.";
|
||||||
next;
|
next;
|
||||||
@ -4095,11 +4092,11 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
|
|||||||
mes "[Mille Feuille]";
|
mes "[Mille Feuille]";
|
||||||
mes "Ingredients are ^0000cd1 Apple & 2 Carrots^000000.";
|
mes "Ingredients are ^0000cd1 Apple & 2 Carrots^000000.";
|
||||||
next;
|
next;
|
||||||
cutin "Ƿصī֥.bmp", 3;
|
cutin "포링카드.bmp", 3;
|
||||||
mes "[Dacquoise]";
|
mes "[Dacquoise]";
|
||||||
mes "Apples are dropped by Porings bouncing around the field outside of Izlude.";
|
mes "Apples are dropped by Porings bouncing around the field outside of Izlude.";
|
||||||
next;
|
next;
|
||||||
cutin "اӪƽī֥.bmp", 3;
|
cutin "루나틱카드.bmp", 3;
|
||||||
mes "[Eclaire]";
|
mes "[Eclaire]";
|
||||||
mes "Carrots are given by Lunatics.";
|
mes "Carrots are given by Lunatics.";
|
||||||
next;
|
next;
|
||||||
@ -4121,15 +4118,15 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
|
|||||||
mes "[Mille Feuille]";
|
mes "[Mille Feuille]";
|
||||||
mes "Ingredients are ^0000cd1 Jellopy, 1 Fluff, 1 Feather^000000.";
|
mes "Ingredients are ^0000cd1 Jellopy, 1 Fluff, 1 Feather^000000.";
|
||||||
next;
|
next;
|
||||||
cutin "Ƿصī֥.bmp", 3;
|
cutin "포링카드.bmp", 3;
|
||||||
mes "[Dacquoise]";
|
mes "[Dacquoise]";
|
||||||
mes "Jellopy are dropped by Porings bouncing around the field of Izlude.";
|
mes "Jellopy are dropped by Porings bouncing around the field of Izlude.";
|
||||||
next;
|
next;
|
||||||
cutin "?۪أī֥.bmp", 3;
|
cutin "파브르카드.bmp", 3;
|
||||||
mes "[Eclaire]";
|
mes "[Eclaire]";
|
||||||
mes "Fluff can be received from Fabre or Lunatic.";
|
mes "Fluff can be received from Fabre or Lunatic.";
|
||||||
next;
|
next;
|
||||||
cutin "اӪƽī֥.bmp", 3;
|
cutin "루나틱카드.bmp", 3;
|
||||||
mes "[Mille Feuille]";
|
mes "[Mille Feuille]";
|
||||||
mes "Feathers are dropped by Lunatics or Fabres.";
|
mes "Feathers are dropped by Lunatics or Fabres.";
|
||||||
next;
|
next;
|
||||||
@ -4151,11 +4148,11 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
|
|||||||
mes "[Mille Feuille]";
|
mes "[Mille Feuille]";
|
||||||
mes "Ingredients are-^0000cd 1 Apple & 1 Clover^000000.";
|
mes "Ingredients are-^0000cd 1 Apple & 1 Clover^000000.";
|
||||||
next;
|
next;
|
||||||
cutin "Ƿصī֥.bmp", 3;
|
cutin "포링카드.bmp", 3;
|
||||||
mes "[Dacquoise]";
|
mes "[Dacquoise]";
|
||||||
mes "Apple can be found in Porings in the field outside of Izlude.";
|
mes "Apple can be found in Porings in the field outside of Izlude.";
|
||||||
next;
|
next;
|
||||||
cutin "اӪƽī֥.bmp", 3;
|
cutin "루나틱카드.bmp", 3;
|
||||||
mes "[Eclaire]";
|
mes "[Eclaire]";
|
||||||
mes "Clovers are dropped by Lunatics or Fabre in the field outside Izlude.";
|
mes "Clovers are dropped by Lunatics or Fabre in the field outside Izlude.";
|
||||||
next;
|
next;
|
||||||
@ -4539,7 +4536,15 @@ L_Quest:
|
|||||||
|
|
||||||
OnInit:
|
OnInit:
|
||||||
questinfo 11339, QTYPE_QUEST ,0 ,Job_Novice;
|
questinfo 11339, QTYPE_QUEST ,0 ,Job_Novice;
|
||||||
setquestinfo_req 11339,4269,1;
|
questinfo 11340, QTYPE_QUEST ,0 ,Job_Novice;
|
||||||
|
questinfo 11341, QTYPE_QUEST ,0 ,Job_Novice;
|
||||||
|
questinfo 11342, QTYPE_QUEST ,0 ,Job_Novice;
|
||||||
|
questinfo 11344, QTYPE_QUEST ,0 ,Job_Novice;
|
||||||
|
setquestinfo_req 11339,4269,2;
|
||||||
|
setquestinfo_req 11340,4269,2;
|
||||||
|
setquestinfo_req 11341,4269,2;
|
||||||
|
setquestinfo_req 11342,4269,2;
|
||||||
|
setquestinfo_req 11344,4269,2;
|
||||||
end;
|
end;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -10662,13 +10667,12 @@ iz_ac02,52,136,3 script Guest Lecturer Mayssel#0 4_F_MAYSEL,{
|
|||||||
|
|
||||||
OnInit:
|
OnInit:
|
||||||
questinfo 7480, QTYPE_QUEST, 0, Job_Novice;
|
questinfo 7480, QTYPE_QUEST, 0, Job_Novice;
|
||||||
setquestinfo_req 7480,4269,1;
|
setquestinfo_req 7480,4269,2;
|
||||||
questinfo 7483, QTYPE_QUEST, 0;
|
questinfo 7483, QTYPE_QUEST, 0;
|
||||||
setquestinfo_req 7483,7481,1;
|
setquestinfo_req 7483,7481,1,7482,1;
|
||||||
setquestinfo_req 7483,7482,1;
|
|
||||||
// questinfo 7495, QTYPE_QUEST, 0;// officially disabled
|
// questinfo 7495, QTYPE_QUEST, 0;// officially disabled
|
||||||
// setquestinfo_req 7495,7484,2;
|
// setquestinfo_req 7495,7484,2,7485,3;
|
||||||
// setquestinfo_req 7495,7485,3;
|
|
||||||
end;
|
end;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -10903,7 +10907,7 @@ iz_ac02,49,134,5 script Vicente#ac 4_M_HUMAN_02,{
|
|||||||
case 2:
|
case 2:
|
||||||
mes "[Vicente]";
|
mes "[Vicente]";
|
||||||
mes "Correct!";
|
mes "Correct!";
|
||||||
mes "You have a good memory£¡";
|
mes "You have a good memory.";
|
||||||
cutin "sc_vicente03.bmp", 2;
|
cutin "sc_vicente03.bmp", 2;
|
||||||
next;
|
next;
|
||||||
break;
|
break;
|
||||||
@ -10969,7 +10973,7 @@ iz_ac02,49,134,5 script Vicente#ac 4_M_HUMAN_02,{
|
|||||||
case 2:
|
case 2:
|
||||||
mes "[Vicente]";
|
mes "[Vicente]";
|
||||||
mes "Correct!";
|
mes "Correct!";
|
||||||
mes "You have a good memory£¡";
|
mes "You have a good memory.";
|
||||||
cutin "sc_vicente03.bmp", 2;
|
cutin "sc_vicente03.bmp", 2;
|
||||||
next;
|
next;
|
||||||
break;
|
break;
|
||||||
@ -14123,7 +14127,7 @@ new_1-1,53,114,3 script Training Instructor#1a 4_F_03,{
|
|||||||
mes "I will send you to Izlude.";
|
mes "I will send you to Izlude.";
|
||||||
close2;
|
close2;
|
||||||
for (.@i = 7117; .@i < 7128; .@i++)
|
for (.@i = 7117; .@i < 7128; .@i++)
|
||||||
erasequest 7117;
|
erasequest .@i;
|
||||||
if (strnpcinfo(4) == "new_1-1" || strnpcinfo(4) == "new_1-2" || strnpcinfo(4) == "new_1-3" || strnpcinfo(4) == "new_1-4") {
|
if (strnpcinfo(4) == "new_1-1" || strnpcinfo(4) == "new_1-2" || strnpcinfo(4) == "new_1-3" || strnpcinfo(4) == "new_1-4") {
|
||||||
.@warp$ = "iz_int";
|
.@warp$ = "iz_int";
|
||||||
} else if (strnpcinfo(4) == "new_2-1" || strnpcinfo(4) == "new_2-2" || strnpcinfo(4) == "new_2-3" || strnpcinfo(4) == "new_2-4") {
|
} else if (strnpcinfo(4) == "new_2-1" || strnpcinfo(4) == "new_2-2" || strnpcinfo(4) == "new_2-3" || strnpcinfo(4) == "new_2-4") {
|
||||||
|
12
src/map/pc.c
12
src/map/pc.c
@ -11734,7 +11734,8 @@ void pc_show_questinfo(struct map_session_data *sd) {
|
|||||||
#if PACKETVER >= 20090218
|
#if PACKETVER >= 20090218
|
||||||
struct questinfo *qi = NULL;
|
struct questinfo *qi = NULL;
|
||||||
unsigned short i;
|
unsigned short i;
|
||||||
uint8 j, state = 0, mystate = 0;
|
uint8 j, state = 0;
|
||||||
|
int8 mystate = 0;
|
||||||
bool failed = false;
|
bool failed = false;
|
||||||
|
|
||||||
nullpo_retv(sd);
|
nullpo_retv(sd);
|
||||||
@ -11765,12 +11766,9 @@ void pc_show_questinfo(struct map_session_data *sd) {
|
|||||||
if (qi->req_count) {
|
if (qi->req_count) {
|
||||||
failed = false;
|
failed = false;
|
||||||
for (j = 0; j < qi->req_count; j++) {
|
for (j = 0; j < qi->req_count; j++) {
|
||||||
//!TODO: Confirm all states means
|
mystate = quest_check(sd, qi->req[j].quest_id, HAVEQUEST);
|
||||||
// Currently only confirmed, if required quest is '0: doesn't have', and '1: have'
|
mystate = mystate + (mystate < 1);
|
||||||
// Maybe something like, if (quest_check(sd, qi->req[j].quest_id, HAVEQUEST) + 1 != qi->req[j].state) ?
|
if (mystate != qi->req[j].state) {
|
||||||
state = (qi->req[j].state > 0) ? 1 : 0;
|
|
||||||
mystate = (quest_check(sd, qi->req[j].quest_id, HAVEQUEST) == -1) ? 0 : 1;
|
|
||||||
if (mystate != state) {
|
|
||||||
failed = true;
|
failed = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -21233,7 +21233,7 @@ BUILDIN_FUNC(setquestinfo_req) {
|
|||||||
for (i = 3; i <= num; i += 2) {
|
for (i = 3; i <= num; i += 2) {
|
||||||
RECREATE(qi->req, struct questinfo_req, qi->req_count+1);
|
RECREATE(qi->req, struct questinfo_req, qi->req_count+1);
|
||||||
qi->req[qi->req_count].quest_id = script_getnum(st, i);
|
qi->req[qi->req_count].quest_id = script_getnum(st, i);
|
||||||
qi->req[qi->req_count].state = script_getnum(st, i+1);
|
qi->req[qi->req_count].state = (script_getnum(st, i+1) >= 2) ? 2 : (script_getnum(st, i+1) <= 0) ? 0 : 1;
|
||||||
qi->req_count++;
|
qi->req_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user