EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   $mobid = npctypeid or the spawn#? (https://www.eqemulator.org/forums/showthread.php?t=29771)

Irreverent 10-11-2009 04:07 PM

$mobid = npctypeid or the spawn#?
 
By lexicon it says that $mobid should be npctypeid, but when I do a quest::shout("I am number $mobid"); it is saying the npc# of the zone, not the npctype id.

Meaining, if there are 100 mobs in the zone, I spawn it it will say "I am number 101"

Did this get changed? Is there a way to get it to be the npctypeid instead? Maybe another variable?

Theeper 10-11-2009 10:10 PM

$npcID = $npc->GetNPCTypeID();

Irreverent 10-12-2009 09:13 AM

Just added "..I am NPC $npcID or $npc"

all I see is "...I am NPC"

joligario 10-12-2009 10:03 AM

He's saying do this:
Code:

$myID = $npc->GetNPCTypeID();
quest::say("My ID is $myID.");


Irreverent 10-12-2009 12:08 PM

Gotcha, awesome! This worked, thanks.

Now just need to figure out the default.pl or whatever it is for the generic npc perl.(like player.pl)

Have another thread in this forum discussing this.


All times are GMT -4. The time now is 05:26 PM.

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