nie chce mi bot pisać do npc ani nic kupować ;/ tylko podchodzi do npc
local EnergyRingID = 3051,
local TrashRingID = 3007, -- Crystal Ring
local SwitchAtPercent = 0.35
local TimeBetweenHpChecks = 300 -- milliseconds
while(true) do
local CurrentRing = Self.Ring().id
local ActiveEnergyRingID = getActiveRingID(EnergyRingID)
local SwitchAtHP = SwitchAtPercent * Self.MaxHealth()
if (Self.Health() < SwitchAtHP and Self.ItemCount(EnergyRingID) >= 1 and CurrentRing ~= ActiveEnergyRingID) then
Self.Equip(EnergyRingID, "ring")
elseif (Self.ItemCount(TrashRingID) >= 1 and CurrentRing ~= TrashRingID) then
Self.Equip(TrashRingID, "ring")
end
sleep(TimeBetweenHpChecks)
end
Ostatnio zmieniony przez Okno zapomniał passów : 14-01-2015, 22:49
Aktualnie 1 użytkowników przegląda ten temat. (0 użytkowników i 1 gości)
Zakładki