Signup Now
Results 1 to 3 of 3
  1. #1
    Banned
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    48
    Reputation
    12
    Rep Power
    0

    How to find NPC Around?

    Im trying to find npc around using monster funciton but it does not work;

    HTML Code:
    if not islocation(3) then
    gotolabel("go_shop", "City")
    
     elseif maround(7, "Sigurd") > 0 then
    reachcreature("Sigurd")
    end
    how can I check if npc is around player?
    Last edited by tryller; 02-05-2014 at 08:33 PM.

  2. #2
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    local npc = findcreature('Sigurd')
    if npc then -- Sigurd is on screen
    -- Do whatever you want
    end

  3. #3
    Banned
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    48
    Reputation
    12
    Rep Power
    0
    Thanks Raphael

 

 

Posting Permissions

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