EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   npc:SetFollowID question/help (https://www.eqemulator.org/forums/showthread.php?t=44220)

t0neg0d 11-26-2024 01:03 PM

npc:SetFollowID question/help
 
npc:SetFollowID(int id); <<< This makes an npc follow you, I assume? Can't seem to get it to work. I'm likely missing something important.

Code:

function event_say(e)
        if e.message:findi("hail") then
                -- stuff
        elseif e.message:findi("follow") then
                -- The important bit
                e.self:SetFollowID(e.other:GetID());
        end
end



All times are GMT -4. The time now is 12:47 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.