Required scripts to make it work.

This commit is contained in:
Filip Maj 2017-01-02 14:38:56 -05:00
parent 5d494255ad
commit 8a0ebe7ec4
3 changed files with 41 additions and 20 deletions

View file

@ -0,0 +1,19 @@
--[[
PartyBreakupCommand Script
Handles disbanding the party.
--]]
function onEventStarted(player, actor, triggerName)
worldMaster = GetWorldMaster();
if (player:IsPartyLeader()) then
player:PartyDisband(name)
else
player:SendGameMessage(player, worldMaster, 30540, 0x20);
end
player:EndEvent();
end