Results 1 to 3 of 3

Thread: If attacked by a player gotolabel and turn of targeting + ...

  1. #1
    Normal User
    Join Date
    Apr 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    If attacked by a player gotolabel and turn of targeting + ...

    Hello,

    I'm a new one here and I would like to learn about script but don't know what commands should I use. I would like to pause targeting and go to label for example "excape" if a player attacks me. Also If mana potions < XX pause targeting and gotolabel "refiller". I would like to have those actions wroking all the time, not checking every few secs. <- Are those actions hotkeys or sth?

    Code:
    if itemcount("mana potion") < 20 then
       gotolabel("refiller")
    end
    This is the code for mana and refiller and how can I make it working all the time?



    I would be thankful

    PS I think this will be easy for you guys :-)

    Cheers
    Last edited by Barbatian; 04-10-2013 at 02:38 PM.

  2. #2
    Normal User Straxor's Avatar
    Join Date
    Sep 2012
    Location
    Sweden
    Posts
    430
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    46
    Rep Power
    5
    First you make a action with

    PHP Code:
    if itemcount("mana potion") < 20
    then 
    settargeting
    ("off")
    gotolabel("Refiller")
    end 
    When you come back after refill you just make a ordinary action after with

    PHP Code:
    settargeting("on"
    for this you must have sirmates libery
    Last edited by Straxor; 04-10-2013 at 05:24 PM.

    Name Vocation Level
    Banuta -1 RP 190
    Tempel of Equilibrium Chosens RP 180
    Hive Surface/Towers EK 170


  3. #3
    Normal User
    Join Date
    Apr 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Thank you very much for answer. I've already set this code:

    Code:
    if itemcount("mana potion") < 20 then
        setsettings("Settings\\Targeting\\Enabled","no")
    gotolabel("refiller")
    else setsettings("Settings\\Targeting\\Enabled","yes") 
    end
    and of course after reffil another action for checking mana potion.

    But what about player attacking. I don't know how to set it :/

Posting Permissions

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