Results 1 to 10 of 10

Thread: Speed of a goblin

  1. #1
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Speed of a goblin

    If someone can get me the closest to exact number of tiles that a goblin in Lumbridge moves in a certain time I will be forever grateful! I think I might be able to figure out how to do this, but I'm also limited on time. This may seem like a strange request, but if you can help at all that would be fantastic.

    Edit: I thought I actually remembered that there used to be a reflection hook or something for speed of an npc.

  2. #2
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    GetSpeed I think.

  3. #3
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That returns the player's character's speed. Thats actually the reflection one I was thinking of though. Guess there isn't a reflection hook for what I want

  4. #4
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Well why do you need to know anyway? I can tell you now it's not fast enough to make a difference usually. Just have a simple uptext/ChooseOption failsafe or something?

  5. #5
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Reflection is a little slow for monster finding and also checking uptext, and it seemed like a fun challenge :P

  6. #6
    Join Date
    May 2007
    Location
    Everywhere
    Posts
    1,428
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    One idea could be using SetAngle(false); and trying it then? Don't know if that'd help.

  7. #7
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think I'm going to set the angle like that and then check the tile that a monster is at multiple times over a certain time period using a script.

    Edit: Bleh. Nevermind you're right. All that math for nothing
    Last edited by bbri06; 11-19-2010 at 06:04 AM.

  8. #8
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    I was actually trying to calculation NPCs speed and I think they are all the same. They move 1 tile in one tick, a tick is 600-615ms depending on the population of the server as it lags.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  9. #9
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That's pretty funny actually because I happened to guess that they move 1.6 tiles in a second.

  10. #10
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    Quote Originally Posted by Narcle View Post
    I was actually trying to calculation NPCs speed and I think they are all the same. They move 1 tile in one tick, a tick is 600-615ms depending on the population of the server as it lags.
    I've done some timing (At least, the best i could by hand), and this is what i've noticed holds true for all NPCs (maybe not flying monsters, now that i think about it). I've noticed the same number also come's through for running. Running 1 tile takes 1/2 a tick. However If you only move 1 tile while run is active, it still takes a full tick since the entire game is based on the tick timing setup. In addition, let's say you run a number of tiles that is >2 and odd. The last odd tile (so if you ran 21 tiles, between the 20th and 21st tile) would still take a full tick, while tiles 1-20 would take 10 ticks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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