Issue information

Issue ID
#6015
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Jun 14, 2012 20:40
Last Post
Hercules Elf Bot
Jun 24, 2012 22:08
Confirmation
Yes (1)
No (0)

Hercules Elf Bot - Jun 14, 2012 20:40

Originally posted by [b]Vali[/b]
*checkquest(<ID>{,PLAYTIME|HUNTING})

If no additional argument supplied, return the state of the quest:
-1 = Quest not started (not in quest log)
0 = Quest has been given, but the state is "inactive"
1 = Quest has been given, and the state is "active"
2 = Quest completed

[CODE]
switch (select("Accept mission.:Decline mission.")) {
case 1:
if (slv_quest == 2 || slv_quest == 3 || slv_quest == 4 || slv_quest == 5 || slv_quest == 6) {
mes "- You are already on -";
mes "- another mission. -";
mes "- You can't do multiple -";
mes "- missions. Finish your -";
mes "- current mission first. -";
close;
}
if (checkquest(10102) == 0) {
setquest 10102;
set slv_quest,1;
mes "- Good. Now go find Meidi -";
mes "- at the western gate -";
mes "- in Morroc. -";
close;
}
mes "- You are already on -";
mes "- or have recently -";
mes "- completed a mission. -";
mes "- You can't do anymore -";
mes "- missions right now. -";
close;
case 2:
mes "- I don't want to do -";
mes "- a mission right now. -";
close;
}
[/CODE]

checkquest mut be "(checkquest(10102) == -1)" to be able to give the quest to the players that don't have it.

I did not checked the other level scripts.

Vali~

Hercules Elf Bot - Jun 14, 2012 22:12

Originally posted by [b]Masao[/b]
Actually it should be (checkquest(10102) == -1 || checkquest(10102) == 0) ^^

Hercules Elf Bot - Jun 14, 2012 22:46

Originally posted by [b]Vali[/b]
[quote name='Masao' timestamp='1339711941' post='10574']
Actually it should be (checkquest(10102) == -1 || checkquest(10102) == 0) ^^
[/quote]

The set quest will activate again the quest that is given? Nice to know, thank you Masao.

Hercules Elf Bot - Jun 16, 2012 11:20

Originally posted by [b]Vali[/b]
Here is the diff to fix this problem.

Vali~

Hercules Elf Bot - Jun 24, 2012 22:08

Originally posted by [b]Masao[/b]
Fixed in [rev=16342] .