Lopaz
Member
Hello... I need help with a potion script.
When I use a mana potion (the smallest one), I want it to disappear without leaving empty vials afterwards.
I tried to rescript it or so but it doesn't work.
I want it just like my great mana potion. When I use it, the used potion disappears without leaving any traces.
Help please, i'm still pretty new at this ^^
Can someone see the problem?
When I use a mana potion (the smallest one), I want it to disappear without leaving empty vials afterwards.
I tried to rescript it or so but it doesn't work.
I want it just like my great mana potion. When I use it, the used potion disappears without leaving any traces.
Help please, i'm still pretty new at this ^^
Code:
doAddCondition(cid, exhaust)
doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, EMPTY_POTION)
doPlayerAddItem(cid, emptyPot, 0)
doRemoveItem(item.uid, 1)
elseif(item.itemid == manaPot) then
if(doTargetCombatMana(0, cid, 200, 230, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
Can someone see the problem?