Updated event system
Added caller scripts to the PC events. Full compile. Updated release.
This commit is contained in:
parent
80853afccf
commit
f69e979e53
@ -865,7 +865,7 @@
|
|||||||
"Mod_Description": {
|
"Mod_Description": {
|
||||||
"type": "cexolocstring",
|
"type": "cexolocstring",
|
||||||
"value": {
|
"value": {
|
||||||
"0": "The Underworld 2\nCreated By: Guile / Genisys\nCreated On 4/17/07 to 8/29/10\n\nDiscord @ PRC Presents Channels"
|
"0": "Underworld 2 (PRC8/CEP3 version)\nCreated By: Guile / Genisys\nCreated On 4/17/07 to 8/29/10\n\nUpdated By: Jaysyn\n\nDiscord @ PRC Presents Channels"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Mod_DuskHour": {
|
"Mod_DuskHour": {
|
||||||
@ -1103,24 +1103,24 @@
|
|||||||
"Mod_Name": {
|
"Mod_Name": {
|
||||||
"type": "cexolocstring",
|
"type": "cexolocstring",
|
||||||
"value": {
|
"value": {
|
||||||
"0": "Underworld 2"
|
"0": "Underworld 2 (PRC8/CEP3)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Mod_OnAcquirItem": {
|
"Mod_OnAcquirItem": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "onaquireditem"
|
"value": "call_onacquired"
|
||||||
},
|
},
|
||||||
"Mod_OnActvtItem": {
|
"Mod_OnActvtItem": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "onactivateitem"
|
"value": "call_onactivate"
|
||||||
},
|
},
|
||||||
"Mod_OnClientEntr": {
|
"Mod_OnClientEntr": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "oncliententer"
|
"value": "call_onenter"
|
||||||
},
|
},
|
||||||
"Mod_OnClientLeav": {
|
"Mod_OnClientLeav": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "onclientexit"
|
"value": "call_onexit"
|
||||||
},
|
},
|
||||||
"Mod_OnCutsnAbort": {
|
"Mod_OnCutsnAbort": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
@ -1128,11 +1128,11 @@
|
|||||||
},
|
},
|
||||||
"Mod_OnHeartbeat": {
|
"Mod_OnHeartbeat": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "onheartbeat"
|
"value": "call_onheartbeat"
|
||||||
},
|
},
|
||||||
"Mod_OnModLoad": {
|
"Mod_OnModLoad": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "onmoduleload"
|
"value": "call_onmodload"
|
||||||
},
|
},
|
||||||
"Mod_OnModStart": {
|
"Mod_OnModStart": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
@ -1144,19 +1144,19 @@
|
|||||||
},
|
},
|
||||||
"Mod_OnPlrChat": {
|
"Mod_OnPlrChat": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "on_player_chat"
|
"value": "call_onpcchat"
|
||||||
},
|
},
|
||||||
"Mod_OnPlrDeath": {
|
"Mod_OnPlrDeath": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "onplayerdeath"
|
"value": "call_ondeath"
|
||||||
},
|
},
|
||||||
"Mod_OnPlrDying": {
|
"Mod_OnPlrDying": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "bleeding"
|
"value": "call_ondying"
|
||||||
},
|
},
|
||||||
"Mod_OnPlrEqItm": {
|
"Mod_OnPlrEqItm": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "onplayerequipted"
|
"value": "call_onpcequip"
|
||||||
},
|
},
|
||||||
"Mod_OnPlrGuiEvt": {
|
"Mod_OnPlrGuiEvt": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
@ -1164,11 +1164,11 @@
|
|||||||
},
|
},
|
||||||
"Mod_OnPlrLvlUp": {
|
"Mod_OnPlrLvlUp": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "onplayerlevelup"
|
"value": "call_onlevelup"
|
||||||
},
|
},
|
||||||
"Mod_OnPlrRest": {
|
"Mod_OnPlrRest": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "onplayerrest"
|
"value": "call_onpcrest"
|
||||||
},
|
},
|
||||||
"Mod_OnPlrTarget": {
|
"Mod_OnPlrTarget": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
@ -1180,15 +1180,15 @@
|
|||||||
},
|
},
|
||||||
"Mod_OnPlrUnEqItm": {
|
"Mod_OnPlrUnEqItm": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "onunequipitem"
|
"value": "call_onunequip"
|
||||||
},
|
},
|
||||||
"Mod_OnSpawnBtnDn": {
|
"Mod_OnSpawnBtnDn": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "onplayerrespawn"
|
"value": "call_onrespawn"
|
||||||
},
|
},
|
||||||
"Mod_OnUnAqreItem": {
|
"Mod_OnUnAqreItem": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "onunaquireitem"
|
"value": "call_onunacquire"
|
||||||
},
|
},
|
||||||
"Mod_OnUsrDefined": {
|
"Mod_OnUsrDefined": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
|
Binary file not shown.
BIN
_module/ncs/call_onacquired.ncs
Normal file
BIN
_module/ncs/call_onacquired.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/call_onactivate.ncs
Normal file
BIN
_module/ncs/call_onactivate.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/call_ondeath.ncs
Normal file
BIN
_module/ncs/call_ondeath.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/call_ondying.ncs
Normal file
BIN
_module/ncs/call_ondying.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/call_onenter.ncs
Normal file
BIN
_module/ncs/call_onenter.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/call_onexit.ncs
Normal file
BIN
_module/ncs/call_onexit.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/call_onheartbeat.ncs
Normal file
BIN
_module/ncs/call_onheartbeat.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/call_onlevelup.ncs
Normal file
BIN
_module/ncs/call_onlevelup.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/call_onmodload.ncs
Normal file
BIN
_module/ncs/call_onmodload.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/call_onpcchat.ncs
Normal file
BIN
_module/ncs/call_onpcchat.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/call_onpcequip.ncs
Normal file
BIN
_module/ncs/call_onpcequip.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/call_onpcrest.ncs
Normal file
BIN
_module/ncs/call_onpcrest.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/call_onrespawn.ncs
Normal file
BIN
_module/ncs/call_onrespawn.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/call_onunacquire.ncs
Normal file
BIN
_module/ncs/call_onunacquire.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/call_onunequip.ncs
Normal file
BIN
_module/ncs/call_onunequip.ncs
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -16,7 +16,7 @@
|
|||||||
#include "nw_i0_tool"
|
#include "nw_i0_tool"
|
||||||
void bleed(int iBleedAmt)
|
void bleed(int iBleedAmt)
|
||||||
{
|
{
|
||||||
ExecuteScript("prc_ondying", OBJECT_SELF);
|
|
||||||
|
|
||||||
object oPC = GetLastPlayerDying();
|
object oPC = GetLastPlayerDying();
|
||||||
if (!GetIsPC(oPC)){
|
if (!GetIsPC(oPC)){
|
||||||
|
17
_module/nss/call_onacquired.nss
Normal file
17
_module/nss/call_onacquired.nss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//:://////////////////////////////////////////////
|
||||||
|
/*
|
||||||
|
* call_onacquired.nss
|
||||||
|
*
|
||||||
|
* OnAcquiredItem event caller
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
ExecuteScript("prc_onaquire", OBJECT_SELF);
|
||||||
|
|
||||||
|
ExecuteScript("onacquireditem", OBJECT_SELF);
|
||||||
|
|
||||||
|
}
|
17
_module/nss/call_onactivate.nss
Normal file
17
_module/nss/call_onactivate.nss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//:://////////////////////////////////////////////
|
||||||
|
/*
|
||||||
|
* call_onactivate.nss
|
||||||
|
*
|
||||||
|
* OnActivateItem event caller
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
ExecuteScript("prc_activate", OBJECT_SELF);
|
||||||
|
|
||||||
|
ExecuteScript("onactivateitem", OBJECT_SELF);
|
||||||
|
|
||||||
|
}
|
17
_module/nss/call_ondeath.nss
Normal file
17
_module/nss/call_ondeath.nss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//:://////////////////////////////////////////////
|
||||||
|
/*
|
||||||
|
* call_ondeath.nss
|
||||||
|
*
|
||||||
|
* OnPlayerDeath event caller
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
ExecuteScript("prc_ondeath", OBJECT_SELF);
|
||||||
|
|
||||||
|
ExecuteScript("onplayerdeath", OBJECT_SELF);
|
||||||
|
|
||||||
|
}
|
17
_module/nss/call_ondying.nss
Normal file
17
_module/nss/call_ondying.nss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//:://////////////////////////////////////////////
|
||||||
|
/*
|
||||||
|
* call_ondying.nss
|
||||||
|
*
|
||||||
|
* OnPlayerDying event caller
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
ExecuteScript("prc_ondying", OBJECT_SELF);
|
||||||
|
|
||||||
|
ExecuteScript("bleeding", OBJECT_SELF);
|
||||||
|
|
||||||
|
}
|
17
_module/nss/call_onenter.nss
Normal file
17
_module/nss/call_onenter.nss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//:://////////////////////////////////////////////
|
||||||
|
/*
|
||||||
|
* call_onenter.nss
|
||||||
|
*
|
||||||
|
* OnClientEnter event caller
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
ExecuteScript("prc_onenter", OBJECT_SELF);
|
||||||
|
|
||||||
|
ExecuteScript("oncliententer", OBJECT_SELF);
|
||||||
|
|
||||||
|
}
|
17
_module/nss/call_onexit.nss
Normal file
17
_module/nss/call_onexit.nss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//:://////////////////////////////////////////////
|
||||||
|
/*
|
||||||
|
* call_onexit.nss
|
||||||
|
*
|
||||||
|
* OnClientExit event caller
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
ExecuteScript("prc_leave", OBJECT_SELF);
|
||||||
|
|
||||||
|
ExecuteScript("onclientexit", OBJECT_SELF);
|
||||||
|
|
||||||
|
}
|
17
_module/nss/call_onheartbeat.nss
Normal file
17
_module/nss/call_onheartbeat.nss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//:://////////////////////////////////////////////
|
||||||
|
/*
|
||||||
|
* call_onheartbeat.nss
|
||||||
|
*
|
||||||
|
* OnHeartbeat event caller
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
ExecuteScript("prc_onheartbeat", OBJECT_SELF);
|
||||||
|
|
||||||
|
ExecuteScript("onheartbeat", OBJECT_SELF);
|
||||||
|
|
||||||
|
}
|
17
_module/nss/call_onlevelup.nss
Normal file
17
_module/nss/call_onlevelup.nss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//:://////////////////////////////////////////////
|
||||||
|
/*
|
||||||
|
* call_onlevelup.nss
|
||||||
|
*
|
||||||
|
* OnPlayerLevelUp event caller
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
ExecuteScript("prc_levelup", OBJECT_SELF);
|
||||||
|
|
||||||
|
ExecuteScript("onplayerlevelup", OBJECT_SELF);
|
||||||
|
|
||||||
|
}
|
17
_module/nss/call_onmodload.nss
Normal file
17
_module/nss/call_onmodload.nss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//:://////////////////////////////////////////////
|
||||||
|
/*
|
||||||
|
* call_onmodload.nss
|
||||||
|
*
|
||||||
|
* OnModuleLoad event caller
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
ExecuteScript("prc_onmodload", OBJECT_SELF);
|
||||||
|
|
||||||
|
ExecuteScript("onmoduleload", OBJECT_SELF);
|
||||||
|
|
||||||
|
}
|
17
_module/nss/call_onpcchat.nss
Normal file
17
_module/nss/call_onpcchat.nss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//:://////////////////////////////////////////////
|
||||||
|
/*
|
||||||
|
* call_onpcchat.nss
|
||||||
|
*
|
||||||
|
* OnPlayerChat event caller
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
ExecuteScript("prc_onplayerchat", OBJECT_SELF);
|
||||||
|
|
||||||
|
ExecuteScript("on_player_chat", OBJECT_SELF);
|
||||||
|
|
||||||
|
}
|
17
_module/nss/call_onpcequip.nss
Normal file
17
_module/nss/call_onpcequip.nss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//:://////////////////////////////////////////////
|
||||||
|
/*
|
||||||
|
* call_onpcequip.nss
|
||||||
|
*
|
||||||
|
* OnPlayerEquipItem event caller
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
ExecuteScript("prc_equip", OBJECT_SELF);
|
||||||
|
|
||||||
|
ExecuteScript("onplayerequipted", OBJECT_SELF);
|
||||||
|
|
||||||
|
}
|
17
_module/nss/call_onpcrest.nss
Normal file
17
_module/nss/call_onpcrest.nss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//:://////////////////////////////////////////////
|
||||||
|
/*
|
||||||
|
* call_onpcrest.nss
|
||||||
|
*
|
||||||
|
* OnPlayerRest event caller
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
ExecuteScript("prc_rest", OBJECT_SELF);
|
||||||
|
|
||||||
|
ExecuteScript("onplayerrest", OBJECT_SELF);
|
||||||
|
|
||||||
|
}
|
17
_module/nss/call_onrespawn.nss
Normal file
17
_module/nss/call_onrespawn.nss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//:://////////////////////////////////////////////
|
||||||
|
/*
|
||||||
|
* call_onrespawn.nss
|
||||||
|
*
|
||||||
|
* OnPlayerRespawn event caller
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
ExecuteScript("prc_onrespawn", OBJECT_SELF);
|
||||||
|
|
||||||
|
ExecuteScript("onplayerrespawn", OBJECT_SELF);
|
||||||
|
|
||||||
|
}
|
17
_module/nss/call_onunacquire.nss
Normal file
17
_module/nss/call_onunacquire.nss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//:://////////////////////////////////////////////
|
||||||
|
/*
|
||||||
|
* call_onunacquire.nss
|
||||||
|
*
|
||||||
|
* OnPlayerUnacquireItem event caller
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
ExecuteScript("prc_onunaquire", OBJECT_SELF);
|
||||||
|
|
||||||
|
ExecuteScript("onunacquireitem", OBJECT_SELF);
|
||||||
|
|
||||||
|
}
|
17
_module/nss/call_onunequip.nss
Normal file
17
_module/nss/call_onunequip.nss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//:://////////////////////////////////////////////
|
||||||
|
/*
|
||||||
|
* call_onunequip.nss
|
||||||
|
*
|
||||||
|
* OnPlayerUnequipItem event caller
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
ExecuteScript("prc_unequip", OBJECT_SELF);
|
||||||
|
|
||||||
|
ExecuteScript("onunequipitem", OBJECT_SELF);
|
||||||
|
|
||||||
|
}
|
@ -16,8 +16,6 @@
|
|||||||
#include "x2_inc_switches"
|
#include "x2_inc_switches"
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
ExecuteScript("prc_onaquire", OBJECT_SELF);
|
|
||||||
|
|
||||||
//IMPORTANT THIS MUST BE IN YOUR OnAcquireItem Module Event Script
|
//IMPORTANT THIS MUST BE IN YOUR OnAcquireItem Module Event Script
|
||||||
//This is a fix for the Inventory Organizing System!
|
//This is a fix for the Inventory Organizing System!
|
||||||
object oPC = GetModuleItemAcquiredBy();
|
object oPC = GetModuleItemAcquiredBy();
|
||||||
|
@ -37,7 +37,7 @@ void SendMessageToAllPC(string sMessage);
|
|||||||
//Main Script
|
//Main Script
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
ExecuteScript("prc_onenter", OBJECT_SELF);
|
|
||||||
|
|
||||||
//Declare Major Variables..
|
//Declare Major Variables..
|
||||||
object oPC;
|
object oPC;
|
||||||
|
@ -24,7 +24,6 @@ void SendMessageToAllPC(string sMessage);
|
|||||||
//Main Script
|
//Main Script
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
ExecuteScript("prc_onleave", OBJECT_SELF);
|
|
||||||
object oPC = GetExitingObject();
|
object oPC = GetExitingObject();
|
||||||
|
|
||||||
if(GetIsDM(oPC))
|
if(GetIsDM(oPC))
|
||||||
|
@ -19,7 +19,7 @@ Event of the Module Properties
|
|||||||
//Main Script
|
//Main Script
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
ExecuteScript("prc_onheartbeat", OBJECT_SELF);
|
|
||||||
//IMPORTANT NOTE: If you are using nwnx2 to load your server you will
|
//IMPORTANT NOTE: If you are using nwnx2 to load your server you will
|
||||||
//want to open up the OnModuleLoad script to activate the NWNX2 Reset
|
//want to open up the OnModuleLoad script to activate the NWNX2 Reset
|
||||||
//and below you will need to follow the directions to turn off normal reset.
|
//and below you will need to follow the directions to turn off normal reset.
|
||||||
|
@ -35,7 +35,6 @@ const string NWNX_DISCORD_URL = "/api/webhooks/713882600216723518/1EpwmMZ6F9VBjD
|
|||||||
//Main Script
|
//Main Script
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
ExecuteScript("prc_onmodload", OBJECT_SELF);
|
|
||||||
//Set whether we are using this module for multiplayer or single player..
|
//Set whether we are using this module for multiplayer or single player..
|
||||||
SetLocalInt(GetModule(), "MULTI", MULTI);
|
SetLocalInt(GetModule(), "MULTI", MULTI);
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ const int nReward2 = 800;
|
|||||||
// Raise OnDeath function (Standard Bioware Function)
|
// Raise OnDeath function (Standard Bioware Function)
|
||||||
void Raise(object oPlayer)
|
void Raise(object oPlayer)
|
||||||
{
|
{
|
||||||
ExecuteScript("prc_ondeath", OBJECT_SELF);
|
|
||||||
effect eVisual = EffectVisualEffect(VFX_IMP_RESTORATION);
|
effect eVisual = EffectVisualEffect(VFX_IMP_RESTORATION);
|
||||||
|
|
||||||
effect eBad = GetFirstEffect(oPlayer);
|
effect eBad = GetFirstEffect(oPlayer);
|
||||||
|
@ -15,7 +15,7 @@ Likewise players cannot equipt items tagnamed "arena" outside of the arena.
|
|||||||
//Main Script
|
//Main Script
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
ExecuteScript("prc_equip", OBJECT_SELF);
|
|
||||||
//Declare Major Variables
|
//Declare Major Variables
|
||||||
object oItem = GetPCItemLastEquipped();
|
object oItem = GetPCItemLastEquipped();
|
||||||
object oPC = GetPCItemLastEquippedBy();
|
object oPC = GetPCItemLastEquippedBy();
|
||||||
|
@ -89,7 +89,6 @@ else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_KNO
|
|||||||
//a legal character or not, just delete the // below to use
|
//a legal character or not, just delete the // below to use
|
||||||
//DelayCommand(2.0, ExecuteScript("cheatercheck4", oPC));
|
//DelayCommand(2.0, ExecuteScript("cheatercheck4", oPC));
|
||||||
|
|
||||||
ExecuteScript("prc_levelup", oPC);
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
//SimTools Languages
|
//SimTools Languages
|
||||||
|
@ -36,8 +36,6 @@ void Raise(object oPlayer);
|
|||||||
//Main Script
|
//Main Script
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
ExecuteScript("prc_onrespawn", OBJECT_SELF);
|
|
||||||
|
|
||||||
object oPC = GetLastRespawnButtonPresser();
|
object oPC = GetLastRespawnButtonPresser();
|
||||||
|
|
||||||
if (!GetIsPC(oPC)) return;
|
if (!GetIsPC(oPC)) return;
|
||||||
|
@ -212,7 +212,7 @@ if(GetLocalInt(GetModule(), "MULTI")==TRUE)
|
|||||||
ExecuteScript("powerimmortal", oPC);
|
ExecuteScript("powerimmortal", oPC);
|
||||||
}
|
}
|
||||||
|
|
||||||
ExecuteScript("prc_rest", oPC);
|
//ExecuteScript("prc_rest", oPC);
|
||||||
|
|
||||||
//Your code goes here. (This happens when the PC is done resting..)
|
//Your code goes here. (This happens when the PC is done resting..)
|
||||||
|
|
||||||
|
@ -21,8 +21,6 @@ Scripting will still fire reguardless.
|
|||||||
#include "x2_inc_switches"
|
#include "x2_inc_switches"
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
ExecuteScript("prc_onunaquire", OBJECT_SELF);
|
|
||||||
|
|
||||||
//IMPORTANT THIS MUST BE IN YOUR OnUnAcquireItem Module Event Script
|
//IMPORTANT THIS MUST BE IN YOUR OnUnAcquireItem Module Event Script
|
||||||
//This is a fix for the Inventory Organizing System!
|
//This is a fix for the Inventory Organizing System!
|
||||||
object oPC = GetModuleItemLostBy();
|
object oPC = GetModuleItemLostBy();
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
//Main Script
|
//Main Script
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
ExecuteScript("prc_unequip", OBJECT_SELF);
|
|
||||||
|
|
||||||
object oItem = GetPCItemLastUnequipped();
|
object oItem = GetPCItemLastUnequipped();
|
||||||
object oPC = GetPCItemLastUnequippedBy();
|
object oPC = GetPCItemLastUnequippedBy();
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user