mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
Required scripts to make it work.
This commit is contained in:
parent
5d494255ad
commit
8a0ebe7ec4
3 changed files with 41 additions and 20 deletions
|
@ -1,28 +1,12 @@
|
|||
--[[
|
||||
|
||||
PartyKickCommand Script
|
||||
PartyResignCommand Script
|
||||
|
||||
Handles requesting to kick (oust) and various errors.
|
||||
|
||||
TextIds:
|
||||
|
||||
30404 - Ousted Sheet/ActorId Version
|
||||
30410 - You are Ousted
|
||||
30428 - Ousted String Version
|
||||
30540 - You are not party leader
|
||||
30555 - Unable to oust
|
||||
30575 - Cannot oust due to not pt member
|
||||
Handles leaving a party
|
||||
|
||||
--]]
|
||||
|
||||
function onEventStarted(player, actor, name)
|
||||
worldMaster = GetWorldMaster();
|
||||
|
||||
if (player:IsPartyLeader()) then
|
||||
player:PartyKickPlayer(name);
|
||||
else
|
||||
player:SendGameMessage(player, worldMaster, 30540, 0x20);
|
||||
end
|
||||
|
||||
function onEventStarted(player, actor, triggerName)
|
||||
player:PartyLeave(name);
|
||||
player:EndEvent();
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue