I got the zone to stop crashing, apparently it is caused by a custom item I made and that my npc handed out and I narrowed it down to my Stone of Darkness. which is used for my pvp npc. For some reason it is just this item that causes it to crash once i remove item from database it loads fine with the npcs.
item stats and information
and here is the code for the pvp npc (I know it is wrong place but it fits in with the problem)
Code:
##################
##say link Variables######
my $shackles = quest::saylink("shackles", 0, "shackles");
my $Darkside = quest::saylink("Darkside", 0, "Darkside");
my $artifact = quest::varlink(1118);
##################
sub EVENT_SAY {
if($text=~/Hail/i){
quest::emote("turns his icy stare on you and his thoughts invade your mind!");
plugin::Whisper("Greetings $name. I can tell by the $shackles in your inventory that you are bound by the light.");}
if($text=~/shackles/i){
plugin::Whisper("Being bound to the light is like being enslaved in shackles. Yes you are protected but you are not free to live dangerously and experience everything that goes bump in the night! but alas, I can sense that you might want to join the $Darkside");}
if($text=~/Darkside/i)
{
quest::emote("Nods his head");
plugin::Whisper("Yes, If you wish to join the dark side and be free, just hand me those shackles in your inventory and I will free you from your bondage");
}
}
sub EVENT_ITEM
{
if ($itemcount{1096} == 1)
{
quest::emote("Takes the shackles from your inventory and uses his power to drain all the light from them leaving you with a.... $artifact in your hands");
plugin::Whisper("I welcome you to the Darkside $name! Remember, there are strange things that go bump in the night and now that you walk in Darkness, you no longer have the light watching over you. Be careful, other people also walk in the dark and they aren't afraid to mug you and steal all your money. Yes, they can steal your money but NOT your items that you wear so beware!");
quest::pvp ("on");
quest::summonitem(1118);
plugin::Whisper("Keep this stone of Darkness in your bank $name because if you ever become AFRAID of the dark and wish to see the light again just hand the stone back to me and I will once again enslave you in the bondage of light.");
}
if ($itemcount{1118} == 1)
{
quest::emote("Takes the $artifact from your hands and once again uses his mighty force to break open the stone and reforms the shackles of light and slips them over your wrists");
plugin::Whisper("Hah, I knew you couldn't handle it $name, You make me sick! Leave my sight at once and don't come back unless you want to join the darkside again");
quest::emote("Points to the exit");
quest::say("Begone $name follower of light, come back when you grow a pair and want to try the darkside again!");
quest::summonitem(1096);
quest::pvp("off");
}
}