mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 11:47:48 +00:00
20 lines
347 B
Lua
20 lines
347 B
Lua
![]() |
--[[
|
||
|
|
||
|
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
|