mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 03:31:08 +00:00
[Quest API] Add Instance ID/Version exports to EVENT_ZONE. (#2502)
# Perl - Add `$from_instance_id` to EVENT_ZONE in Perl. - Add `$from_instance_version` to EVENT_ZONE in Perl. - Add `$target_instance_id` to EVENT_ZONE in Perl. - Add `$target_instance_version` to EVENT_ZONE in Perl. # Lua - Add `e.from_instance_id` to EVENT_ZONE in Lua. - Add `e.from_instance_version` to EVENT_ZONE in Lua. - Add `e.instance_id` to EVENT_ZONE in Lua. - Add `e.instance_version` to EVENT_ZONE in Lua. # Notes - This will allow Operators to prevent people from entering zones by Instance ID or Instance Version.
This commit is contained in:
@@ -434,7 +434,19 @@ void handle_player_zone(QuestInterface *parse, lua_State* L, Client* client, std
|
||||
lua_setfield(L, -2, "from_zone_id");
|
||||
|
||||
lua_pushinteger(L, std::stoi(sep.arg[1]));
|
||||
lua_setfield(L, -2, "from_instance_id");
|
||||
|
||||
lua_pushinteger(L, std::stoi(sep.arg[2]));
|
||||
lua_setfield(L, -2, "from_instance_version");
|
||||
|
||||
lua_pushinteger(L, std::stoi(sep.arg[3]));
|
||||
lua_setfield(L, -2, "zone_id");
|
||||
|
||||
lua_pushinteger(L, std::stoi(sep.arg[4]));
|
||||
lua_setfield(L, -2, "instance_id");
|
||||
|
||||
lua_pushinteger(L, std::stoi(sep.arg[5]));
|
||||
lua_setfield(L, -2, "instance_version");
|
||||
}
|
||||
|
||||
void handle_player_duel_win(QuestInterface *parse, lua_State* L, Client* client, std::string data, uint32 extra_data,
|
||||
|
||||
Reference in New Issue
Block a user