Implemented trade invitation code.

This commit is contained in:
Filip Maj 2017-09-17 15:04:29 -04:00
parent 9649d755a9
commit c7e38b8b00
7 changed files with 306 additions and 7 deletions

View file

@ -0,0 +1,20 @@
--[[
ConfirmTradeCommand Script
Handles what happens when you accept/refuse a trade
--]]
function onEventStarted(player, actor, triggerName, groupType, result)
--Accept
if (result == 1) then
GetWorldManager():AcceptTrade(player);
--Refuse
elseif (result == 2) then
GetWorldManager():RefuseTrade(player);
end
player:EndEvent();
end