Fu Manchu
Sepultra™
- Joined
- Jan 28, 2011
- Messages
- 439
- Reaction score
- 9
<?xml version="1.0" encoding="UTF-8"?>
<mod name="TalkCommand: Bless" version="1.3" author="Sepultra's Library" contact="Sepultra" enabled="yes">
<talkaction log="yes" access="0" words="!bless" event="script"><![CDATA[
Ok so I'm trying to change the magic effect when then blessing is purchased. So I assume I need to edit the line:
So I believe the effect I'm looking for is SMALLHOLY.
Well when I edit FIREWORK and change it to SMALLHOLY It still does the firework effect. I'm not understanding why. Any one else have a clue?
SOLVED: doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK <<< Had to use the number not the code. soo here is the fix
<mod name="TalkCommand: Bless" version="1.3" author="Sepultra's Library" contact="Sepultra" enabled="yes">
<talkaction log="yes" access="0" words="!bless" event="script"><![CDATA[
XML:
function onSay(cid, words, param, channel)
local blessings, cost = { 1, 2, 3, 4, 5 }, 50000
for i = 1, #blessings do
if(getPlayerBlessing(cid, blessings[i])) then
doPlayerSendCancel(cid, "You already have been blessed by God Sepultra.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
elseif(getPlayerMoney(cid) < cost) then
doPlayerSendCancel(cid, "You do not have enough money.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
else
doPlayerAddBlessing(cid, blessings[i])
doPlayerRemoveMoney(cid, cost)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have recived all 5 blessings from God Sepultra.")
end
return true
end
end
]]></talkaction>
</mod>
Ok so I'm trying to change the magic effect when then blessing is purchased. So I assume I need to edit the line:
XML:
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK)
So I believe the effect I'm looking for is SMALLHOLY.
Well when I edit FIREWORK and change it to SMALLHOLY It still does the firework effect. I'm not understanding why. Any one else have a clue?
SOLVED: doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK <<< Had to use the number not the code. soo here is the fix
XML:
doSendMagicEffect(getCreaturePosition(cid),39)
Last edited: