View Single Post
  #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