Ok ive got blessing in NPC and !bless command the one thing im stuck on is how do i make it so when u got all five blessing and u die u dont lose any levels ive tried everything and when u die u always lose atleast a few lvls i want it so when u die u dont lose no levels no skills no magic no nothing can anyone help me please id prefer to have it in /commands as !bless please thank you
This is my talkaction bless.lua
and this is n my config.lua
blessingOnlyPremium = true
blessingReductionBase = 30
blessingReductionDecreament = 5
eachBlessReduction = 8
and ill say it again i want it so when u die u dont lose no skills or levels thank you
This is my talkaction bless.lua
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, 50000) == TRUE then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doSendMagicEffect(getPlayerPosition(cid), 28)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'You have been blessed by the Aussie Gods!')
else
doPlayerSendCancel(cid, "You need 50000 gold coins to get blessed!")
end
end
return TRUE
end
and this is n my config.lua
blessingOnlyPremium = true
blessingReductionBase = 30
blessingReductionDecreament = 5
eachBlessReduction = 8
and ill say it again i want it so when u die u dont lose no skills or levels thank you