i wanna Npc type i want make in my server
like santa npc and Christmas tree somthing like that npcs
like santa npc and Christmas tree somthing like that npcs
//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:Quote:
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();