Postado Janeiro 25, 2017 8 anos galera alguem consegue me ajudar nessa funça?? esta dando erro Spoiler [Error - CreatureScript Interface] data/creaturescripts/scripts/Auto Loot.lua:onKill Description: data/creaturescripts/scripts/Auto Loot.lua:197: attempt to compare number with function stack traceback: data/creaturescripts/scripts/Auto Loot.lua:197: in function parte do scripts: function onKill(cid, target, lastHit) if getPlayerStorageValue(cid, 04421001) < os.time then <<<<<<<<<<<<<<<< ESSA E A LINHA QUE ESTA DANDO ERRO, ALGUEM SABE DIZER? if isPlayer(cid) and isMonster(target) then if getPlayerStorageValue(cid, 04421001) == 1 and #getPlayerList(cid) > 0 then local pos = getCreaturePosition(target) addEvent(autoLoot, 500, cid, pos) end if getPlayerStorageValue(cid, 04421011) == 1 then local pos = getCreaturePosition(target) addEvent(autoGold, 540, cid, pos) end if getPlayerStorageValue(cid, 04421001) == 1 or getPlayerStorageValue(cid, 04421011) == 1 then addEvent(sendMsg, 560, cid) end end end return true end ARRUMEI, SO TROKEI if getPlayerStorageValue(cid, 04428201) >= os.time() then Editado Janeiro 25, 2017 8 anos por mateusmoretti (veja o histórico de edições)
Postado Janeiro 25, 2017 8 anos @mateusmoretti, fico feliz que tenha conseguido arrumar, mas tenha cuidado, seus tópicos estão sempre em área errado amigo. Fico mas feliz ainda que tenha compartilhado a solução com a galera. @Tópico movido para área correta!
Postado Janeiro 25, 2017 8 anos Autor 1 minuto atrás, KotZletY disse: @mateusmoretti, fico feliz que tenha conseguido arrumar, mas tenha cuidado, seus tópicos estão sempre em área errado amigo. Fico mas feliz ainda que tenha compartilhado a solução com a galera. @Tópico movido para área correta! @KotZletY, me desculpe.. vou tomar mais cuidado com os post, obrigado por alertar !!
Postado Janeiro 25, 2017 8 anos @mateusmoretti if getPlayerStorageValue(cid, 04421001) < os.time() then se nao funcionar assim, troca a storage
Postado Janeiro 29, 2017 8 anos Em 25/01/2017 ás 02:49, Pepeco disse: @mateusmoretti if getPlayerStorageValue(cid, 04421001) < os.time() then se nao funcionar assim, troca a storage Não vai funcionar, precisa de dois simbolos de comparação "<=" GitHub: https://github.com/s3kk Conteúdo: [SERVER] Heromassa[GESIOR] Gesior 2012 modificado por Sekk[GESIOR] Shop Addons & Mounts - TFS 1.x[GESIOR] Outfitter para Characters e Rank[SISTEMA] Castle 24h[TALKACTION] Multi Element Wand[ACTION] Multi Elemental Arrow & Shield[PROGRAMAÇÃO] Compilar TFS 0.4 no Linux[PROGRAMAÇÃO] Compilando TFS 0.4 no MSVC(x64 e x32) [INFRAESTRUTURA] Configuração COMPLETA Google VM + Tibia 11.x
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.