Skip to content
Outlands Hub

Razor script

Pker Scan Runner

by twsow · 76 lines
Download

Compatibility unverified

This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.

STANDALONE PK ESCAPE SCRIPT --- STANDALONE PK ESCAPE SETUP ---

PvPTracking
Pker Scan Runner.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/2ea3eb62-9e9d-4f9a-8e81-d837e4bf730c for latest2# Automation by Jaseowns3## Script: Pker Scan Runner4## Created by: twsow#05#############################################6 7#################################8# STANDALONE PK ESCAPE SCRIPT9#################################10# --- STANDALONE PK ESCAPE SETUP ---11if not varexist EscapeRunebook12    overhead "SELECT YOUR ESCAPE RUNEBOOK" 3813    setvar EscapeRunebook14endif15# --- PK DETECTION ---16@setvar! PK_Found 017 18# Clear messages to ensure fresh detection19clearsysmsg20interrupt21hotkey 'Cancel Current Target'22clearall23hotkey 'Next Murderer Player Target'24wait 20025 26# Check if the "No one matching" message is NOT present27if not insysmsg "No one matching"28    @setvar! PK_Found 129    overhead "!!! RED NAME DETECTED !!!" 3830endif31 32# Tracking Check (if Skill >= 50)33if PK_Found = 0 and skill 'Tracking' >= 5034    if not findbuff "tracking"35        useskill 'tracking'36        waitforgump 4267467659 50037        if gumpexists 426746765938            gumpresponse 6 426746765939        endif40    endif41    42    if insysmsg "step" or insysmsg "space"43        @setvar! PK_Found 144        overhead "!!! TRACKING WARNING !!!" 3845    endif46endif47 48# --- EXECUTE ESCAPE ---49if PK_Found = 150    # Stop fighting and try to escape51    hotkey 'Cancel Current Target'52    hotkey 'Toggle Peace Only'53    54    for 355        overhead 'Attempting to Recall...' 6856        # Use the book variable instead of hardcoded ID57        dclick EscapeRunebook58        waitforgump 167090027 200059        # Button 110 is usually the "Default" Recall button in most runebooks60        gumpresponse 110 16709002761        62        # Wait to see if we moved (checking mana or system message is safer)63        wait 100064        65        # If we are still here (not dead and no target), it might have failed66        if not insysmsg "Something is blocking" and not insysmsg "fizzles"67            # Successfully casted or moved68            @setvar! PK_Found 069            stop70        endif71    endfor72    73    # If the loop finishes and we are still here, talk to the PK74    say "I am a newbie, nothing worth on me... please don't kill me!"75    @setvar! PK_Found 076    endif