Advertisement
MrTrala

HHB

Feb 12th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.91 KB | None | 0 0
  1. --[[
  2.     Hunter Helper for ArchLightOnline
  3.     Version 1.1 - Piv Version - Beta (Ownership; Mr Trilo)
  4.     Created by Mr Trala
  5. ]]
  6.  
  7. --Config
  8. config = {
  9.     monsters = {"Yeti", "Dragon Lord", "Dragon Lord Hatchling", "Dragon"}, -- Name of monster to use the script
  10.     HealthM = 80, -- Health x% to remove weapon.
  11.     UnEqID = 12603 -- Id of the bow you want to Remove at x% monster
  12. }
  13.  
  14. -- Don't touch this if you don't know what are you doing
  15. MainBP = Container(0)
  16. Module.New('HunterHelper', function(mod)
  17.     for name, creature in Creature.iMonsters() do
  18.         if (table.contains(config.monsters, name)) then
  19.             if creature:isTarget() and creature:HealthPercent() <= config.HealthM and creature:isAlive() then
  20.                 Self.Dequip("weapon", MainBP)
  21.            
  22.             elseif creature:isTarget() and creature:HealthPercent() >= config.HealthM or Self.TargetID() == 0 then
  23.                 Self.Equip(config.UnEqID, "weapon")
  24.                
  25.             end
  26.         end
  27.     end
  28. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement