Hiho!
I have a small Issue with the blessings. When I cast "!bless" it takes money from my char and the "doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)" works also.
When I cast the !bless again it says also: You have already got one or more blessings! Seems to look fine!
BUT!
The problem is actually, the Bless is not working :/...
I die and loose stuff etc. Also when I relog and say !bless the script takes money again, and blesses me... <_<
I checked then the MySQL database, and when I say !bless (+refresh database) the database under players -> blessings -> is still "0" dafuck?
Here is my bless.lua
I also added:
in talkactions.xml
Anyone got a clue?
Edit:
My Distribution is:
The Forgotten Server, version 0.3.7_SVN (Crying Damson)
I have a small Issue with the blessings. When I cast "!bless" it takes money from my char and the "doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)" works also.
When I cast the !bless again it says also: You have already got one or more blessings! Seems to look fine!
BUT!
The problem is actually, the Bless is not working :/...
I die and loose stuff etc. Also when I relog and say !bless the script takes money again, and blesses me... <_<
I checked then the MySQL database, and when I say !bless (+refresh database) the database under players -> blessings -> is still "0" dafuck?
Here is my bless.lua
PHP:
function onSay(cid, words, param)
if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then
doPlayerSendCancel(cid,'You have already got one or more blessings!')
else
if doPlayerRemoveMoney(cid, 5000) == TRUE then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have been blessed by the gods!')
else
doPlayerSendCancel(cid, "You need 5k to get blessed!")
end
end
return 1
end
I also added:
PHP:
<talkaction words="!buybless;/buybless;!bless;/bless" script="bless.lua" />
in talkactions.xml
Anyone got a clue?
Edit:
My Distribution is:
The Forgotten Server, version 0.3.7_SVN (Crying Damson)
Last edited:
