Removed all the unique talk defaults for Wil region (thx Jorge). Got most of man0l0 working with the new system. Fixed nullterm str parsing.

This commit is contained in:
Filip Maj 2022-01-27 17:38:15 -05:00
parent 6e869af4fb
commit 26fd79bea5
133 changed files with 481 additions and 2247 deletions

View file

@ -8,7 +8,7 @@ Switches between active and passive mode states
--]]
function onEventStarted(player, command, triggerName)
function onEventStarted(player, command, eventType, eventName)
if (player.currentMainState == 0x0000) then
player.Engage(0, 0x0002);

View file

@ -32,11 +32,11 @@ function onTrigger(player, argc, p1, p2, p3, p4, privateArea, name, lastName)
-- we're getting a list/array from c# so 0 index
local pos = player:GetPos();
local player_x = pos[0];
local player_y = pos[1];
local player_z = pos[2];
local player_rot = pos[3];
local player_zone = pos[4];
local player_x = pos[1];
local player_y = pos[2];
local player_z = pos[3];
local player_rot = pos[4];
local player_zone = pos[5];
local worldManager = GetWorldManager();