i need NPC type

05/02/2009 05:32 BrokeN^WinG#1
i wanna Npc type i want make in my server

like santa npc and Christmas tree somthing like that npcs
05/02/2009 06:00 Qonquer#2
Look in \ini\npc.ini on the client, open it in notepad. You will see tones of entries for NPCs, like this:

[NpcType256]
Name=SantaClaus
SimpleObjID=256
StandByMotion=999256100
BlazeMotion=999256101
RestMotion=999256102
Effect=none
ASB=5
ADB=6
FixDir=0

multiply the NpcType number in the ini header by 10, in this case it would be 2560. Then add 0-7 to that number for the direction you want the NPC to face. That gives you the NPC type number, in this case Santa, also the function number for a normal NPC is 2.
05/02/2009 06:02 BrokeN^WinG#3
Thanks Dude i`ll test it later ;)


Edite: can u give me chris tree number cuz i can`t get it
05/02/2009 07:04 Qonquer#4
it's in npc.ini

[NpcType838]
Name=ChristmasTree
SimpleObjID=9970
StandByMotion=0999997100
BlazeMotion=0999997190
RestMotion=0999997101
Effect=none
ASB=5
ADB=6
FixDir=0

So the type is 8380
05/02/2009 11:04 mejo33#5
THANKS ALL!
Where can see graphic NPC? I need make npc like QONQUER free item its a nice big monster structure NPC ^^
05/02/2009 14:02 magnon#6
loft ?
05/02/2009 15:10 araXis#7
Quote:
Originally Posted by mejo33 View Post
THANKS ALL!
Where can see graphic NPC? I need make npc like QONQUER free item its a nice big monster structure NPC ^^
Lol Qonquer is best private server.And qo admin is written 100 safe code and unique.Maybe him ask for free items npc.;)
05/02/2009 23:23 Qonquer#8
The type number for that pumpkin head NPC is 5837 (facing forward)

The script for the NPC is probably no use to you as it is my own server script code, however it is readable and may be converted I guess. Is it true that lotf's NPCs are hard coded??

Code:
//By: Frankie[DM]

@interop limit
@security high

npcAvatar(6);
switch(option)
{
	case -1:
	{ 
		if ( level()<70 || val("GOTFREEITEMS")==1)
		{
			npcText("You're too low level or you have already claimed free items :)");
			break;
		}
		npcText("I can see you're new around here, i guess you need some decent items to get going, ");
		npcText("Well since your level 70+ i dont mind throwing some free items your way, ");
		npcText("They will be soulbound (Free) Tagged items and cannot be sold/traded/dropped.");
		npcText("If your trying to drop your items and click OK they will be discarded for good");
		npcOption(0,"I need some free items!");
		npcOption(-1, "Nevermind, Im not greedy");
		break;
	}
	case 0:
	{
		if(invSize()>32)
		{
			npcText("You dont have 7 slots free in your bag, please lose some items!");
			break;
		}
		if(job()>9 && job()<16)
		{
			atcommand("@freeitem WarCoronet 7");	
			atcommand("@freeitem PlatinaNecklace 7");	
			atcommand("@freeitem PearlRing 7");	
			atcommand("@freeitem RageArmor 7");	
			atcommand("@freeitem SnakeskinBoots 7");	
			atcommand("@freeitem BronzeClub 7 2");	
			atcommand("@freeitem SharkSword 7 2");	
		}
		else
		if(job()>19 && job()<26)
		{
			atcommand("@freeitem GoldHelmet 7");	
			atcommand("@freeitem PlatinaNecklace 7");	
			atcommand("@freeitem PearlRing 7");	
			atcommand("@freeitem LightArmor 7");	
			atcommand("@freeitem SnakeskinBoots 7");	
			atcommand("@freeitem BronzeClub 7 2");	
			atcommand("@freeitem WolfShield 9");	
		}
		else
		if(job()>39 && job()<46)
		{
			atcommand("@freeitem HeartofOcean 7");	
			atcommand("@freeitem PlatinaNecklace 7");	
			atcommand("@freeitem PearlRing 7");	
			atcommand("@freeitem ApeCoat 7");	
			atcommand("@freeitem SnakeskinBoots 7");	
			atcommand("@freeitem GooseBow 7 2");		
		}
		else
		if(job()>49 && job()<56)
		{
			atcommand("@freeitem BloodVeil 7");	
			atcommand("@freeitem PlatinaNecklace 7");	
			atcommand("@freeitem PearlRing 7");	
			atcommand("@freeitem TigerVest 7");	
			atcommand("@freeitem SnakeskinBoots 7");	
			atcommand("@freeitem RainKatana 7 2");
			atcommand("@freeitem RainKatana 7 2");		
		}
		else
		if(job()>99)
		{
			atcommand("@freeitem SharkCap 7");	
			atcommand("@freeitem AmbergrisBag 7");	
			atcommand("@freeitem BoneBracelet 7");	
			atcommand("@freeitem CraneVestment 7");	
			atcommand("@freeitem SnakeskinBoots 7");	
			atcommand("@freeitem GreatBacksword 7 2");	
		}
		else
		{
			npcText("WTH?? Your job type is not standard, please report to a GM!");
			break;
		}
		npcText("There you go, check in your bag for your free stuff!");
		setval("GOTFREEITEMS",1);
	}
}
npcShow();
05/03/2009 17:18 mejo33#9
Quote:
Originally Posted by Qonquer View Post
The type number for that pumpkin head NPC is 5837 (facing forward)

The script for the NPC is probably no use to you as it is my own server script code, however it is readable and may be converted I guess. Is it true that lotf's NPCs are hard coded??

Code:
//By: Frankie[DM]

@interop limit
@security high

npcAvatar(6);
switch(option)
{
	case -1:
	{ 
		if ( level()<70 || val("GOTFREEITEMS")==1)
		{
			npcText("You're too low level or you have already claimed free items :)");
			break;
		}
		npcText("I can see you're new around here, i guess you need some decent items to get going, ");
		npcText("Well since your level 70+ i dont mind throwing some free items your way, ");
		npcText("They will be soulbound (Free) Tagged items and cannot be sold/traded/dropped.");
		npcText("If your trying to drop your items and click OK they will be discarded for good");
		npcOption(0,"I need some free items!");
		npcOption(-1, "Nevermind, Im not greedy");
		break;
	}
	case 0:
	{
		if(invSize()>32)
		{
			npcText("You dont have 7 slots free in your bag, please lose some items!");
			break;
		}
		if(job()>9 && job()<16)
		{
			atcommand("@freeitem WarCoronet 7");	
			atcommand("@freeitem PlatinaNecklace 7");	
			atcommand("@freeitem PearlRing 7");	
			atcommand("@freeitem RageArmor 7");	
			atcommand("@freeitem SnakeskinBoots 7");	
			atcommand("@freeitem BronzeClub 7 2");	
			atcommand("@freeitem SharkSword 7 2");	
		}
		else
		if(job()>19 && job()<26)
		{
			atcommand("@freeitem GoldHelmet 7");	
			atcommand("@freeitem PlatinaNecklace 7");	
			atcommand("@freeitem PearlRing 7");	
			atcommand("@freeitem LightArmor 7");	
			atcommand("@freeitem SnakeskinBoots 7");	
			atcommand("@freeitem BronzeClub 7 2");	
			atcommand("@freeitem WolfShield 9");	
		}
		else
		if(job()>39 && job()<46)
		{
			atcommand("@freeitem HeartofOcean 7");	
			atcommand("@freeitem PlatinaNecklace 7");	
			atcommand("@freeitem PearlRing 7");	
			atcommand("@freeitem ApeCoat 7");	
			atcommand("@freeitem SnakeskinBoots 7");	
			atcommand("@freeitem GooseBow 7 2");		
		}
		else
		if(job()>49 && job()<56)
		{
			atcommand("@freeitem BloodVeil 7");	
			atcommand("@freeitem PlatinaNecklace 7");	
			atcommand("@freeitem PearlRing 7");	
			atcommand("@freeitem TigerVest 7");	
			atcommand("@freeitem SnakeskinBoots 7");	
			atcommand("@freeitem RainKatana 7 2");
			atcommand("@freeitem RainKatana 7 2");		
		}
		else
		if(job()>99)
		{
			atcommand("@freeitem SharkCap 7");	
			atcommand("@freeitem AmbergrisBag 7");	
			atcommand("@freeitem BoneBracelet 7");	
			atcommand("@freeitem CraneVestment 7");	
			atcommand("@freeitem SnakeskinBoots 7");	
			atcommand("@freeitem GreatBacksword 7 2");	
		}
		else
		{
			npcText("WTH?? Your job type is not standard, please report to a GM!");
			break;
		}
		npcText("There you go, check in your bag for your free stuff!");
		setval("GOTFREEITEMS",1);
	}
}
npcShow();
Hehe, thanks dude. But, sorry i need a npc TYPE ID :) I writen my own code thjanks for help :mofo: