Postado Julho 28, 2013 11 anos obrigado mano Contato : under12451 (Skype) Meus Tutoriais O Que é DDoS ? como se Proteger Por Tony Criando Servidor Poketibia Sistemas de Vips com [VIP] No Nome Cyclops - Mistrock - 100% AFK Como Editar um NPC 8.6 [ Itens e Preços] Editando Swords 8.6 Como Editar um NPC 8.6 [VENDA]
Postado Julho 29, 2013 11 anos Autor essa é a última atualização certo? local amuletos = { [8] = 2170, [9] = 2171, [10] = 2172, [11] = 2173, [12] = 2174, [13] = 2175, } function onLogin(cid) if getPlayerLastLoginSaved(cid) < 1 then doPlayerAddItem(cid, amuletos[getPlayerLevel(cid)]) end local amuleto = amuletos[getPlayerLevel(cid)] if amuleto and getPlayerItemCount(cid, amuleto) > 0 then registerCreatureEvent(cid, "AmuletoChange") end return true end function onAdvance(cid, skill, oldlevel, newlevel) if skill == 8 then local amuleto = amuletos[oldlevel] if getPlayerItemCount(cid, amuleto) > 0 and amuletos[newlevel] then doPlayerRemoveItem(cid, amuleto) doPlayerAddItem(cid, amuletos[newlevel], 1, false, CONST_SLOT_NECKLACE) end end return true end Ao upar o medalhão não é trocado e aparece o seguinte erro: O server não fecha, só quando eu dou print screen e eu não sei por que '.' Ot Design: https://discord.gg/VgtVRNmCD7
Postado Julho 29, 2013 11 anos local amuletos = { [1] = 2130, [2] = 2131, [3] = 2132, [4] = 2133, [5] = 2135, [6] = 2136, } function onLogin(cid) if getPlayerLastLoginSaved(cid) < 1 then doPlayerAddItem(cid, amuletos[getPlayerLevel(cid)]) end local amuleto = amuletos[getPlayerLevel(cid)] if amuleto and getPlayerItemCount(cid, amuleto) > 0 then registerCreatureEvent(cid, "AmuletoChange") end return true end function onAdvance(cid, skill, oldlevel, newlevel) if skill == 8 then local amuleto = amuletos[oldlevel] if getPlayerItemCount(cid, amuleto) > 0 and amuletos[newlevel] then doPlayerRemoveItem(cid, amuleto, 1) doPlayerAddItem(cid, amuletos[newlevel], 1, false, CONST_SLOT_NECKLACE) end end return true end Agora sim está certo. -"Supra Omnes Lux Lucis" - Acima de todos brilha a Luz -
Postado Julho 29, 2013 11 anos Autor Funcionou, agora só falta terminar o sistema do script, mas vou criar outro tópico pra isso, REP+ pra você e pro Bruno que me ajudaram. Dúvida sanada, tag adicionada.Tópico movido! Ot Design: https://discord.gg/VgtVRNmCD7
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.