Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ZYCIE_W_PROCENTACH = 35
- Module("BOT", function(module)
- if (Self.Health() * 100 / Self.MaxHealth()) <= ZYCIE_W_PROCENTACH and Self.Amulet().id ~= 3081 then
- Self.Equip(3081, "amulet")
- end
- if (Self.Health() * 100 / Self.MaxHealth()) <= ZYCIE_W_PROCENTACH and Self.Ring().id ~= 3048 then
- Self.Equip(3048, "ring")
- end
- end, false)
- function onSpeak(chat, msg)
- chat:SendYellowMessage(Self.Name(), msg)
- if (msg == "START") then
- Module("BOT"):Start()
- chat:SendOrangeMessage("BOT", "SKRYPT DZIALA")
- elseif (msg == "STOP") then
- Module("BOT"):Stop()
- chat:SendOrangeMessage("BOT", "SKRYPT ZATRZYMANY")
- end
- end
- function onClose() end
- local chat = Channel("BOT", onSpeak, onClose)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement