Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-23-2011, 12:27 PM
revloc02c's Avatar
revloc02c
Hill Giant
 
Join Date: Aug 2010
Location: UT
Posts: 215
Default Create NPC that is kos?

This must be something simple, but I can't get it working, and I can't find the answer anywhere.

I created an NPC but he's indifferent and will not attack. Other mobs in the zone will attack, but the one I made does not.

Here's the script I used to make him:
Code:
SET @NpcId = 620501; -- Always check both npcID and spawngroupID for availability
SET @SpawnGroupId = 620501; -- Always check both npcID and spawngroupID for availability
SET @NpcName = 'The_Big_Bad_Wolf';
SET @NpcLastname = 'Zone Boss';
SET @Zone = 'dawnshroud';

SET @SpawngroupName = CONCAT(@NpcName, ", ", @Zone);

INSERT INTO npc_types (id, name, lastname, 
	race, class, level, 
	bodytype, gender, texture, size, 
	face, luclin_hairstyle, luclin_haircolor, luclin_eyecolor, luclin_eyecolor2, 
	armortint_red, armortint_green, armortint_blue, npcspecialattks, 
	hp, AC, runspeed,
	STR, STA, DEX, AGI, _INT, WIS, CHA,
	MR, CR, DR, FR, PR)
VALUES (@NpcId, @NpcName, @NpcLastname, 
	14, 1, 41, 
	1, 2, 0, 20, 
	1, 1, 1, 4, 4, 
	0, 0, 0, "", 
	100, 789, 2,
	75, 75, 75, 75, 75, 75, 75,
	75, 75, 75, 75, 75);
	
INSERT INTO spawngroup (id , name)
	VALUES (@SpawnGroupId, @SpawngroupName); -- name = varchar(50)
INSERT INTO spawn2 (spawngroupID , zone , x, y, z, heading, respawntime)
	VALUES (@SpawnGroupId, @Zone, 0, 0, 0, 0, 1);
INSERT INTO spawnentry (spawngroupID , npcID , chance)
	VALUES (@SpawnGroupId, @NpcId, 100);
After he didn't aggro, I searched around the forums and found info about the "npc_faction_id" column, and set it to 19471 (also tried 19472), and it looks like other mobs are using that number successfully. Then I saw the "aggroradius" column while I was there and set it to 200.

Still indifferent, still won't attack, what the heck am I missing?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:52 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3