mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Required scripts to make it work.
This commit is contained in:
19
data/scripts/commands/PartyBreakupCommand.lua
Normal file
19
data/scripts/commands/PartyBreakupCommand.lua
Normal 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
|
Reference in New Issue
Block a user