Postado Agosto 25, 2014 10 anos Me ajudem a modificar essa SCRIPT, colocar ela pra usar a cada 5 minutos function onUse(cid, item, frompos, item2, topos) if item.itemid == 5785 and doPlayerRemoveMoney(cid,500000) == 1 and getPlayerLevel (cid) >= 500 then doSendMagicEffect(topos,14) doPlayerSay(cid,"Level Odblokowany",16) addLevel(cid,1) doSendMagicEffect(topos,14) doPlayerSay(cid,"Level Odblokowany",16) else doPlayerSay(cid,"Sorry Niemasz 50 Gold",16) doPlayerSendCancel(cid,"Sorry no have Lvl 500!") end return 1 end I helped you ? REP +. Att: Abreu
Postado Agosto 25, 2014 10 anos function onUse(cid, item, frompos, item2, topos) local waittime = 300 --tempo para usar novamente em segundos. local storage = 918318 if exhaustion.check(cid, storage) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar novamente.") return false end if item.itemid == 5785 and doPlayerRemoveMoney(cid,500000) == 1 and getPlayerLevel (cid) >= 500 then doSendMagicEffect(topos,14) doPlayerSay(cid,"Level Odblokowany",16) addLevel(cid,1) doSendMagicEffect(topos,14) doPlayerSay(cid,"Level Odblokowany",16) exhaustion.set(cid, storage, waittime) else doPlayerSay(cid,"Sorry Niemasz 50 Gold",16) doPlayerSendCancel(cid,"Sorry no have Lvl 500!") end return 1 end Editado Agosto 25, 2014 10 anos por Alencar123 (veja o histórico de edições)
Postado Agosto 25, 2014 10 anos Autor Deu o seguinte error: Lua Script Error: [Action Interface] data/actions/scripts/desbugaexp.lua:onUse data/actions/scripts/desbugaexp.lua:6: attempt to index global 'exhaustion' <a nill value> I helped you ? REP +. Att: Abreu
Postado Agosto 25, 2014 10 anos function onUse(cid, item, frompos, item2, topos) local waittime = 300 --tempo para usar novamente em segundos. local storage = 918318 if exhaustion.check(cid) storage == 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar novamente.") return false end if item.itemid == 5785 and doPlayerRemoveMoney(cid,500000) == 1 and getPlayerLevel (cid) >= 500 then doSendMagicEffect(topos,14) doPlayerSay(cid,"Level Odblokowany",16) addLevel(cid,1) doSendMagicEffect(topos,14) doPlayerSay(cid,"Level Odblokowany",16) exhaustion.set(cid, storage, waittime) else doPlayerSay(cid,"Sorry Niemasz 50 Gold",16) doPlayerSendCancel(cid,"Sorry no have Lvl 500!") end return 1 end Editado Agosto 25, 2014 10 anos por Alencar123 (veja o histórico de edições)
Postado Agosto 25, 2014 10 anos @Alencar123, o problema é que o server dele não tem as funções de exhaust.set e exhaust.check... troca essas funções por storage que vai funcionar Todos os meus trabalhos importantes estão na seção "Sobre mim" no meu perfil; Dá uma passada lá! "Há três caminhos para o fracasso: não ensinar o que se sabe, não praticar o que se ensina, e não perguntar o que se ignora." - São Beda (obg ao @Beeny por fazer essa linda sign <3)
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.