Back to "auto" tags

Begging with target lock by Brozan (Syal)

Description: Begging script that locks onto a single invuln NPC at a time until you are in range and it can beg. Bind to a hotkey and press again after it begs to target a new NPC. Utilizes an ignore list to avoid begging same target repeatedly

clearsysmsg #Make sure list exists createlist 'IgnoreNPC' unsetvar 'daggerlyDagger' #set up dagger variable if findtype 3922 'backpack' as 'mydagger' overhead 'Dagger Set' @setvar 'daggerlyDagger' 'mydagger' else overhead 'No dagger found in pack, need one' stop endif while not dead hotkey 'Next Humanoid Target' wait 250 @setvar! 'lastserial' lasttarget if noto 'lastserial' = innocent pushlist 'IgnoreNPC' 'lastserial' elseif noto 'lastserial' = invulnerable and not inlist 'IgnoreNPC' 'lastserial' #found a target now dagger dclick 'daggerlyDagger' wft 1500 target 'lastserial' #Pause so sysmsg can populate wait 350 while not insysmsg 'use a bladed item on that' #Lock target, wait til we're closer dclick 'daggerlyDagger' wft 1500 target 'lastserial' #Pause so sysmsg can populate wait 350 endwhile # Close to NPC hotkey 'Begging' wft 1800 target 'lastserial' wait 500 while insysmsg "must wait" wait 350 hotkey 'Begging' wft 1800 target 'lastserial' wait 350 endwhile pushlist 'IgnoreNPC' 'lastserial' endif endwhile