Postado Junho 4, 2017 8 anos local monster = {"Rattata", "Raticate", "Gloom"} -- Monstros que serão criados. local position = getCreaturePosition(cid) -- Posição que monstros vão nascer. local exhausted = 120 -- Tempo em segundos para usar. local level = 20 -- Level minimo para usar. local storage = 4400 -- Registro para salvar tempo. function onUse(cid, item, frompos, itemEx, topos) if(os.time() < getPlayerStorageValue(cid, storage)) then doPlayerSendCancel(cid, 'You can only call a monster again after '.. exhaustion.get(cid, storage) .. ' seconds.') return true end if getPlayerLevel(cid) >= level then setPlayerStorageValue(cid, storage, os.time() + exhausted) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a ".. monster[math.random(1, #monster)] ..".") doCreateMonster(monster[math.random(1, #monster)], position) else doPlayerSendCancel(cid, 'You\'re too weak to call a monsters here, come back when you\'re level '.. level .. '.') end return true end não tem função nenhuma na sua source o.o' qual source ta usando? Editado Junho 4, 2017 8 anos por klipstyle (veja o histórico de edições) www.pokemiw.com 24 Horas Online - 1º 2º 3º 4º 5º 6º 7º gerações 100%
Postado Junho 4, 2017 8 anos Autor Essa man 2 minutos atrás, klipstyle disse: não tem função nenhuma na sua source o.o' qual source ta usando?
Postado Junho 4, 2017 8 anos 1 minuto atrás, Adventure disse: Essa man local monster = {"Rattata", "Raticate", "Gloom"} -- Monstros que serão criados. local position = getCreaturePosition(cid) -- Posição que monstros vão nascer. local exhausted = 120 -- Tempo em segundos para usar. local level = 20 -- Level minimo para usar. local storage = 4400 -- Registro para salvar tempo. function onUse(cid, item, frompos, itemEx, topos) if(os.time() < getPlayerStorageValue(cid, storage)) then doPlayerSendCancel(cid, 'You can only call a monster again after '.. exhaustion.get(cid, storage) .. ' seconds.') return true end if getPlayerLevel(cid) >= level then setPlayerStorageValue(cid, storage, os.time() + exhausted) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a ".. monster[math.random(1, #monster)] ..".") doCreateMonster(monster[math.random(1, #monster)], position) else doPlayerSendCancel(cid, 'You\'re too weak to call a monsters here, come back when you\'re level '.. level .. '.') end return true end www.pokemiw.com 24 Horas Online - 1º 2º 3º 4º 5º 6º 7º gerações 100%
Postado Junho 4, 2017 8 anos Autor 4 minutos atrás, klipstyle disse: local monster = {"Rattata", "Raticate", "Gloom"} -- Monstros que serão criados. local position = getCreaturePosition(cid) -- Posição que monstros vão nascer. local exhausted = 120 -- Tempo em segundos para usar. local level = 20 -- Level minimo para usar. local storage = 4400 -- Registro para salvar tempo. function onUse(cid, item, frompos, itemEx, topos) if(os.time() < getPlayerStorageValue(cid, storage)) then doPlayerSendCancel(cid, 'You can only call a monster again after '.. exhaustion.get(cid, storage) .. ' seconds.') return true end if getPlayerLevel(cid) >= level then setPlayerStorageValue(cid, storage, os.time() + exhausted) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a ".. monster[math.random(1, #monster)] ..".") doCreateMonster(monster[math.random(1, #monster)], position) else doPlayerSendCancel(cid, 'You\'re too weak to call a monsters here, come back when you\'re level '.. level .. '.') end return true end Lua Script Error: [Action Interface] data/actions/scripts/arvore.lua:onUse data/actions/scripts/arvore.lua:15: attempt to call global 'doCreateMonster' (a nil value) stack traceback: [C]: in function 'doCreateMonster' data/actions/scripts/arvore.lua:15: in function <data/actions/scripts/arvore.lua:7> '-'
Postado Junho 4, 2017 8 anos Agora, Adventure disse: Lua Script Error: [Action Interface] data/actions/scripts/arvore.lua:onUse data/actions/scripts/arvore.lua:15: attempt to call global 'doCreateMonster' (a nil value) stack traceback: [C]: in function 'doCreateMonster' data/actions/scripts/arvore.lua:15: in function <data/actions/scripts/arvore.lua:7> '-' vish maria sua source nao tem nenhuma função do script kkk' www.pokemiw.com 24 Horas Online - 1º 2º 3º 4º 5º 6º 7º gerações 100%
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.