Results 1 to 4 of 4

Thread: Run if PK

  1. #1
    Normal User
    Join Date
    Jun 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Run if PK

    Hello, is there a possibility to make a HuD like this? If PK attacks you, character go to x sqm and logout?

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Add this as action
    PHP Code:
    if (underattack("p")) then
        gotolabel
    ("Logout") -- Walk to label "Logout" in waypoints
    end 
    after Logout waypoint create an action WPT containing:
    PHP Code:
    closetibia() 

  3. #3
    Normal User
    Join Date
    Jun 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    So,

    1. Action in Cavebot with:
    if underattack("p") then
    settargeting('off')
    setlooting('off')
    gotolabel("Logout")
    end

    2. A Stand Waypoint in my house
    3. I don't understand how this Waypoint with "closetibia" look like.
    4. How the bot "will know" that after reaching this sqm in my house it will logout?

  4. #4
    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
    you need to add an stand waypoint inside your house then an action wpt with the same coordinates as the stand wpt with this

    Code:
    if not islocation() then 
      gotolabel(wpt.id-1)
    end
    and then the action wpt with the close tibia action so it won't clos tibia if you didn't reach your house


    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
  •