data\talkactions\scripts\bless.lua
function onSay(cid, words, param) local fail = 0 if getPlayerLevel(cid) < 31 then cost = 2000 else cost = ((getPlayerLevel(cid) - 30) * 200) + 2000 end if cost > 20000 then cost = 20000 end for i = 1, 5 do if getPlayerBlessing(cid, i) then fail = fail + 1 else if doPlayerRemoveMoney(cid, cost) == TRUE then doPlayerAddBlessing(cid, i) if i == 5 and not(fail == 5) then doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED) end else doPlayerSendCancel(cid, "You do not have enough money to buy all the blessings!") break end end end if fail == 5 then doPlayerSendCancel(cid, "You already have all the blessings!") end return TRUE end
data\talkactions\talkactions.xml
<talkaction words="!bless" script="bless.lua" />
aqui bless
não sei como funciona esse Perfect System Vip
se não editava mais deixa como base pra alguém ![]()




info
Grupo: Campones
Registrado: 15/02/08
Posts: 72
Reputação: 0
Boa Noi-ti meus amigos,
Gostaria de saber se alguém pode me ajudar com um comando, e um script.
Gostaria de um comando que se o player falar !bless ele receba os bless (porem meu ot é de war e acho que não tem os bless).
Queria que quando o player desse !bless diminui-se apenas a perda de skill e de lv quando morre em 50%, porem só possa ser usado por players VIP e eu uso o Perfect System Vip no meu OT se alguém souber vale RESP ++++++
E se o player falar !bless e não for VIP de uma mensagem assim "diga !buyvip para poder se tornar Vip e usar esse comando".
Editado Agosto 3 por jhowxd