Postado Junho 4, 2015 10 anos Este é um post popular. Script simples mas pode ser útil, para os ot admin. data/talkactions/scripts addplayersonline.lua : function onSay(player, words, param) if not player:getGroup():getAccess() then return true end if player:getAccountType() < ACCOUNT_TYPE_GOD then return false end local v = param:split(",") if #v ~= 2 then player:sendCancelMessage("Insufficient parameters.") return false end local item, count = tonumber(v[1]), tonumber(v[2]) for _, pid in pairs(Game.getPlayers()) do pid:addItem(item, count) end broadcastMessage("A equipe acaba de mandar "..count.." "..ItemType(item):getName().." para todos os player online!", MESSAGE_STATUS_WARNING) return false end tag.XML : <talkaction words="/addplayersonline" separator=" " script="addplayersonline.lua" /> Editado Junho 6, 2015 10 anos por Stinger (veja o histórico de edições) I must not fear. Fear is the mind killer.
Postado Junho 4, 2015 10 anos Tópico aprovado, obrigado pela contribuição flavio... um rep na bunda, pela talkaction bem legal Se quiser sua dúvida tirada, mande PM com os links, e não com a dúvida (outros podem ter a mesma dúvida, e o fórum serve para ser usado). Tópicos: [FAQ] BBCODE [LIB] Constant [RME] Administrando bordas. [TALK] Broadcast Editável. [TALK] Sugest. [TALK] Checkpoint. [MOVE] Pântano pegajoso. [ACTION] Piggy Bank. (Cassino). [GLOBAL] Uptime Ad. [C0DE] Consertando 'Invalid Password' [PROGRAM] Quest Maker
Postado Junho 6, 2015 10 anos Os player não recebe a mensagem, da erro.. Lua Script Error: [TalkAction Interface] data/talkactions/scripts/addplayersonline.lua:onSay data/talkactions/scripts/addplayersonline.lua:17: attempt to call a string value stack traceback: [C]: in ? data/talkactions/scripts/addplayersonline.lua:17: in function <data/talkactions/scripts/addplayersonline.lua:1> Antica Global - Server Online SITE: http://anticaglobal.com/ IP: anticaglobal.com EXP: 999x [sTAGES] ML: 300x SKILL: 500x LOOT: 10x VERSÃO: 10.77 PORTA: 7171 Stages: 1 - 8 level, 999x 9 - 20 level, 950x 21 - 50 level, 800x 51 - 100 level, 750x 101 - 130 level, 650x 131 - 180 level, 550x 181 - 230 level, 450x 231 - 300 level, 350x 301+ level, 300x
Postado Junho 6, 2015 10 anos Autor ^ Corrigido, falta de atenção minha. I must not fear. Fear is the mind killer.
Postado Junho 6, 2015 10 anos ^ Corrigido, falta de atenção minha. Beleza, agora funfou Antica Global - Server Online SITE: http://anticaglobal.com/ IP: anticaglobal.com EXP: 999x [sTAGES] ML: 300x SKILL: 500x LOOT: 10x VERSÃO: 10.77 PORTA: 7171 Stages: 1 - 8 level, 999x 9 - 20 level, 950x 21 - 50 level, 800x 51 - 100 level, 750x 101 - 130 level, 650x 131 - 180 level, 550x 181 - 230 level, 450x 231 - 300 level, 350x 301+ level, 300x
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.