Results 1 to 5 of 5

Thread: Help with simple hotkey

  1. #1
    Normal User Sahar's Avatar
    Join Date
    Sep 2012
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    7

    Help with simple hotkey

    I need hotkey that will cast "exevo mas san" if standtime > x and maround('Poison Spider', 'Spider', 'Carniphilla', 'Snake', 'Wasp', 'Terror Bird') > 3

    like this:

    PHP Code:
    if standtime 10000 and (maround('Poison Spider''Spider''Carniphilla''Snake''Wasp''Terror Bird') > 3then
    cast 
    'exevo mas san'
    end 
    But it's not working..

  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
    PHP Code:
    if (standtime 10000 and maround(2,false,"Poison Spider""Spider""Carniphilla""Snake""Wasp""Terror Bird") > 3then 
        cast
    ("exevo mas san"
    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
    because u write it bad,
    PHP Code:
    if standtime 10000 and maround(3"Poison Spider""Spider""Carniphilla""Snake""Wasp""Terror Bird") > and cancast("exevo mas san"then 
    cast
    ("exevo mas san"
    end 
    remember that we write functions in that way:
    PHP Code:
    FUNCTION_NAME(OPT1OPT2, ...) 

  4. #4
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by Sahar View Post
    I need hotkey that will cast "exevo mas san" if standtime > x and maround('Poison Spider', 'Spider', 'Carniphilla', 'Snake', 'Wasp', 'Terror Bird') > 3

    like this:

    PHP Code:
    if standtime 10000 and (maround('Poison Spider''Spider''Carniphilla''Snake''Wasp''Terror Bird') > 3then
    cast 
    'exevo mas san'
    end 
    But it's not working..
    Because no one bothered to do so, ill explain WHY its not working...

    the function is maround(range, optional bool all floors, optional monster array)

    you left out the range and bool, but defined the optional monster array, it is trying to use "poison spider" as the range, "spider" as the bool and then considering the rest to attack.

    If you use just maround() it uses the defaults which are/the same as maround(7, false, "all"), but if you want to define certain monsters, instead of all, you need to also define the range and bool. hope that makes sense.




    Quote Originally Posted by RafiXWPT View Post
    because u write it bad,
    PHP Code:
    if standtime 10000 and maround(3"Poison Spider""Spider""Carniphilla""Snake""Wasp""Terror Bird") > and cancast("exevo mas san"then 
    cast
    ("exevo mas san"
    end 
    remember that we write functions in that way:
    PHP Code:
    FUNCTION_NAME(OPT1OPT2, ...) 
    (lol)

  5. #5
    Normal User
    Join Date
    Nov 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Well explained pink_panther!

Posting Permissions

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