Results 1 to 1 of 1

Thread: Random Tables

  1. #1
    Normal User
    Join Date
    Nov 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Random Tables

    I would like to know if there's anyway to Random tables with Lua. When the character go deposit items in depot or sell items will not always use the same 'order'.

    PHP Code:
    local randomDp math.random(1,3)
    if 
    randomDp == 1 then
    deposititems
    (order1)
    elseif 
    randomDp == 2 then
    deposititems
    (order2)
    elseif 
    randomDp == 3 then
    deposititems
    (order3)
    end 
    I've been thinking this way but It takes too much time to edit.

    Sorry for double post, this one can be closed.
    Last edited by Frogziin; 11-26-2012 at 05:18 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
  •