Cze??, czy posiada kto? komend? !shared pod tibi? 7.60 dzia?aj?ca na TFS 1.2? Ta poni?ej niestety nie dzia?a.:
Tutaj funkcje z mojego silnika:
Silnik przystosowany do wywo?ywania exp shared przez klikniecie na gracza + exp shared, a tibia 7.60 tego nie posiada.
PHP:
local settings = {
inFightBlock = true,
onlyLeader = true
}
function onSay(cid, words, param)
local members = getPartyMembers(cid)
if not members then
doPlayerSendCancel(cid, "You are not in a party.")
return false
end
if settings.onlyLeader and not isPartyLeader(cid) then
doPlayerSendCancel(cid, "Only party leader can enable or disable shared experience.")
return false
end
if settings.inFightBlock and hasCondition(cid, CONDITION_INFIGHT) then
doPlayerSendCancel(cid, "You need to be out of fight.")
return false
end
local boolean = not isPartySharedExperienceActive(cid)
if setPartySharedExperience(cid, boolean) then
for _, pid in ipairs(members) do
if not isPartyLeader(pid) then
doPlayerSendTextMessage(pid, MESSAGE_EVENT_ADVANCE, "Shared Experience has been "..(boolean and "activated" or "deactivated")..".")
end
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "There was an error. Try again in few seconds.")
end
return false
end
Tutaj funkcje z mojego silnika:
PHP:
// Party
registerClass("Party", "", nullptr);
registerMetaMethod("Party", "__eq", LuaScriptInterface::luaUserdataCompare);
registerMethod("Party", "disband", LuaScriptInterface::luaPartyDisband);
registerMethod("Party", "getLeader", LuaScriptInterface::luaPartyGetLeader);
registerMethod("Party", "setLeader", LuaScriptInterface::luaPartySetLeader);
registerMethod("Party", "getMembers", LuaScriptInterface::luaPartyGetMembers);
registerMethod("Party", "getMemberCount", LuaScriptInterface::luaPartyGetMemberCount);
registerMethod("Party", "getInvitees", LuaScriptInterface::luaPartyGetInvitees);
registerMethod("Party", "getInviteeCount", LuaScriptInterface::luaPartyGetInviteeCount);
registerMethod("Party", "addInvite", LuaScriptInterface::luaPartyAddInvite);
registerMethod("Party", "removeInvite", LuaScriptInterface::luaPartyRemoveInvite);
registerMethod("Party", "addMember", LuaScriptInterface::luaPartyAddMember);
registerMethod("Party", "removeMember", LuaScriptInterface::luaPartyRemoveMember);
registerMethod("Party", "isSharedExperienceActive", LuaScriptInterface::luaPartyIsSharedExperienceActive);
registerMethod("Party", "isSharedExperienceEnabled", LuaScriptInterface::luaPartyIsSharedExperienceEnabled);
registerMethod("Party", "shareExperience", LuaScriptInterface::luaPartyShareExperience);
registerMethod("Party", "setSharedExperience", LuaScriptInterface::luaPartySetSharedExperience);
}
Silnik przystosowany do wywo?ywania exp shared przez klikniecie na gracza + exp shared, a tibia 7.60 tego nie posiada.