ghettobird
LUA newbie
[ACTIONS] an item you use and you get full mana & HP !
Hey people, this is the first script i actually put in otland, not sure if it's helpfull but try it out anyway
add this to your actions/scripts folder.
now go to your actions.xml
Tested & works on tfs 0.4
PS: you can put this for an item id and put that in temple then players use it, if you want it for low lvls only post here
Post bugs too, have fun
- - - Updated - - -
25 views and no comments?
Hey people, this is the first script i actually put in otland, not sure if it's helpfull but try it out anyway
add this to your actions/scripts folder.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
doCreatureSay(cid, "FULL MANA&HP!" ,19)
doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
doCreatureAddMana(cid, getPlayerMaxMana(cid))
return true
end
now go to your actions.xml
Code:
<action itemid="theitemidyouwant" event="script" value="urscriptname.lua"/>
Tested & works on tfs 0.4
PS: you can put this for an item id and put that in temple then players use it, if you want it for low lvls only post here
Post bugs too, have fun
- - - Updated - - -
25 views and no comments?
Last edited: