1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-30 16:17:46 +00:00

Fixed Close to Home (Archer)

Fixed the Close to Home (Archer) Quest
This commit is contained in:
Biscuit Boy 2017-10-01 05:04:42 +10:00
parent b9619eddfe
commit e4187a35f3

View file

@ -74,7 +74,6 @@ class ManFst003Def
def checkQuestCompletion( player, varIdx ) def checkQuestCompletion( player, varIdx )
{ {
print( varIdx );
if (varIdx == 3) if (varIdx == 3)
{ {
player.questMessage(this.id, 1, 0, 0, 0 ); player.questMessage(this.id, 1, 0, 0, 0 );
@ -118,8 +117,8 @@ class ManFst003Def
player.eventPlay( this.id, 1, 0x0EFB/*flags*/, 0/*unk*/, 0/*unk*/, player.eventPlay( this.id, 1, 0x0EFB/*flags*/, 0/*unk*/, 0/*unk*/,
fun( player, eventId, param1, param2, param3 ) fun( player, eventId, param1, param2, param3 )
{ {
player.setQuestUI8AL( ManFst004.id, 1 ); player.setQuestUI8AL( ManFst003.id, 1 );
ManFst003.checkQuestCompletion( player, 1 ); ManFst003.checkQuestCompletion( player, 0 );
}); });
} }
@ -128,7 +127,7 @@ class ManFst003Def
player.eventPlay( this.id, 2, 0, 0, 0, player.eventPlay( this.id, 2, 0, 0, 0,
fun( player, eventId, param1, param2, param3 ) fun( player, eventId, param1, param2, param3 )
{ {
player.setQuestUI8BH( ManFst004.id, 1 ); player.setQuestUI8BH( ManFst003.id, 1 );
ManFst003.checkQuestCompletion( player, 3 ); ManFst003.checkQuestCompletion( player, 3 );
}); });
} }
@ -207,8 +206,8 @@ class ManFst003Def
player.eventPlay( this.id, 100, 0x0EFB, 0, 0, player.eventPlay( this.id, 100, 0x0EFB, 0, 0,
fun( player, eventId, param1, param2, param3 ) fun( player, eventId, param1, param2, param3 )
{ {
player.setQuestUI8CH( ManFst004.id, 0 ); // remove key item, since we have just traded it player.setQuestUI8CH( ManFst003.id, 0 ); // remove key item, since we have just traded it
player.setQuestUI8BL( ManFst004.id, 1 ); player.setQuestUI8BL( ManFst003.id, 1 );
ManFst003.checkQuestCompletion(player, 2 ); ManFst003.checkQuestCompletion(player, 2 );
}); });
} }
@ -237,7 +236,6 @@ class ManFst003Def
}, },
fun( player, eventId, additional ) {}, fun( player, eventId, additional ) {},
eventId ); eventId );
player.unlock();
} }
else if( actor == this.ACTOR2 ) else if( actor == this.ACTOR2 )
{ {
@ -257,4 +255,3 @@ class ManFst003Def
}; };
GLOBAL ManFst003 = ManFst003Def(); GLOBAL ManFst003 = ManFst003Def();