mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 05:57:45 +00:00
Added All Coming To X Quests and Fixed Black Bars
Fixed the Coming to Ul'dah and Coming to Limsa Quests, also Fixed the Openings having Black Bards and not being able to jump
This commit is contained in:
parent
de8e2d71b4
commit
2333d51fef
5 changed files with 22 additions and 21 deletions
|
@ -34,7 +34,7 @@ class OpeningGridaniaDef
|
||||||
|
|
||||||
def Scene00000( player )
|
def Scene00000( player )
|
||||||
{
|
{
|
||||||
player.eventPlay( this.id, 0, 0x2001, 0, 1,
|
player.eventPlay( this.id, 0, 0x04AC05, 0, 1,
|
||||||
fun( player, eventId, param1, param2, param3 )
|
fun( player, eventId, param1, param2, param3 )
|
||||||
{
|
{
|
||||||
player.setOpeningSequence( 1 );
|
player.setOpeningSequence( 1 );
|
||||||
|
|
|
@ -72,7 +72,6 @@ class OpeningLimsaLominsaDef
|
||||||
player.eventPlay( this.id, 40, 1, 2, 1,
|
player.eventPlay( this.id, 40, 1, 2, 1,
|
||||||
fun( player, eventId, param1, param2, param3 )
|
fun( player, eventId, param1, param2, param3 )
|
||||||
{
|
{
|
||||||
player.eventFinish( eventId, UNLOCK );
|
|
||||||
if( player.getOpeningSequence() == 2 )
|
if( player.getOpeningSequence() == 2 )
|
||||||
{
|
{
|
||||||
// update the instance boundaries
|
// update the instance boundaries
|
||||||
|
|
|
@ -35,7 +35,7 @@ class OpeningUldahDef
|
||||||
|
|
||||||
def Scene00000( player )
|
def Scene00000( player )
|
||||||
{
|
{
|
||||||
player.eventPlay( this.id, 0, 0x2001, 0, 1,
|
player.eventPlay( this.id, 0, 0x04AC05, 0, 1,
|
||||||
fun( player, eventId, param1, param2, param3 )
|
fun( player, eventId, param1, param2, param3 )
|
||||||
{
|
{
|
||||||
player.setOpeningSequence( 1 );
|
player.setOpeningSequence( 1 );
|
||||||
|
|
|
@ -51,11 +51,12 @@ class ManSea001Def
|
||||||
// Available Scenes in this quest, not necessarly all are used
|
// Available Scenes in this quest, not necessarly all are used
|
||||||
def Scene00000( player )
|
def Scene00000( player )
|
||||||
{
|
{
|
||||||
player.eventPlay( this.id, 0, HIDE_HOTBAR, 0/*unk*/, 0/*unk*/,
|
player.eventPlay( this.id, 0, 0x2000, 0, 0,
|
||||||
fun( player, eventId, param1, param2, param3 )
|
fun( player, eventId, param1, param2, param3 )
|
||||||
{
|
{
|
||||||
if( param2 == 1 )
|
if( param2 == 1 )
|
||||||
{
|
{
|
||||||
|
player.setOpeningSequence( 2 );
|
||||||
ManSea001.Scene00001( player );
|
ManSea001.Scene00001( player );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -63,7 +64,7 @@ class ManSea001Def
|
||||||
|
|
||||||
def Scene00001( player )
|
def Scene00001( player )
|
||||||
{
|
{
|
||||||
player.eventPlay( this.id, 1, HIDE_HOTBAR, 0/*unk*/, 0/*unk*/,
|
player.eventPlay( this.id, 1, 0xF8482EFB, 0, 0,
|
||||||
fun( player, eventId, param1, param2, param3 )
|
fun( player, eventId, param1, param2, param3 )
|
||||||
{
|
{
|
||||||
ManSea001.Scene00002( player );
|
ManSea001.Scene00002( player );
|
||||||
|
@ -81,13 +82,13 @@ class ManSea001Def
|
||||||
|
|
||||||
def Scene00003( player )
|
def Scene00003( player )
|
||||||
{
|
{
|
||||||
player.eventPlay( this.id, 3, NONE, 0/*unk*/, 0/*unk*/,
|
player.eventPlay( this.id, 3, NONE, 0, 0,
|
||||||
fun( player, eventId, param1, param2, param3 )
|
fun( player, eventId, param1, param2, param3 )
|
||||||
{
|
{
|
||||||
player.questUpdate( ManSea001.id, 0x01 ); // add quest to player.
|
player.questUpdate( ManSea001.id, 0x01 ); // add quest to player.
|
||||||
|
|
||||||
// update the instance boundaries, call to the opening event
|
// update the instance boundaries, call to the opening event
|
||||||
//player.eventPlay( ManSea001.OPENING_EVENT_HANDLER, 0x1E, HIDE_HOTBAR, 1, 0);
|
player.eventPlay( ManSea001.OPENING_EVENT_HANDLER, 0x1E, 0x2001, 1, 0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,7 +108,7 @@ class ManSea001Def
|
||||||
|
|
||||||
def Scene00006( player )
|
def Scene00006( player )
|
||||||
{
|
{
|
||||||
player.eventPlay( this.id, 6, NONE, 0/*unk*/, 0/*unk*/,
|
player.eventPlay( this.id, 6, 0x20, 0/*unk*/, 0/*unk*/,
|
||||||
fun( player, eventId, param1, param2, param3 )
|
fun( player, eventId, param1, param2, param3 )
|
||||||
{
|
{
|
||||||
if( param2 == 1 )
|
if( param2 == 1 )
|
||||||
|
@ -141,7 +142,7 @@ class ManSea001Def
|
||||||
|
|
||||||
def Scene00011( player )
|
def Scene00011( player )
|
||||||
{
|
{
|
||||||
player.eventPlay( this.id, 11, NONE, 0, 0,
|
player.eventPlay( this.id, 11, 0x2c02, 0, 0,
|
||||||
fun( player, eventId, param1, param2, param3 )
|
fun( player, eventId, param1, param2, param3 )
|
||||||
{
|
{
|
||||||
ManSea001.Scene00012( player );
|
ManSea001.Scene00012( player );
|
||||||
|
@ -150,7 +151,7 @@ class ManSea001Def
|
||||||
|
|
||||||
def Scene00012( player )
|
def Scene00012( player )
|
||||||
{
|
{
|
||||||
player.eventPlay( this.id, 12, NONE, 0, 0,
|
player.eventPlay( this.id, 12, 0x20, 0, 0,
|
||||||
fun( player, eventId, param1, param2, param3 )
|
fun( player, eventId, param1, param2, param3 )
|
||||||
{
|
{
|
||||||
if( param2 == 1 )
|
if( param2 == 1 )
|
||||||
|
|
|
@ -9,25 +9,25 @@
|
||||||
// Start NPC: 1003987
|
// Start NPC: 1003987
|
||||||
// End NPC: 1003988
|
// End NPC: 1003988
|
||||||
|
|
||||||
class ManWil001Def
|
class ManWil001Def
|
||||||
{
|
{
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// default ctor
|
// default ctor
|
||||||
def ManWil001Def()
|
def ManWil001Def()
|
||||||
{
|
{
|
||||||
// Basic quest information
|
// Basic quest information
|
||||||
this.name = "Coming to Ul'dah";
|
this.name = "Coming to Ul'dah";
|
||||||
this.id = 66130;
|
this.id = 66130;
|
||||||
|
|
||||||
// Quest vars / flags used
|
// Quest vars / flags used
|
||||||
// GetQuestUI8AL
|
// GetQuestUI8AL
|
||||||
|
|
||||||
// Steps in this quest ( 0 is before accepting,
|
// Steps in this quest ( 0 is before accepting,
|
||||||
// 1 is first, 255 means ready for turning it in
|
// 1 is first, 255 means ready for turning it in
|
||||||
this.SEQ_0 = 0;
|
this.SEQ_0 = 0;
|
||||||
this.SEQ_FINISH = 255;
|
this.SEQ_FINISH = 255;
|
||||||
|
|
||||||
// Quest rewards
|
// Quest rewards
|
||||||
this.RewardExpFactor = 50;
|
this.RewardExpFactor = 50;
|
||||||
this.RewardGil = 103;
|
this.RewardGil = 103;
|
||||||
|
|
||||||
|
@ -49,11 +49,12 @@ class ManWil001Def
|
||||||
// Available Scenes in this quest, not necessarly all are used
|
// Available Scenes in this quest, not necessarly all are used
|
||||||
def Scene00000( player )
|
def Scene00000( player )
|
||||||
{
|
{
|
||||||
player.eventPlay( this.id, 0, 0, 0, 0,
|
player.eventPlay( this.id, 0, 0x2000, 0, 0,
|
||||||
fun( player, eventId, param1, param2, param3 )
|
fun( player, eventId, param1, param2, param3 )
|
||||||
{
|
{
|
||||||
if( param2 == 1 ) // accept quest
|
if( param2 == 1 ) // accept quest
|
||||||
{
|
{
|
||||||
|
player.setOpeningSequence( 2 );
|
||||||
ManWil001.Scene00001( player );
|
ManWil001.Scene00001( player );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -61,7 +62,7 @@ class ManWil001Def
|
||||||
|
|
||||||
def Scene00001( player )
|
def Scene00001( player )
|
||||||
{
|
{
|
||||||
player.eventPlay( this.id, 1, 0, 0, 0,
|
player.eventPlay( this.id, 1, 0xF8482EFB, 0, 0,
|
||||||
fun( player, eventId, param1, param2, param3 )
|
fun( player, eventId, param1, param2, param3 )
|
||||||
{
|
{
|
||||||
ManWil001.Scene00002( player );
|
ManWil001.Scene00002( player );
|
||||||
|
@ -70,11 +71,11 @@ class ManWil001Def
|
||||||
|
|
||||||
def Scene00002( player )
|
def Scene00002( player )
|
||||||
{
|
{
|
||||||
player.eventPlay( this.id, 2, 0, 0, 0,
|
player.eventPlay( this.id, 2, NONE, 0, 0,
|
||||||
fun( player, eventId, param1, param2, param3 )
|
fun( player, eventId, param1, param2, param3 )
|
||||||
{
|
{
|
||||||
player.questUpdate( ManWil001.id, ManWil001Obj.SEQ_FINISH );// add quest to player.
|
player.questUpdate( ManWil001.id, ManWil001.SEQ_FINISH );// add quest to player.
|
||||||
player.eventPlay( ManWil001.OPENING_EVENT_HANDLER, 0x1E, 0x2001, 0, 0 );
|
player.eventPlay( ManWil001.OPENING_EVENT_HANDLER, 0x1E, 0x2001, 0, 0 );
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,7 +86,7 @@ class ManWil001Def
|
||||||
|
|
||||||
def Scene00004( player )
|
def Scene00004( player )
|
||||||
{
|
{
|
||||||
player.eventPlay( this.id, 4, 0, 0, 0,
|
player.eventPlay( this.id, 4, 0x2c02, 0, 0,
|
||||||
fun( player, eventId, param1, param2, param3 )
|
fun( player, eventId, param1, param2, param3 )
|
||||||
{
|
{
|
||||||
ManWil001.Scene00005( player );
|
ManWil001.Scene00005( player );
|
||||||
|
@ -94,7 +95,7 @@ class ManWil001Def
|
||||||
|
|
||||||
def Scene00005( player )
|
def Scene00005( player )
|
||||||
{
|
{
|
||||||
player.eventPlay( this.id, 5, 0/*flags*/, 0/*unk*/, 0/*unk*/,
|
player.eventPlay( this.id, 5, 0x20/*flags*/, 0/*unk*/, 0/*unk*/,
|
||||||
fun( player, eventId, param1, param2, param3 )
|
fun( player, eventId, param1, param2, param3 )
|
||||||
{
|
{
|
||||||
if( param2 == 1 ) // clicked finish button
|
if( param2 == 1 ) // clicked finish button
|
||||||
|
|
Loading…
Add table
Reference in a new issue