Untitled
Guest 222 18th Mar, 2023
macro(500, "Auto party", function()
local spectators = g_map.getSpectators(g_game.getLocalPlayer():getPosition())
for i,v in pairs(spectators) do
if(v:isPlayer()) then
if(v:getShield() == 1) then
g_game.partyJoin(v:getId())
return
end
end
end
end)
local palavraChave = 'rk' -- tekst na ktory daje auto party
local autoParty = macro(10000, "AUTO - PARTY", function() end)
onTalk(function(name, level, mode, text, channelId, pos)
if autoParty:isOff() then return end
if player:getShield() == 4 then
g_game.partyShareExperience(not player:isPartySharedExperienceActive())
end
if name == player:getName() then return end
if mode ~= 1 then return end
if string.find(text, palavraChave) then
local friend = getPlayerByName(name)
g_game.partyInvite(friend:getId())
end
end)
addIcon("autoParty", {item=9173, text="Auto-PT",}, function(icon, isOn)
autoParty.setOn(isOn)
end)
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
- Untitled
Markup | 14 | 3 hours ago
- Untitled
Markup | 22 | 5 hours ago
- Wanted to see what your conviction is on this theme
Markdown | 12 | 6 hours ago
- Untitled
Markup | 57 | 1 day ago
- mega555kf7lsmb54yd6etzginolhxxi4ytdoma2rf77ngq55fhfcnyid.onion
Template Toolkit 2 | 24 | 1 day ago
- Untitled
Markup | 67 | 2 days ago
- Untitled
Markup | 65 | 2 days ago