Results 1 to 3 of 3

Thread: Choose Random Place to Hunt

  1. #1
    iBot User eaiblz's Avatar
    Join Date
    Mar 2013
    Posts
    362
    Mentioned
    44 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    104 Post(s)
    Reputation
    50
    Rep Power
    4

    Question Choose Random Place to Hunt

    I'm trying to make a fully random script to take characters from dawnport... this means that the script will sort out which spawn they'll take each round randomly... but it's not working the random part... check it...

    Code:
    local hunt = math.random(1,2)
    if hunt == 1 then
    gotolabel("hunt1")
    else
    gotolabel("hunt2")
    end
    What's the problem with it?

  2. #2
    iBot User
    Join Date
    Aug 2013
    Posts
    70
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    27 Post(s)
    Reputation
    29
    Rep Power
    4
    Quote Originally Posted by eaiblz View Post
    I'm trying to make a fully random script to take characters from dawnport... this means that the script will sort out which spawn they'll take each round randomly... but it's not working the random part... check it...

    Code:
    local hunt = math.random(1,2)
    if hunt == 1 then
    gotolabel("hunt1")
    else
    gotolabel("hunt2")
    end
    What's the problem with it?
    Here u have. Remember u have to put this in a previous waypoint and not make it a persistente action or else it will screw the script.

    Code:
    local hunt = math.random(1,2)
    if (hunt == 1) then
    gotolabel("hunt1")
    elseif (hunt == 2) then
    gotolabel("hunt2")
    end

  3. #3
    iBot User eaiblz's Avatar
    Join Date
    Mar 2013
    Posts
    362
    Mentioned
    44 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    104 Post(s)
    Reputation
    50
    Rep Power
    4
    Problem solved. Thanks!

Posting Permissions

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