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.
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();
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
[HELP] type 531 11/03/2009 - EO PServer Hosting - 2 Replies hello, i know this maybe is a noob question but i TOTAL forgot how to change it .. (if i even know it before lol)
its about the XO boxes (19*) become's a 30* ?! :confused:
i checked Cq_action and i get this
4600650 4600651 4600653 508 0 1 0 53
4600651 4600652 0 531 0
[HELP]Own NPC name/type 05/22/2009 - CO2 Private Server - 2 Replies Anyone knows how to change NPCs name or make a own type with own name?
Thx for any answers :)
what type 04/02/2008 - Perfect World - 3 Replies anyone have idea for great pvp/pk/tw build for WR ? what build is better for u
Fist WR
Str min for leather / agi min. for fist and give all in CON = Good tank vs mg / ep / wf , not bad dodge for mele and much hp / cri
or
Sword WR
str for Heavy armor"90lvl uniq so 240 +/- , dex to swords and all in CON
last skill Sword can own all mages in one hit and remember i buy slow swords green , it have nice dmg ;)
i do it sure in 95 + lvl
Need item type and token type boot 03/18/2008 - Conquer Online 2 - 1 Replies Hi All programers and makers of boots, Great job. Could some one make item and token type boot for patch 5118. Please
New type of bot 12/09/2006 - Conquer Online 2 - 1 Replies I don't think anyones come up with the bot yet, but here goes. Anyone want to make a bot for tg. It logs back in after it disconnects and puts your character back to the spot in tg you want it to. Then there can be a bunch of settings like scatter up scatter down, night devil glitch, water elf glitch. All kinds of good stuff like that.... if theres a bot already like this im sorry for posting and could i get a link to it