View Full Version : Request Stone Skin Amulet when certain HP
ulsen
12-05-2015, 05:38 AM
looking for a script for using stone skin amulet at X % HP
for example
use ssa if health % below 70
MrTrala
12-05-2015, 07:36 AM
-- Config
local ssaID = 3081 -- Id of your stone skin amulet
local AmuOLD = 16113 -- Id of your normal amulet
local health = 80 -- x% to equip your ssa
local healthUNQ = 95 -- x% to UNequip your ssa
-- Don't touch this if you don't know what are you doing
Self.HealthPercent = function()
return math.abs(Self.Health()/(Self.MaxHealth()*0.01))
end
Module.New('ssaquip', function(mod)
if Self.HealthPercent() <= health and Self.Amulet().id == AmuOLD then
Self.Equip(ssaID, "amulet")
end
if Self.HealthPercent() >= healthUNQ then
Self.Equip(AmuOLD, "amulet")
end
end)
Tested in OTServ, but should work in rl.
I think you posted this in the wrong forum btw D:>
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.