EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Proximities and NPCs (https://www.eqemulator.org/forums/showthread.php?t=38299)

Splose 05-16-2014 07:11 PM

http://wiki.eqemulator.org/p?Waypoints&frm=Main

check that out.

you'll have to use #grid max.. then #grid add to that number + 1

then you #gassign and repop and wait until the grid gets assigned to the npc (takes a few seconds.. you can check with #wpinfo.. then you just do #wpadd)

Akkadius 05-17-2014 12:30 AM

In quest::follow there is a difference between using entity and entity ID. You will need to do $entity_list->GetEntityByNPCTypeID(npcid)->GetID()

Ps. Typing on phone sucks

Splose 05-17-2014 07:01 AM

Quote:

Originally Posted by Akkadius (Post 230549)
In quest::follow there is a difference between using entity and entity ID. You will need to do $entity_list->GetEntityByNPCTypeID(npcid)->GetID()

Ps. Typing on phone sucks

I tried that brotato it didn't work

Esildor 05-17-2014 01:04 PM

Lol @ brotato.

So, if statement for sub event_waypoint_arrive uses grid max? like if ($gridmax) or some shiz?

Esildor 05-17-2014 02:11 PM

Holy shit I'm so terrible. Just did #wpinfo, they're numbered 0,1,2 etc. What I thought was 3 was 2 all along. if($wp == 2) { works fine.

That's a good thing to note though because on the PEQ Editor it shows the numbering starting at 1, not 0.

fml.

Akkadius 05-17-2014 02:38 PM

Quote:

Originally Posted by Splose (Post 230553)
I tried that brotato it didn't work

That's because phone's autocorrect and they suck.

quest::follow($entity_list->GetNPCByNPCTypeID(npc_id)->GetID(), 10);

DOES work

joligario 05-17-2014 03:05 PM

Quote:

Originally Posted by Esildor (Post 230562)
... on the PEQ Editor it shows the numbering starting at 1, not 0.

Which is part of the old numbering system which was inconsistent. To get grids set properly, it is best to start 0 as the spawn point. In the editor, you can sort the grid points and it will fix the particular spawn.


All times are GMT -4. The time now is 08:46 AM.

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