70 lines
1.9 KiB
Plaintext
70 lines
1.9 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: gzinc_daoctools
|
|
//:: Include File
|
|
//:://////////////////////////////////////////////
|
|
|
|
|
|
//interface
|
|
void SetupRespawnSystem(object oModule);
|
|
int GetIsBindstonesEnabled();
|
|
int GetIsGravesEnabled();
|
|
int GetIsRecallEnabled();
|
|
int GetGraveXPRegain();
|
|
|
|
//implementation
|
|
|
|
//::///////////////////////////////////////////////
|
|
//:: SetupRespawnSystem
|
|
//:: Copyright (c) 2001 Dom Queron
|
|
//:: Loads default values for the respawn system
|
|
//:://////////////////////////////////////////////
|
|
void SetupRespawnSystem(object oModule)
|
|
{
|
|
|
|
/* Disable Graves on death? Default = FALSE */
|
|
SetLocalInt(oModule, "T1_MODULE_CFG_NOGRAVES", FALSE);
|
|
|
|
/* How much XP is regained from praying? Default = 50% */
|
|
SetLocalInt(oModule, "T1_MODULE_CFG_GRAVEEXPREGAIN", 50);
|
|
|
|
/* Disable Bindstone System? Default = FALSE */
|
|
SetLocalInt(oModule, "T1_MODULE_NOBINDSTONES", FALSE);
|
|
|
|
/* Allow other players to recall their commrades to their graves
|
|
(this will destroy the grave)
|
|
Default = FALSE */
|
|
SetLocalInt(oModule, "T1_CFG_ALLOWCALLTOGRAVES", FALSE);
|
|
|
|
/* Finally, tell the module that the configuration has been loaded */
|
|
SetLocalInt(GetModule(),"T1_MODULE_RESPAWNSYSTEM_SETUP",TRUE) ;
|
|
|
|
SendMessageToAllDMs("DAoC Respawn System (re)loaded using gzinc_daoctools.setuprespawnsystem");
|
|
WriteTimestampedLogEntry("DAoC Respawn System (re)loaded using gzinc_daoctools.setuprespawnsystem");
|
|
|
|
}
|
|
|
|
|
|
int GetIsBindstonesEnabled()
|
|
{
|
|
int iReturn = (GetLocalInt(GetModule(), "T1_MODULE_NOBINDSTONES") == 0);
|
|
return iReturn;
|
|
}
|
|
|
|
int GetIsGravesEnabled()
|
|
{
|
|
int iReturn = (GetLocalInt(GetModule(), "T1_MODULE_CFG_NOGRAVES") == 0);
|
|
return iReturn;
|
|
}
|
|
|
|
int GetGraveXPRegain()
|
|
{
|
|
int iReturn = GetLocalInt(GetModule(), "T1_MODULE_CFG_GRAVEEXPREGAIN");
|
|
return iReturn;
|
|
}
|
|
|
|
int GetIsRecallEnabled()
|
|
{
|
|
int iReturn = (GetLocalInt(GetModule(), "T1_CFG_ALLOWCALLTOGRAVES") == TRUE);
|
|
return iReturn;
|
|
}
|