Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Iron Trap (How to use it)

Featured Replies

  1. It works fine in wrotation, but not in grinder, because the mobs mostly doesn't stand still in the trap (i.e. Talbuks)
  2. You need the barn in your Garrison
  3. It's optional and off by default
  4. You need to add the ID of the mobs you want to catch to the Variable KillBeast. (wowhead.com and the Development tools/Target Info will help)

 

This  code enable the Iron Trap in your Fightclass. Happy farming

    <FightClassSpell>
      <SpellName>--Iron Trap</SpellName>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>LuaScript</ContionType>
          <Param xsi:type="FightClassConditionLua">
            <LuaScript>
local function UseContainerItemByName(search)   --[[ needed below ]]
  local found=nil;
  for bag = 0,4 do
    for slot = 1,GetContainerNumSlots(bag) do
      local item = GetContainerItemLink(bag,slot)
      if (item and item:find(search)) then
		if (GetContainerItemCooldown(bag,slot)==0) then
			UseContainerItem(bag,slot)
			found=1;
		end
      end
    end
  end
  return found;
end

if not (IsStealthed()) and UnitExists("target") and not UnitIsFriend("player", "target") then 
	local guid=UnitGUID("target");
	local type, zero, serverId, instanceId, zoneId, npcId, spawnUid = strsplit("-",guid);
	npcId=tonumber(npcId);

	--[[ Add your Mob-IDs to the list ]]
	local KillBeast="87021,87020"		--[[ list of ID's of Mobs to trap, comma seperated ]]
		
	local maxHealth=95;				--[[ start Trap at 95% of health for non-elite Mobs ]]
	if (UnitClassification("target") == "elite") then
		maxHealth=55				--[[ start Trap  at 55% of health if it is an Elite Mob ]]
	end
	if not (UnitIsPVP("target")) and ((UnitHealth("target") / UnitHealthMax("target") * 100) &lt; maxHealth ) and (string.find(','..KillBeast..',',','..npcId..',')) then
		if (UnitName("player")==UnitName("targettarget")) then   --[[ no Ninjaing, my Mob, my target, my trap ]]
			result=true
			if not (UseContainerItemByName(":115010:")) then			--[[ Level 3 Trap must be equiped and ready]]
				if not (UseContainerItemByName(":115009:")) then		--[[ Level 2 Trap .. ]]
					if not (UseContainerItemByName(":113991:")) then	--[[ Level 1 Trap .. ]]
						result=false
					end
				end
			end
		else						--[[ the fight is over, or another User Fight to them ]]
			ClearTarget();
		end
	end
end

</LuaScript>
            <VarRet>result</VarRet>
            <ValueRet>true</ValueRet>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <Priority>99</Priority>
      <CheckIfKnowUsableDistance>false</CheckIfKnowUsableDistance>
      <CheckIfView>false</CheckIfView>
      <AddToSettings>true</AddToSettings>
      <NotSpellIsLuaScript>true</NotSpellIsLuaScript>
    </FightClassSpell>

  • 1 year later...
  • 3 weeks later...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.