mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
Forgot to commit TradeOfferCommand changes. Added removing the active ls if you are kicked/retired.
This commit is contained in:
parent
f5ebb3fb3b
commit
eb43a7523d
@ -222,6 +222,14 @@ namespace FFXIVClassic_World_Server.DataObjects.Group
|
|||||||
SendGroupPacketsAll(GetMemberIds());
|
SendGroupPacketsAll(GetMemberIds());
|
||||||
ResendWorkValues();
|
ResendWorkValues();
|
||||||
|
|
||||||
|
//If active, remove it
|
||||||
|
if (requestSession.activeLinkshellName.Equals(name))
|
||||||
|
{
|
||||||
|
SubPacket activeLsPacket = SetActiveLinkshellPacket.BuildPacket(requestSession.sessionId, 0);
|
||||||
|
requestSession.clientConnection.QueuePacket(activeLsPacket);
|
||||||
|
requestSession.SetActiveLS("");
|
||||||
|
}
|
||||||
|
|
||||||
//Delete group for kicked guy
|
//Delete group for kicked guy
|
||||||
SendDeletePacket(requestSession);
|
SendDeletePacket(requestSession);
|
||||||
}
|
}
|
||||||
@ -260,6 +268,14 @@ namespace FFXIVClassic_World_Server.DataObjects.Group
|
|||||||
SendGroupPacketsAll(GetMemberIds());
|
SendGroupPacketsAll(GetMemberIds());
|
||||||
ResendWorkValues();
|
ResendWorkValues();
|
||||||
|
|
||||||
|
//If active, remove it
|
||||||
|
if (requestSession.activeLinkshellName.Equals(name))
|
||||||
|
{
|
||||||
|
SubPacket activeLsPacket = SetActiveLinkshellPacket.BuildPacket(requestSession.sessionId, 0);
|
||||||
|
requestSession.clientConnection.QueuePacket(activeLsPacket);
|
||||||
|
requestSession.SetActiveLS("");
|
||||||
|
}
|
||||||
|
|
||||||
//Delete group for kicked guy
|
//Delete group for kicked guy
|
||||||
SendDeletePacket(kickedSession);
|
SendDeletePacket(kickedSession);
|
||||||
|
|
||||||
|
@ -10,10 +10,12 @@ function onEventStarted(player, actor, triggerName, name, arg1, arg2, arg3, acto
|
|||||||
|
|
||||||
local otherActor = nil;
|
local otherActor = nil;
|
||||||
|
|
||||||
if (name ~= nil) then
|
--ActorID Search
|
||||||
otherActor = player:GetZone():FindPCInZone(name);
|
if (actorId ~= nil) then
|
||||||
elseif (actorId ~= nil) then
|
|
||||||
otherActor = player:GetZone():FindActorInArea(actorId);
|
otherActor = player:GetZone():FindActorInArea(actorId);
|
||||||
|
--Name Search
|
||||||
|
elseif (name ~= nil) then
|
||||||
|
otherActor = player:GetZone():FindPCInZone(name);
|
||||||
end
|
end
|
||||||
|
|
||||||
if (otherActor ~= nil) then
|
if (otherActor ~= nil) then
|
||||||
@ -22,5 +24,4 @@ function onEventStarted(player, actor, triggerName, name, arg1, arg2, arg3, acto
|
|||||||
end
|
end
|
||||||
|
|
||||||
player:EndEvent();
|
player:EndEvent();
|
||||||
|
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user