Results 1 to 3 of 3

Thread: [REQUEST] Safe run pk and xlog

  1. #1
    iBot User
    Join Date
    May 2012
    Location
    Spain
    Posts
    213
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    15 Post(s)
    Reputation
    32
    Rep Power
    5

    [REQUEST] Safe run pk and xlog

    hello, im here for request a script that are quite useful, I know it can be used too with other wpts and labels but what i want is that when the char is under atack it goes to the label refill, so I use it:






    but now in the location checker I want add an action something like..
    Code:
    if not islocation blablabla end
    if killingme == true then setcavebot('off')wait(100)... printerror,..
    the problem is I need a persistent that swap from true to false, like local killingme = false, return true, gotolabel killingme etc.. instead of that action:
    Code:
    local KillingMe = 'Refill'
    
    if underattack('p') then
    gotolabel(KillingMe)
    end
    hope i am understable

    Regards, NWA

  2. #2
    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
    Try this, add a new action called RUNNING then use this action there

    Code:
    if not hasted then
       cast('utani gran hur')
    end
    then in the action you have you'll change for this

    Code:
    local RUNNING = getsettings('Settings/Actions/List/RUNNING/Enabled')
    
    if underattack('p') and RUNNING == 'no' then
       settargeting('no')
       stopattack()
       gotolabel('refill')
    end
    In the check waypoint you'll add this

    Code:
    local RUNNING = getsettings('Settings/Actions/List/RUNNING/Enabled')
    
    if RUNNING == 'yes' then
      gotolabel(waypoint after check)
    end
    Last edited by cat_salgado; 01-21-2013 at 02:51 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

  3. #3
    iBot User
    Join Date
    May 2012
    Location
    Spain
    Posts
    213
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    15 Post(s)
    Reputation
    32
    Rep Power
    5
    mm interesting, the script is not ended but i get what u say and I can finish it, but I prefer something with return values, for example something like

    Code:
    if not islocation then gotolabel... else
    if undetatack..etc.. then
    while islocation() do
     if underatack return true then closeclient printerror
     end
    end
    I know the code above is wrong, i know how to write the most part of it except the true false, but im too lazy for write it now xD

Posting Permissions

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