Postado Junho 19, 2014 10 anos Autor #up OldTaboos24hpor48h.com Inauguração DOMONIGO as 18:00 | 18/03/2018 | Stages | Custom Map |VENHA SER TOP TABOOS!
Postado Junho 19, 2014 10 anos local bless = {1, 2, 3, 4, 5} local cost = 10000 function onSay(cid, words, param) for i = 1, table.maxn(bless) do if(getPlayerBlessing(cid, bless[i])) then doPlayerSendCancel(cid, "Você ja tem todas as bless.") doSendMagicEffect(getPlayerPosition(cid), 2) return TRUE end end if(doPlayerRemoveMoney(cid, cost) == TRUE) then for i = 1, table.maxn(bless) do doPlayerAddBlessing(cid, bless[i]) end doCreatureSay(cid, "Bless!" ,19) doSendMagicEffect(getPlayerPosition(cid), 49) doSendMagicEffect(getPlayerPosition(cid), 48) else doPlayerSendCancel(cid, "Você precisa de 100k para comprar bless.") end return TRUE end Tenta usar essa script! TRABALHOS [iTEM.XML] Ancient Helmt dar HP e Duration: http://www.tibiaking.com/forum/topic/35010-itemxml-helmet-dar-vida-e-duration/ [CreatureScripts] OwNeD ao character morrer: http://www.tibiaking.com/forum/topic/35733-creaturescripta-owned-quando-morrer/
Postado Junho 21, 2014 10 anos Autor nao deu nao brother OldTaboos24hpor48h.com Inauguração DOMONIGO as 18:00 | 18/03/2018 | Stages | Custom Map |VENHA SER TOP TABOOS!
Postado Junho 21, 2014 10 anos Solução Tente assim: function onSay(cid, words, param) local p = Player(cid) local cost = 10000000 -- valor da bless if(not(isPlayerPzLocked(cid))) then if(p:hasBlessing(1) and p:hasBlessing(2) and p:hasBlessing(3) and p:hasBlessing(4) and p:hasBlessing(5)) then p:sendCancelMessage("You have already been blessed by the gods.") return false end if(p:removeMoney(cost)) then for b = 1,5 do p:addBlessing(b) end p:getPosition():sendMagicEffect(CONST_ME_HOLYAREA) p:sendTextMessage(MESSAGE_INFO_DESCR, "You have been blessed by the 5 gods!") else p:sendCancelMessage("You need "..cost.." gold coins to buy all 5 bless.") end else p:sendCancelMessage("You can't buy bless, when you are in a battle.") end return false end Se não der tente esse: function onSay(cid, words, param) local p = Player(cid) local cost = 100000 -- valor da bless if(not(isPlayerPzLocked(cid))) then if(p:hasBlessing(1) and p:hasBlessing(2) and p:hasBlessing(3) and p:hasBlessing(4) and p:hasBlessing(5)) then p:sendCancelMessage("You have already been blessed by the gods.") return false end if(p:removeMoney(cost)) then for b = 10,5 do p:addBlessing(b) end p:getPosition():sendMagicEffect(CONST_ME_HOLYAREA) p:sendTextMessage(MESSAGE_INFO_DESCR, "You have been blessed by the 5 gods!") else p:sendCancelMessage("You need "..cost.." gold coins to buy all 5 bless.") end else p:sendCancelMessage("You can't buy bless, when you are in a battle.") end return false end Editado Junho 21, 2014 10 anos por kelvin.shirazi (veja o histórico de edições) Ajudei? dá um REP + ↑↑ Projetos: Mapa próprio 8.70.
Postado Junho 21, 2014 10 anos Autor vc sabe criar script ? OldTaboos24hpor48h.com Inauguração DOMONIGO as 18:00 | 18/03/2018 | Stages | Custom Map |VENHA SER TOP TABOOS!
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.