Results 1 to 1 of 1

Thread: Making "run if pk" scripts

  1. #1
    Normal User cat_salgado's Avatar
    Join Date
    Oct 2012
    Location
    Mexico
    Posts
    181
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    31
    Rep Power
    5

    Making "run if pk" scripts


    well haven't seen any tutorial about it and i have some free time so i'll post mine


    What we'll need?:

    some free time
    some simple actions
    any hunting script


    actions needed:

    we will name the actions to avoid confusions
    1.- name: WPT_RUN
    activate?: no
    script: null -- you won't set any script here

    2.- name: IF_PK
    activate?: yes
    script:

    Code:
    local WPT_RUN = getsettings('Settings\\Actions\\List\\WPT_RUN\\Script')
    local RUNNING = getsettings('Settings\\Actions\\List\\RUNNING\\Enabled')
    local MONSTERS = {'tarantula','Carniphila'}
    
    if RUNNING == 'no' and underattack('P') then
       setsettings('Settings\\Actions\\List\\RUNNING\\Enabled','yes')
          for i = 1, #MONSTERS do
              setsettings('Settings/Targeting/Monsters/'..MONSTERS[i]..'/OnlyIfTrapped','yes')
          end
       stopattack()
       gotolabel(WPT_RUN)
    end
    remember to change monsters names

    3.- name: RUNNING
    activate?: no
    script:

    Code:
    if not hasted and (RUN_SPELL == 'utani gran hur' or RUN_SPELL == 'utani hur')  then
       cast(RUN_SPELL)
    end
    
    if UTAMO_IF_PK == true then
      cast('utamo vita')
    end

    Setup variables:

    UTAMO_IF_PK = true/false
    RUN_SPELL = 'utani hur'/'utani gran hur'

    how to do it?:

    once we have the actions and setup variables then we can start if your hunting place has many levels (for example banuta apes there are alot of towers and how can your char know where exactly to run if he is in a tower or other) you will add an action waypoint before the waypoint where your character will go up/down with this:

    Code:
    local WPT = 'to_floor1'
    
    setsettings('Settings\\Actions\\List\\WPT_RUN\\Script',WPT)
    where WPT is the label of the waypoint where your character will run if is pked, but (taking the example of banuta apes) before your character go down you have to add another action wpt with the same just changing the name of WPT, and add this action wpt:

    Code:
    local RUNNING = getsettings('Settings\\Actions\\List\\RUNNING\\Enabled')
    local PZ = 'to_pz1'
    
    if RUNNING == 'yes' then 
      gotolabel(PZ)
    end
    and do the same everytime you change floor level

    in less words the action IF_PK will change to only if trapped the targeting monsters, will stop attacking, will activate RUNNING action and will set cavebot cursor to the desired waypoint, for example 'to_floor1' when your character goes down to floor 1 the action waypoint if RUNNING.... will see that RUNNING action is activated and will go to pz waypoint instead of keep hunting. everytime your character goes up/down the other action waypoint will change WPT script to the name of the waypoint to run then it will be changing always so your character will know exactly where to run.


    if you have any question or suggestions to make it easier to understand you can post here, hope it helps you.
    Last edited by cat_salgado; 01-20-2013 at 11:45 PM.


    FREE/PAY LASTEST SCRIPTS LAST VERSION LINK
    PURCHASE ULTIMATE DRAGON LORDS ZAO v1.0 15/01/13 Click Here
    FREE CYC THAIS RUN IF PK 100% AFK v1.4 06/01/13 Click Here
    FREE TARANTULAS PH WITH TASKER v2.2 16/01/13 Click Here

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •