GE
talkaction

[Talkactions] Bless Tibia Rl

Por genoma, 10 de nov. de 2010 em Actions e Talkactions

otserv
tibia
script
2
2.2k
genomaG
10 de novembro de 2010 às 20:46

Olá a todos, primeiramente quero avisar que o Distro usado é o do WeDo.

 

Abra a pasta do seu ot data/talkactions/script, copie qualquer arquivo de lá, renomeie para bless, e cole isso:

 

-- [( Script by DoidinMapper and Genoma )] --

 

function onSay(cid, words, param)

if getPlayerLevel(cid) <= 30 then

cost = 11000

else

cost = (200 * (getPlayerLevel(cid) - 30) + 2000) * 5 * 1.1

end

if getPlayerLevel(cid) >= 120 then

cost = 110000

end

if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then

doPlayerSendCancel(cid,'You already have all the blessings.')

else

if doPlayerRemoveMoney(cid, cost) == TRUE then

doPlayerAddBlessing(cid, 1)

doPlayerAddBlessing(cid, 2)

doPlayerAddBlessing(cid, 3)

doPlayerAddBlessing(cid, 4)

doPlayerAddBlessing(cid, 5)

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYAREA)

doPlayerSendTextMessage(cid,22,"You have been blessed by the Gods.")

else

doPlayerSendCancel(cid, "You do not have enough money to buy all the blessings.")

end

end

return TRUE

end

 

Agora vá em talkactions.xml e adicione essa tag:

<talkaction words="!buybless;/buybless;!bless;/bless" script="bless.lua" />

 

Explicações:

.Até o level 29 o player pagará fixo 11K por bless;

.à partir do level 30 até o 119 a bless será paga de acordo com o level do player, de acordo com a fórmula que copiei do TibiaWiki;

.do level 120 em diante será 110K fixos para comprar as bless.

 

é isso ae, espero que aproveitem!

 

Créditos:

Doidin

TibiaWiki

E logicamente, EU, pois editei várias coisas no script que vem no server do WeDo.

 

 

Valeu galera :XTibia_smile:

Editado Novembro 10 por genoma

1 mês depois...
ToretteT
20 de dezembro de 2010 às 11:27

Tip: click inside this box to load the editorn pego grande bosta