Results 1 to 7 of 7

Thread: [HELP REQUEST] reachcreature

  1. #1
    Normal User
    Join Date
    Dec 2012
    Location
    Sweden
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    [HELP REQUEST] reachcreature

    Code:
    local npc = "Ferks"
    
    while npc.dist > 3 do
    reachcreature(npc)
    end
    Not working for me and I tried using only the function reachcreature("name") but it does nothing.

  2. #2
    Normal User kozik7's Avatar
    Join Date
    Oct 2012
    Posts
    146
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5
    propably need sirmate library

  3. #3
    Normal User Y4rR0's Avatar
    Join Date
    May 2012
    Location
    Warsaw, Poland
    Posts
    596
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    87
    Rep Power
    6
    Quote Originally Posted by kozik7 View Post
    propably need sirmate library
    Sirmate's library for function from standard library?...

    @Supreme
    You should make it like this to get it work
    npc = getcreature("Ferks")
    while npc.dist > 3 do
    reachcreature(npc)
    end

    But its not working, because .dist is not working properly. Instead of this you can use this:
    local npc = "Ferks"
    local dist = findcreature(npc)
    while (dist > 3) do
    reachcreature(npc)
    end

  4. #4
    Normal User
    Join Date
    Dec 2012
    Location
    Sweden
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by Y4rR0 View Post
    Sirmate's library for function from standard library?...

    @Supreme
    You should make it like this to get it work
    npc = getcreature("Ferks")
    while npc.dist > 3 do
    reachcreature(npc)
    end

    But its not working, because .dist is not working properly. Instead of this you can use this:
    local npc = "Ferks"
    local dist = findcreature(npc)
    while (dist > 3) do
    reachcreature(npc)
    end
    This does not work. Anyone know how to get this function to work?

  5. #5
    Normal User Y4rR0's Avatar
    Join Date
    May 2012
    Location
    Warsaw, Poland
    Posts
    596
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    87
    Rep Power
    6
    Any errors?

  6. #6
    Focus Group MoS's Avatar
    Join Date
    Feb 2012
    Posts
    832
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    63 Post(s)
    Reputation
    77
    Rep Power
    6
    so, i've tried this, and i logged a maker, to push my character buying potions, and it doesnt work, how should I add this? to make the character "follow" the npc, while he buys potions
    Ajudei você? ...............+REP
    -----------------------------------------
    Did I help you? ..........+REP

  7. #7
    Focus Group MoS's Avatar
    Join Date
    Feb 2012
    Posts
    832
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    63 Post(s)
    Reputation
    77
    Rep Power
    6
    Quote Originally Posted by Ropiderz View Post
    The problem is NPC's are behind corners you can't follow 'em.
    so, nothing can be done? =/
    that sux haha
    Ajudei você? ...............+REP
    -----------------------------------------
    Did I help you? ..........+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
  •