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:
Zaela
2013-06-22 08:35:33 -07:00
parent e811e3975b
commit c5e4cf35c0
5 changed files with 316 additions and 111 deletions
+9 -1
View File
@@ -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: