Postado Junho 18, 2014 10 anos bem eu gostaria de colocar o bless para custar 100k alguem sabe ajuda nesse script function onSay(cid, words, param) local p = Player(cid) local cost = getBlessingsCost(getPlayerLevel(cid)) 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 OldTaboos24hpor48h.com Inauguração DOMONIGO as 18:00 | 18/03/2018 | Stages | Custom Map |VENHA SER TOP TABOOS!
Postado Junho 18, 2014 10 anos local cost = getBlessingsCost(getPlayerLevel(cid)) Mude para: local cost = 100000 -- valor da bless Espero ter ajudado. STYLLER OT 2022
Postado Junho 18, 2014 10 anos Autor obrigado ajudo muito <3 OldTaboos24hpor48h.com Inauguração DOMONIGO as 18:00 | 18/03/2018 | Stages | Custom Map |VENHA SER TOP TABOOS!
Postado Junho 18, 2014 10 anos O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Scripting → Actions e TalkActions" Para: "OTServ → Suporte OTServ → Suporte de Scripts" STYLLER OT 2022
Postado Junho 18, 2014 10 anos Autor cara ta errado nao funciona fico assim/ ainda cobra 1 crystalk apenas 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 = 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 Editado Junho 18, 2014 10 anos por kinglekke (veja o histórico de edições) 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.