Page 1 of 1

Event on monster spawn death

Posted: 08 Dec 2010, 17:39
by chaslinux
Wondering why the event doesn't happen? Chopped off the first part of the code (thus the close. Should NPCNAME be the name of the NPC doing the monster spawning? e.g. SpawnMaster ? When the Reaper is killed nothing seems to happen. My understanding was that the NPCNAME::L_ReaperKilled should have launched the L_ReaperKilled: event?

Code: Select all

        monster "this",0,0,"Reaper",1111,1,"NPCNAME::L_ReaperKilled";
close;

L_ReaperKilled:
        getinventorylist;
        if (@inventorylist_count==100) goto L_nospace;
        mes "[Khent]";
        mes "Fantastic mate! I don't";
        mes "know how you did it, but";
        mes "here's some pirate's gold";
        mes "for your efforts!";
        set zeny, zeny+1000000;
        next;
        mes "And this hat will serve";
        mes "ye well! Thanks again!";
        getitem 617, 1;
Thanks all...

Re: Event on monster spawn death

Posted: 09 Dec 2010, 00:26
by Freeyorp101
Yes, "NPCNAME" should be the name of the NPC. See Candor for an example.

---Freeyorp

Re: Event on monster spawn death

Posted: 09 Dec 2010, 15:15
by chaslinux
Freeyorp101 wrote:Yes, "NPCNAME" should be the name of the NPC. See Candor for an example.
Thanks, I bumped along and figured it out. I kept making the mistake of wrong case. I would put the NPCNAME all in lower case, but in the script I used a capital to being the script NPC name. When I finally matched the two it worked.