Energy Regeneration
Posted: Sun Dec 09, 2012 7:29 pm
I was hoping to make some necklaces that increase health and energy regeneration.
Does anyone know how to do this.
Thx,
LG
Does anyone know how to do this.
Thx,
LG
Code: Select all
function amuletDark()
local champion
local slot
local champID
local placed = false
local currentItem
for champID=1,4 do
champion = party:getChampion(champID)
currentItem = champion:getItem(6)
if currentItem ~= nil and currentItem.name == "amulet_dark" then
if lightTracker.lightLevel > 0 then
champion:removeItem(6)
hudPrint("You cannot wear the Amulet of Darkness while a light spell is active.")
for slot =11,31 do
currentItem = champion:getItem(slot)
if currentItem == nil and placed == false then
champion:insertItem(slot, spawn("amulet_dark"))
placed = true
end
if placed == false then
spawn("amulet_dark",party.level, party.x, party.y, party.facing)
end
end
end
end
end
end