mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 22:57:45 +00:00
Moved script folder out of bin
This commit is contained in:
parent
33768e50c0
commit
89f4fe6f48
38 changed files with 311 additions and 176 deletions
61
scripts/chai/CmnDef/CmnDefCutSceneReplay.chai_outdated
Normal file
61
scripts/chai/CmnDef/CmnDefCutSceneReplay.chai_outdated
Normal file
|
@ -0,0 +1,61 @@
|
|||
// This is an automatically generated chai script template
|
||||
// Content needs to be added by hand to make it function
|
||||
// In order for this script to be loaded, change its extension to .chai
|
||||
|
||||
|
||||
// Quest Script: SubFst004_00027
|
||||
// Quest Name: Preserving the Past
|
||||
// Quest ID: 65563
|
||||
// Start NPC: 1000194
|
||||
// End NPC: 1000789
|
||||
|
||||
class CmnDefCutSceneReplayDef
|
||||
{
|
||||
// Basic quest information
|
||||
var quest_name
|
||||
var quest_id
|
||||
|
||||
// These are the quest vars / flags used in this quest
|
||||
// GetQuestUI8AL
|
||||
// GetQuestUI8BH
|
||||
|
||||
// Available Scenes in this quest, not necessarly all are used
|
||||
attr onScene00000;
|
||||
|
||||
// Quest rewards
|
||||
var RewardExpFactor;
|
||||
var RewardItem;
|
||||
var RewardItemCount;
|
||||
|
||||
// Entities found in the script data of the quest
|
||||
// some of these may be useful
|
||||
var ACTOR0;
|
||||
var ACTOR1;
|
||||
var ACTOR2;
|
||||
var ITEM0;
|
||||
|
||||
def CmnDefCutSceneReplayDef()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
def Scene00000( player, eventId, flags, unk, unk1 )
|
||||
{
|
||||
player.eventPlay(eventId, 0, 0x2000, unk, 1,
|
||||
fun( player, eventId, subEvent, param1, param2, param3 )
|
||||
{
|
||||
player.eventFinish(eventId, 1);
|
||||
} );
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
def CmnDefCutSceneReplay_START(player, actorId, eventId)
|
||||
{
|
||||
var quest = CmnDefCutSceneReplay();
|
||||
var actor = mapActor( actorId );
|
||||
|
||||
player.eventStart( actorId, eventId, 1, 0, 0 );
|
||||
CmnDefCutSceneReplay.Scene00000( player, eventId, 0, 0, 0 );
|
||||
}
|
75
scripts/chai/CmnDef/CmnDefLinkShell.chai
Normal file
75
scripts/chai/CmnDef/CmnDefLinkShell.chai
Normal file
|
@ -0,0 +1,75 @@
|
|||
|
||||
class CmnDefLinkShellDef
|
||||
{
|
||||
|
||||
def CmnDefLinkShellDef()
|
||||
{
|
||||
this.ACTION_CREATE = 2;
|
||||
this.ACTION_RENAME = 3;
|
||||
this.ACTION_REMOVE = 4;
|
||||
this.id = 0xB0006;
|
||||
}
|
||||
|
||||
def Scene00001( player )
|
||||
{
|
||||
player.eventPlay( this.id, 1, 0, 0, 0,
|
||||
fun( player, eventId, param1, param2, param3 )
|
||||
{
|
||||
switch( param2 )
|
||||
{
|
||||
case( CmnDefLinkShell.ACTION_CREATE )
|
||||
{
|
||||
CmnDefLinkShell.Scene00002( player );
|
||||
break;
|
||||
}
|
||||
case( CmnDefLinkShell.ACTION_RENAME )
|
||||
{
|
||||
CmnDefLinkShell.Scene00003( player );
|
||||
break;
|
||||
}
|
||||
case( CmnDefLinkShell.ACTION_REMOVE )
|
||||
{
|
||||
CmnDefLinkShell.Scene00004( player );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
def Scene00002( player ) // Create Linkshell
|
||||
{
|
||||
player.eventPlay( this.id, 2, 0, 0, 0,
|
||||
fun( player, eventId, param1, param2, param3 )
|
||||
{
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
def Scene00003( player ) // Rename Linkshell
|
||||
{
|
||||
player.eventPlay( this.id, 3, 0, 0, 0,
|
||||
fun( player, eventId, param1, param2, param3 )
|
||||
{
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
def Scene00004( player ) // Delete Linkshell
|
||||
{
|
||||
player.eventPlay( this.id, 4, 0, 0, 0,
|
||||
fun( player, eventId, param1, param2, param3 )
|
||||
{
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
def onTalk( eventId, player, actorId )
|
||||
{
|
||||
this.Scene00001( player );
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
global CmnDefLinkShell = CmnDefLinkShellDef();
|
|
@ -27,7 +27,6 @@ bool Core::LinkshellMgr::loadLinkshells()
|
|||
|
||||
Db::Field *field = res->fetch();
|
||||
|
||||
|
||||
do
|
||||
{
|
||||
uint32_t linkshellId = field[0].getUInt32();
|
||||
|
|
Loading…
Add table
Reference in a new issue