Results 1 to 8 of 8

Thread: Why this won't work?

  1. #1
    Normal User
    Join Date
    May 2012
    Posts
    312
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5

    Why this won't work?

    PHP Code:
    -- Will make exori/exori gran if or more monsters around--
    local monsters = {'Sea Serpent''Young Sea Serpent'} -- This is the vector of monsters that the script will check
    local amount 
    3
    if (paround(8true) > and maround(1unpack(monsters)) > amount)
    then cast('exori')
    wait(1000,1100)
    cast('exori gran')
    end 
    Aswell if someone can explain me a little what does the unpack function does(idk if it will repeate the maround() function with each of the elements of the vector)?
    THanks
    Its supposed to make exori/exori gran if 3 of the monsters listed in the vector 'monsters' around

  2. #2
    Normal User
    Join Date
    May 2012
    Posts
    312
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Sorry just realized that in the third line it was paround(8, true) > 0, lol script would only make exori if there is more than one player close to me >.<
    THank god I realized else I'd have won a free red/black skull trip lol
    THIS IS THE GOOD CODE
    PHP Code:
    -- Will make exori/exori gran if or more monsters around--
    local monsters = {'Sea Serpent''Young Sea Serpent'} -- This is the vector of monsters that the script will check
    local amount 
    3
    if (paround(8true) == and maround(1unpack(monsters)) > amount)
    then cast('exori')
    wait(1000,1100)
    cast('exori gran')
    end 
    EDIT: Anyways it's not doing exori if for example two sea serps and one young, when I want it to make if 3 of any of those monsters (that what I thought that the unpack function would solve)
    EDIT2 : It doesn't work with sea serpents, just with young sea serps
    Last edited by Ithrix; 07-24-2012 at 03:18 PM.

  3. #3
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    Why are you putting paround > 0 ?


    You want it to exori/exori gran when players on screen?

    You should put == 0

  4. #4
    Normal User
    Join Date
    May 2012
    Posts
    312
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Quote Originally Posted by BUgWT View Post
    Why are you putting paround > 0 ?


    You want it to exori/exori gran when players on screen?

    You should put == 0
    Yeah realized that and fixed on second post :P, now I got other questions I guess I made it while you were answering

  5. #5
    Normal User
    Join Date
    May 2012
    Posts
    312
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    BUMP :/
    10characters

  6. #6
    Normal User
    Join Date
    May 2012
    Posts
    312
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    bump
    wrwrwerwf

  7. #7
    Banned
    Join Date
    May 2012
    Location
    Rio de Janero - RJ / Canada
    Posts
    870
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    30
    Rep Power
    0
    that would suck to earn a black skull that way

  8. #8
    Normal User Aramm's Avatar
    Join Date
    Mar 2012
    Location
    Curitiba - Parana - Brazil
    Posts
    192
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5
    PHP Code:
    if paround(0true) == and maround(1"xx""xx") >= and cancast("exori"then cast("exori"end 

Posting Permissions

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