Results 1 to 5 of 5

Thread: [REQUEST] A action

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

    [REQUEST] A action

    Hello everyone, I want a action that if standtime is most than 5 minutes, the action will try use bugmap using the ground to north,south,west,east (random).

    It's possible?

  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
    I dont really understand
    Each 5 minutes an item called "bugmap" is spawned n/s/w/e of you and you want to use it?

  3. #3
    Normal User Nydaa's Avatar
    Join Date
    Jul 2012
    Location
    Europe
    Posts
    216
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    24
    Rep Power
    5
    Quote Originally Posted by soder View Post
    I dont really understand
    Each 5 minutes an item called "bugmap" is spawned n/s/w/e of you and you want to use it?
    He wants to use the ground n/s/w/e of himself.

  4. #4
    Normal User
    Join Date
    Feb 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    bump this.

  5. #5
    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
    What is bugmap?

    Do you want it to force walking 1 sqm in a random direction if you havent moved in 5 minutes, or do you want it to use the ground tile in 1 random direction?


    This will move in a random direction
    PHP Code:
    local maxStandtime 300000 -- Max standtime in ms (60x1000 1 minute)
    local moveDirection = {"n""s""e""w""nw""ne""sw""se"}

    if 
    standtime maxStandtime then
        i 
    random(1,8)
        
    move(moveDirection[i])
        
    wait(150,250)
    end 
    Last edited by pink_panther; 11-04-2012 at 04:28 AM.

Posting Permissions

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