darksta
New Member
- Joined
- Feb 10, 2010
- Messages
- 39
- Reaction score
- 0
hello all!
My problem with the purchase of bless, is that it has limited purchase rather buy them as many times as you want and it is logical that only allowed to purchase only once, till he dies the player to buy another
and the other is that in the command !bless already has bless me also say that I have not
could modify my scripts!
I hope help: c
Script bless
The purchase is made by a bless ACTIONID, by a statue
Talksactions command !bless
My problem with the purchase of bless, is that it has limited purchase rather buy them as many times as you want and it is logical that only allowed to purchase only once, till he dies the player to buy another
and the other is that in the command !bless already has bless me also say that I have not
could modify my scripts!
I hope help: c
Script bless
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local money = 10000 -- Money Que Quitara
local bless = 5 --- La Bless Que Dara
if doPlayerRemoveMoney(cid, money) and getPlayerBlessing(cid, bless) then
doPlayerAddBlessing(cid, bless)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FIREWORK_BLUE)
doPlayerSendTextMessage(cid, 20, ""..getCreatureName(cid).." You buy Bless")
else
doPlayerSendCancel(cid, "No have money")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return true
end
The purchase is made by a bless ACTIONID, by a statue
Code:
<action actionid="9696" script="blessing.lua" />
Talksactions command !bless
Code:
function onSay(cid, words, param)
if getPlayerStorageValue(cid,9999998) == 1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "You already possess this blessing.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Sorry, No have Bless! buy it.")
end
return 1
end
Last edited: