Results 1 to 6 of 6

Thread: can someone help me with this code?

  1. #1
    iBot User
    Join Date
    Jul 2012
    Posts
    246
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0

    can someone help me with this code?

    im trying to add to an old script for utani hur

    that it also takes utani hur only if its below 98% hp :Poir 99% or something cuz sometimes on the bot it takes utanihur and it goes right back and refills :S

  2. #2
    iBot User
    Join Date
    Jul 2012
    Posts
    246
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    if (maround(7,false) == 0) and not (hasted) and not (pzone) and if () then

    elseif (hppc) < 98 then (cancast("utani hur")) then
    cast("utani hur")
    end

  3. #3
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    Please write it again, I dont understaind u

  4. #4
    iBot User
    Join Date
    Jul 2012
    Posts
    246
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    ok il make it better:

    I want it to take utani hur inside spawn.
    but only IF not PZ, IF not Monsters around and IF HPPC ( health below 99% ) ?

  5. #5
    iBot User
    Join Date
    Jun 2012
    Posts
    517
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    132
    Rep Power
    7
    Make wpt action to enabled action in Action List:
    PHP Code:
    while getsettings("Setsetting\\Actions\\List\\Haste\\Enabled") == "no" do
    setsettings("Setsetting\\Actions\\List\\Haste\\Enabled""yes")
    end 
    Below is code of action in action list:
    PHP Code:
    if not hasted and maround(10false) == and hppc >= 99 and cancast("utani hur"then
    cast
    ("utani hur")
    end 

  6. #6
    iBot User
    Join Date
    Jul 2012
    Posts
    246
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    Ok.. now i've added BEFORE hunt:

    PHP Code:
    setsettings("Setsetting\\Actions\\List\\Haste\\Enabled""yes"
    And an ACTION;

    PHP Code:
    if not (hasted) and maround(8false) == and cancast("utani hur"then 
    cast
    ("utani hur"
    end 

    And at REFILL so it wont hur aroujnd in gray island city.

    PHP Code:
    setsettings("Setsetting\\Actions\\List\\Haste\\Enabled""no"

    It still not working, it doesnt enable and disable the settings, and when i had the hur setting on;

    it did make utani hur inside depot, ( PZ )


    Help please :S

    EDIT; i founnd a problem at the "setsettings" i entered "settings" instead of set settings two times o.O
    as garkstal13 told said in a post above..

    i thinkm it should work now !

    and edited so its like this;;
    Waypoint action;
    PHP Code:
    setsettings("Settings\\Actions\\List\\Haste\\Enabled""yes"
    Haste Action.
    PHP Code:
    if not hasted and maround(8false) == and not(Pzone) and cancast("utani hur"then 
    cast
    ("utani hur"
    end 

    Waypoint at refillaction.
    PHP Code:
    setsettings("Settings\\Actions\\List\\Haste\\Enabled""no"
    Last edited by terje; 04-01-2013 at 02:24 PM.

Posting Permissions

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