Im trying to find npc around using monster funciton but it does not work;
how can I check if npc is around player?HTML Code:if not islocation(3) then gotolabel("go_shop", "City") elseif maround(7, "Sigurd") > 0 then reachcreature("Sigurd") end
Im trying to find npc around using monster funciton but it does not work;
how can I check if npc is around player?HTML Code:if not islocation(3) then gotolabel("go_shop", "City") elseif maround(7, "Sigurd") > 0 then reachcreature("Sigurd") end
Last edited by tryller; 02-05-2014 at 08:33 PM.
local npc = findcreature('Sigurd')
if npc then -- Sigurd is on screen
-- Do whatever you want
end
Thanks Raphael