Hello, this is the script for talkaction !bless:
When the player buy bless, i wanna an effect in the position of the player of a words in orange, and the words of the player (!bless) don't excecute in pos player.
What global function i have to work? (I use TFS 0.2.11.2)
Thanks !
PS: How i can edit the blessings?
EDIT: Here is a image (In red is i wanna to eliminate when the player execute "!bless")
Uploaded with ImageShack.us
Code:
function onSay(cid, item, fromPosition, itemEx, toPosition)
for i = 1,5 do
if (getPlayerBlessing(cid, i) == true) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
doCreatureSay(cid, "Ya has sido bendecido.", TALKTYPE_ORANGE_1)
elseif (getPlayerMoney(cid) < 100000) then
doCreatureSay(cid, "$$$.", TALKTYPE_WHISPER)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Necesitas 100k para ser bendecido.")
else
doPlayerRemoveMoney(cid, 100000)
doPlayerAddBlessing(cid, i)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doSendAnimatedText(getCreaturePosition(cid), "BENDECIDO!", TEXTCOLOR_RED)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Has sido bendecido.")
end
return true
end
end
When the player buy bless, i wanna an effect in the position of the player of a words in orange, and the words of the player (!bless) don't excecute in pos player.
What global function i have to work? (I use TFS 0.2.11.2)
Thanks !
PS: How i can edit the blessings?
EDIT: Here is a image (In red is i wanna to eliminate when the player execute "!bless")
Uploaded with ImageShack.us
Last edited: