Jump to content
  • 0

killmonster command doesn't work


ZelosAvalon

Question


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   33
  • Joined:  11/11/12
  • Last Seen:  

i have two problems in my script  (Note: this scripts was made for hercules and now i'm return to rathena)

1st: When my event is finished by a GM or by the npc itself, the map monsters aren't being killed, they are still alive.

2nd: When my event starts the npc appears an emotion / hlp above his head, but it is only appearing in an npc, just in what you started the event, I would like it to appear in all npcs of the world!

my NPC Script: http://upaste.me/0c9a34036a75a2370

when i finish it i'll share here in rathena forum! NPC Invasion + NPC Ranking Invasion

best regards ZelosAvalon

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

1.

find this line...424

killmonster .invasion_map$, "Event Invasion::OnMyMobDead";

change into

killmonster .invasion_map$, strnpcinfo(3)+"::OnMyMobDead";

 

2.

you can do it this way ...

add this label in your npc

OnEventEmote:
	emotion e_hlp;
	end;

then change

while ($invasion_event_flag == true) {
	sleep 2000;
	emotion(e_hlp);
}
end;

into

while ($invasion_event_flag == true) {
	sleep 2000;
	donpcevent "::OnEventEmote";
}
end;

it should do the trick for you...

but there are several ways for you to do this tricks too. 

Edited by Emistry
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

@Emistry should be donpcevent

donpcevent "::OnEventEmote";

another thing that's different from rathena and hercules is the gettime constants ...
hercules use GETTIME_WEEKDAY
rathena use DT_DAYOFWEEK

Edited by AnnieRuru
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...