Postado Julho 10, 2015 9 anos Se tiver group pra ser da staff, seja; tutor,gm,cm,god ao logar ter uma tag [6S] Tipo aqueles sv que qm é vip fica [VIP]Nome [6S]Nome
Postado Julho 10, 2015 9 anos Aproveitei e fiz para que a tag seja removida caso a criatura que a possui volte a ser player.autotag.lua (data\creaturescripts\scripts): function onLogout(cid) local tag = '[6S]' if getPlayerGroupId(cid) < 2 and getCreatureName(cid):find(tag) then db.query("UPDATE `players` SET `name` = '"..getCreatureName(cid):sub(5).."' WHERE `id` = "..getPlayerGUID(cid)..";") elseif getPlayerGroupId(cid) > 1 and not getCreatureName(cid):find(tag) then db.query("UPDATE `players` SET `name` = '"..tag..getCreatureName(cid).."' WHERE `id` = "..getPlayerGUID(cid)..";") end return true end creaturescripts.xml (data\creaturescripts): <event type="logout" name="AutoTag" event="script" value="autotag.lua"/> Não registra creature event. Editado Julho 12, 2015 9 anos por Wise (veja o histórico de edições) The corrupt fear us. The honest support us. The heroic join us.
Postado Julho 11, 2015 9 anos Autor Aproveitei e fiz para que a tag seja removida caso a criatura que a possui volte a ser player. autotag.lua (data\creaturescripts\scripts): function onLogin(cid) local tag = '[6S]' if getPlayerGroupId(cid) < 2 and getCreatureName(cid):find(tag) then db.query("UPDATE `players` SET `name` = '"..getCreatureName(cid):sub(5).."' WHERE `id` = "..getPlayerGUID(cid)..";") elseif getPlayerGroupId(cid) > 1 and not getCreatureName(cid):find(tag) then db.query("UPDATE `players` SET `name` = '"..tag..getCreatureName(cid).."' WHERE `id` = "..getPlayerGUID(cid)..";") end return doRemoveCreature(cid, true) end creaturescripts.xml (data\creaturescripts): <event type="login" name="AutoTag" event="script" value="autotag.lua"/> Não registra creature event. Deu erro, não nesse script, ele abriu, mas nos outros Qnd eu tento logar num char da erro em outros scripts que já tinham, tive q remover esse script pra poder logar no ot
Postado Julho 11, 2015 9 anos @maikons Cometi um erro terrível, já corrigi. The corrupt fear us. The honest support us. The heroic join us.
Postado Julho 12, 2015 9 anos Autor @maikons Cometi um erro terrível, já corrigi. ] Dessa vez mudou o nick, mas não deu pra logar, tive que tirar o script de novo
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.