Piltrafa
Active Member
- Joined
- Nov 10, 2010
- Messages
- 654
- Reaction score
- 29
Hello, I want to make exahusted on this Scripts, because maybe OT will be crash if spam.
I think, exahusted of 20-30 seconds its perfect, but i didn't know how to make it.
Help me, I repped you.
function onSay(cid, words, param)
if getPlayerBlessing(cid,5) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have already been blessed.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)
doWriteLogFile("data/logs/bless.txt", "".. getCreatureName(cid) ..": !bless [already have]")
else
if doPlayerRemoveMoney(cid, 100000) == TRUE then
for i = 1,5 do
doPlayerAddBlessing(cid,i)
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have received blessings for 100k!")
doWriteLogFile("data/logs/bless.txt", "".. getCreatureName(cid) ..": !bless [bless added]")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ENERGYAREA)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need 100,000 gp in backpack for blessings.")
doWriteLogFile("data/logs/bless.txt", "".. getCreatureName(cid) ..": !bless [not enough money]")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ICEAREA)
end
end
return TRUE
end
I think, exahusted of 20-30 seconds its perfect, but i didn't know how to make it.
Help me, I repped you.