Results 1 to 3 of 3

Thread: Match Random Function

  1. #1
    iBot User zedendagua's Avatar
    Join Date
    Nov 2012
    Posts
    60
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5

    Match Random Function

    How does the randomize fuction work?

    I mean, imagine you are leaving the dungeon and you have two ways to go to depot. I want to randomize wich way to choose. How should it be?

    Do i have to create new variables to randomize?

    what about to match.random and gotolabel

    Ty
    Last edited by zedendagua; 12-10-2013 at 02:12 PM.

  2. #2
    Normal User AcidAlchamy's Avatar
    Join Date
    Jul 2012
    Location
    The Labratory
    Posts
    749
    Mentioned
    16 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    180
    Rep Power
    7
    PHP Code:
    local WaysOut = {'WayOutOne''WayOutTwo'}
    Gotolabel(WaysOut[math.random(#WaysOut)]) 

    simply have 2 waypoints, one named WayOutOne and other named WayOutTwo; set this as a action waypoint infront of the two routs (preferabbly before hes going to make the random decision) and it'll get randomized


    waypoints should be like this;





    **Go back to your botting spot to make Route Two**



    I suggest ending both the routes with same waypoint cords so you can use
    PHP Code:
     if not islocation() then gotolabel("A SPOT CLOSE TO TOWN IN EITHER ROUTES CORDS"end 
    Done
    Last edited by AcidAlchamy; 12-10-2013 at 02:20 PM.

    Follow my Activity on Facebook?
    https://www.facebook.com/AcidAlchamyPage
    Download iBot : iBot v2.3.6 - Released
    My Free Scripts :
    ★Free Scripts★ By Acid Alchamy
    Acid Alchamy Updates :
    Updates About Acid Alchamy
    All Scripts by Acid Alchamy :
    All My Posted Scripts
    Latest Thread by Acid Alchamy:
    [Tutorial] Sellers - Avoid Getting Scammed

    +Rep Everyone That Helps You, I'll ALWAYS Return A +Rep.





  3. #3
    iBot User zedendagua's Avatar
    Join Date
    Nov 2012
    Posts
    60
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    ty so much !!! rep+

Posting Permissions

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