I tried code i saw used in many places, and it doesn't seem to work. everything else in it works. but the mob simply doesn't attack me when i hand the item in.
Code:
sub EVENT_ITEM {
if($itemcount{20368} == 1){ # Note to Maligar
quest::say("Hmmm. What's this? A note from that silly bard Baenar? I wasn't aware that those of his kind could write, much less read.");
quest::emote("lets out a deep laugh.");
quest::say("I see you do not share my sense of humor. Let's read it, shall we? Oh, no! She's dead? I knew that already, you fool. It was by my hand she died! Ooops! Did I let that slip out? Silly me. I guess I will have to kill you now!");
quest::spawn(12132,0,0,-10905,1249,210);
quest::attack("$name");
}
}
sub EVENT_DEATH {
quest::depop();
}
#END of FILE Zone:qey2hh1 ID:12076 -- Maligar
Also, i noticed depop(); on death doesn't appear to work. I would of expected it to make him go poof after he dies like a vendor would. Maybe i need to pass an arguement through it? The reason i did a depop() on death was because when i kill him, he has the note that i had given him to spawn the second mob and cause him to attack me. This item is a quest item and should be destroyed after i hand it in, shouldn't be able to loot it when he dies ) Anybody know a way to get around this some how?
thanks!
any ideas?