Event on monster spawn death

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Post Reply
User avatar
chaslinux
Novice
Novice
Posts: 109
Joined: 08 Aug 2009, 01:57
Location: Kitchener, Ontario

Event on monster spawn death

Post 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...
User avatar
Freeyorp101
Archivist Prime
Archivist Prime
Posts: 766
Joined: 04 Nov 2008, 09:17
Location: New Zealand

Re: Event on monster spawn death

Post by Freeyorp101 »

Yes, "NPCNAME" should be the name of the NPC. See Candor for an example.

---Freeyorp
(09:58:17) < tux9th> Freeyorp: your sig on the forums is kind of outdated
User avatar
chaslinux
Novice
Novice
Posts: 109
Joined: 08 Aug 2009, 01:57
Location: Kitchener, Ontario

Re: Event on monster spawn death

Post 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.
Post Reply