mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 02:31:03 +00:00
Reworked RespawnFromHover framework to allow future customization (scripting) of respawn options.
Added event_respawn to be triggered when a client respawns from hover into the current zone (may not be set up correctly!).
This commit is contained in:
+9
-1
@@ -97,7 +97,8 @@ const char *QuestEventSubroutines[_LargestEventID] = {
|
||||
"EVENT_CONNECT",
|
||||
"EVENT_ITEM_TICK",
|
||||
"EVENT_DUEL_WIN",
|
||||
"EVENT_DUEL_LOSE"
|
||||
"EVENT_DUEL_LOSE",
|
||||
"EVENT_RESPAWN"
|
||||
};
|
||||
|
||||
extern Zone* zone;
|
||||
@@ -818,6 +819,13 @@ void PerlembParser::EventCommon(QuestEventID event, uint32 objid, const char * d
|
||||
break;
|
||||
}
|
||||
|
||||
case EVENT_RESPAWN:
|
||||
{
|
||||
ExportVar(packagename.c_str(), "respawn_option", data);
|
||||
ExportVar(packagename.c_str(), "is_rez", extradata);
|
||||
break;
|
||||
}
|
||||
|
||||
//nothing special about these events
|
||||
case EVENT_DEATH:
|
||||
case EVENT_SPAWN:
|
||||
|
||||
Reference in New Issue
Block a user