Jump to content
  • 0

Killedrid detectable when killing areamonster


Strand

Question


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  102
  • Reputation:   2
  • Joined:  07/01/13
  • Last Seen:  

Hello community,

  I have a question: Is it possible to make areamonsters command detectable using killedrid?

Here is an example:

OnInit:
areamonster "1@exile",394,6    ,348,50,"--ja--",3896,20,strnpcinfo(0)+"::On1stFloor",0,0;
if ( killedrid == 3896 ) {

set monster,1;

dispbottom "Congratulations! You have killed the monster.";

end;

}

I know that the correct way to execute an action when killing the monster is by doing On1stFloor: and then put the script to trigger.

On1stFloor:

set monster,1;

dispbottom "Congratulations! You have killed the monster.";

end;

But is there any way to make that areamonster script to be recognized when using if ( killedrid == 3896) { }?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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

On1stFloor:
	set monster,1;
	dispbottom "Congratulations! You have killed the monster.";
	end;

there are no need to check for killedrid since the event label are only triggered when you killed the target monster.

and what's the point to check for monster id during spawning process?

Edited by Emistry
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...