Nape Olion
New Member
- Joined
- Apr 14, 2009
- Messages
- 168
- Reaction score
- 1
Hello guys,
Im using Avesta 7.6 and i wanna use my !bless command to give the players there blessings.
I have this in talkactions:
and this in the script:
But nothing is working! if i try the command !bless it will only show in default chat !bless.. but no blessings will be added.
I have tried several scripts from the search functions but nothings working...
Do i need to change anything in my login.lua or something? And if its not possible to add blessings, how to change the deathloss experience then? there is nothing in Config.lua about it.
Thanks for the help!
REP++ for good answer
Im using Avesta 7.6 and i wanna use my !bless command to give the players there blessings.
I have this in talkactions:
Code:
<talkaction log="yes" words="!bless" access="0" script="bless.lua"/>
and this in the script:
Code:
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, 60000) == 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 6 crystal coin to get blessed!")
end
end
return 1
end
But nothing is working! if i try the command !bless it will only show in default chat !bless.. but no blessings will be added.
I have tried several scripts from the search functions but nothings working...
Do i need to change anything in my login.lua or something? And if its not possible to add blessings, how to change the deathloss experience then? there is nothing in Config.lua about it.
Thanks for the help!
REP++ for good answer