Pro Warbringer
Retired with developing
hello!
i need script for shield (any)
shield must give +100 to max hp!:wub:
Code:
local ID = 1337 -- The ID of the item
local PLevel = 50 -- The level to use the item
local Health = 100 -- The amount of health to get when equiping the ID
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == ID and if getPlayerLevel(cid) >= PLevel then
doCreatureAddHealth(cid,Health)
elseif getPlayerLevel(cid) < PLevel then
doPlayerSendCancel (cid, "You do not have the required level.")
doCreatureAddHealth(cid, -Health)
end
end
return true
end
just watch if by the <add your HP> and <shield ID> you have to put your own
anyways this is my first script
REP++
yesh!xD
:thumbup:
Last edited by a moderator: