180319
New Member
- Joined
- Oct 30, 2010
- Messages
- 8
- Reaction score
- 0
First of all, sorry for my 'engrish'.
This action is supposed to add hp or mana permanently, like this:
2000+MP for Druids and Sorcerers
1000+HP for Knights
500+MP and HP for paladins.
And here is my problem it works for the knight/druid/sorcerer but it doesnt work for the paladins and i dont know why.. i tried everything but it wont work
ACTION 8.6
can anyone fix this? please.. i really need this action
This action is supposed to add hp or mana permanently, like this:
2000+MP for Druids and Sorcerers
1000+HP for Knights
500+MP and HP for paladins.
And here is my problem it works for the knight/druid/sorcerer but it doesnt work for the paladins and i dont know why.. i tried everything but it wont work

ACTION 8.6
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 8303 and isKnight(cid) then
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + 1000)
doSendAnimatedText(getThingPos(cid), "+1000HP", 180)
doRemoveItem(item.uid, 1)
elseif item.iteimd == 8301 and isPaladin(cid) then
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + 500)
setCreatureMaxMana(cid, getCreatureMaxMana(cid) + 500)
doSendAnimatedText(getThingPos(Cid), "+500MP/HP", 210)
doRemoveItem(item.uid, 1)
elseif item.itemid == 8302 then
if isSorcerer(cid) or isDruid(cid) then
setCreatureMaxMana(cid, getCreatureMaxMana(cid) + 2000)
doSendAnimatedText(getThingPos(cid), "+2000MP", 5)
doRemoveItem(item.uid, 1)
end
end
return true
end
if item.itemid == 8303 and isKnight(cid) then
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + 1000)
doSendAnimatedText(getThingPos(cid), "+1000HP", 180)
doRemoveItem(item.uid, 1)
elseif item.iteimd == 8301 and isPaladin(cid) then
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + 500)
setCreatureMaxMana(cid, getCreatureMaxMana(cid) + 500)
doSendAnimatedText(getThingPos(Cid), "+500MP/HP", 210)
doRemoveItem(item.uid, 1)
elseif item.itemid == 8302 then
if isSorcerer(cid) or isDruid(cid) then
setCreatureMaxMana(cid, getCreatureMaxMana(cid) + 2000)
doSendAnimatedText(getThingPos(cid), "+2000MP", 5)
doRemoveItem(item.uid, 1)
end
end
return true
end
can anyone fix this? please.. i really need this action
