• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Magiceffect?

Xapuur

New Member
Joined
Sep 15, 2009
Messages
157
Reaction score
0
Location
Chile
Hello, this is the script for talkaction !bless:
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:
Back
Top