mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 11:47:48 +00:00
20 lines
No EOL
356 B
Lua
20 lines
No EOL
356 B
Lua
--[[
|
|
|
|
ConfirmTradeCommand Script
|
|
|
|
Handles what happens when you accept/refuse a trade
|
|
|
|
--]]
|
|
|
|
function onEventStarted(player, actor, eventType, eventName, groupType, result)
|
|
|
|
--Accept
|
|
if (result == 1) then
|
|
GetWorldManager():AcceptTrade(player);
|
|
--Refuse
|
|
elseif (result == 2) then
|
|
GetWorldManager():RefuseTrade(player);
|
|
end
|
|
player:EndEvent();
|
|
|
|
end |