Postado Março 14, 2016 10 anos Autor 1 minuto atrás, vankk disse: Isso é com você. Ok vlws mano Deus te paga , e sempre bom ter auguem para ajudar a gente vou testar e dar seu rep+ 31 minutos atrás, vankk disse: Isso é com você. Mano olha oq disse http://prntscr.com/aexpsm
Postado Março 14, 2016 10 anos 12 horas atrás, eliaszinho disse: Ok vlws mano Deus te paga , e sempre bom ter auguem para ajudar a gente vou testar e dar seu rep+ Mano olha oq disse http://prntscr.com/aexpsm Muda essa parte: Citar if getPlayerItemCount(cid, k.itemsRequired.item1, k.itemsRequired.count1) ~= 1 or getPlayerItemCount(cid, k.itemsRequired.item2, k.itemsRequired.count2) ~= 1 then Por essa: Citar if getPlayerItemCount(cid, k.itemsRequired.item1, k.itemsRequired.count1) >= 1 or getPlayerItemCount(cid, k.itemsRequired.item2, k.itemsRequired.count2) >= 1 then
Postado Março 14, 2016 10 anos Autor 7 horas atrás, dominus disse: Muda essa parte: Por essa: ainda está com o mesmo erro obs: meu script ta assim o portamisterius.lua local k = { minLevel = 300, -- level minimo itemsRequired = { item1 = 4852, count1 = 1, item2 = 12581, count = 2 } } function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) < k.minLevel then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "The minium level to open this door is ".. k.minLevel ..".") return true end if getPlayerItemCount(cid, k.itemsRequired.item1, k.itemsRequired.count1) >= 1 or getPlayerItemCount(cid, k.itemsRequired.item2, k.itemsRequired.count2) >= 1 then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You does not have the required items") return true end doTransformItem(item.uid, getItemInfo(item.itemid).transformUseTo) return true end ------------------ actions.xml <action actionid="5991" event="script" value="portamisterius.lua"/> e na porta ta 5991
Postado Março 14, 2016 10 anos Quando postar um script assim, utilize a tag code, fica melhor organizado, e também não precisa postar xml, aqui só trabalhamos com code, e não com xml, pelo menos comigo. E, ops.. my bad. local k = { minLevel = 300, -- level minimo itemsRequired = { item1 = 4852, count1 = 1, item2 = 12581, count = 1 } } function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) < k.minLevel then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "The minium level to open this door is ".. k.minLevel ..".") return true end if (getPlayerItemCount(cid, k.itemsRequired.item1) ~= k.itemsRequired.count1) and (getPlayerItemCount(cid, k.itemsRequired.item2) ~= k.itemsRequired.count2) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You does not have the required items") return true end doTransformItem(item.uid, item.itemid + 1) return true end Editado Março 14, 2016 10 anos por vankk (veja o histórico de edições)
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.