Full Distribution

This commit is contained in:
rasanpedromujica
2019-01-16 17:16:38 -05:00
commit 009a571331
1258 changed files with 185603 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
function onSay(player, words, param)
local party = player:getParty()
if not party then
player:sendCancelMessage("You are not part of a party.")
return false
end
if party:getLeader() ~= player then
player:sendCancelMessage("You are not the leader of the party.")
return false
end
if party:isSharedExperienceActive() then
if player:getCondition(CONDITION_INFIGHT) then
player:sendCancelMessage("You are in fight. Experience sharing not disabled.")
else
party:setSharedExperience(false)
end
else
if player:getCondition(CONDITION_INFIGHT) then
player:sendCancelMessage("You are in fight. Experience sharing not enabled.")
else
party:setSharedExperience(true)
end
end
return false
end