PDA

View Full Version : $mobid = npctypeid or the spawn#?


Irreverent
10-11-2009, 04:07 PM
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:
$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.