- Joined
- Jun 19, 2009
- Messages
- 1,852
- Reaction score
- 5
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Booster" enabled="yes">
<action itemid="7618;7620" event="script"><![CDATA[
local hp = 50000
local mp = 50000
function onUse (cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 7618 then
setCreatureMaxHealth(cid,getCreatureMaxHealth(cid)+hp/2)
doCreatureSay(cid,"+25000 health!",19)
elseif item.itemid == 7620 then
setCreatureMaxMana(cid,getCreatureMaxMana(cid)+mp/2)
doCreatureSay(cid,"+25000 mana!",19)
end
return true
end
]]></action>
</mod>
7618 = health potion, if you use it on yourself you get 25000 health.
7620 = small potion, same as above but u get mana instead.
I don't know why this script doesn't work... no errors in the console or anything.