• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Hiho Look here need some scripting help.

Karar92

New Member
Joined
Oct 8, 2007
Messages
51
Reaction score
0
Location
Irak/bagdad
Hi I need some scripting help i need to know how to do an armor or legs or helmet to heal like hp and mana + teleport so please REPLAY! i need ur help whoever u are.
 
just add this to your item in items.xml to make it add hp+mana

<attribute key="healthGain" value="AMOUNT OF HP" />
<attribute key="healthTicks" value="2000" />
<attribute key="manaGain" value="AMOUNT OF MANA" />
<attribute key="manaTicks" value="1000" />
 
try this script

in data//actions//scripts create soft.lua and write in this

function onEquip(cid, item, frompos, item2, topos)
doSendMagicEffect(topos,1)
doPlayerAddMana(cid,AMOUNT OF MANA)
doPlayerAddHealth(cid,AMOUNT OF HP)
end
end
return 1
end

and in data/actions actions.xml write in this

<action itemid="2640" script="Soft.lua" />
 
ok im gonna try this

how i add hp and mana on it??

dosent work :S

i figured it out thx mate :p

hey how i add exaust
 
Last edited by a moderator:
Back
Top