Jump to content
  • 0

Requesting For IF A Specific MOB DIES ON SPECIFIC MONSTER


Nero

Question


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  194
  • Reputation:   2
  • Joined:  12/18/11
  • Last Seen:  

Requesting For IF A Specific MOB DIES ON SPECIFIC MONSTER IT WILL ANNOUNCE THAT "SOMEONE HAS KILLED "MOB" AT "MAP"

 

 

ANY PERSON WHO KILLED HIM

Edited by sampang99
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

OnNPCKillEvent:
if( killedrid == mob_id )
	announce strcharinfo(0)+" of "+strcharinfo(2)+" has slain "+getmonsterinfo( killedrid,MOB_NAME )+" at "+strcharinfo(3),bc_all,0xFF0000";
end; 

more

OnNPCKillEvent:
if((killedrid == 1004 ) || (killedrid == 1005 ) || (killedrid == 1006 )) //those are fake monster ids
	announce strcharinfo(0)+" of "+strcharinfo(2)+" has slain "+getmonsterinfo( killedrid,MOB_NAME )+" at "+strcharinfo(3),bc_all,0xFF0000";
end; 

a mob dies on specific monster.

is it like..

a bomb explodes on a bomb?

a worm walks on a worm? (ew)

 

such inception....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  194
  • Reputation:   2
  • Joined:  12/18/11
  • Last Seen:  

OnNPCKillEvent:
if( killedrid == mob_id )
	announce strcharinfo(0)+" of "+strcharinfo(2)+" has slain "+getmonsterinfo( killedrid,MOB_NAME )+" at "+strcharinfo(3),bc_all,0xFF0000";
end; 

more

OnNPCKillEvent:
if((killedrid == 1004 ) || (killedrid == 1005 ) || (killedrid == 1006 )) //those are fake monster ids
	announce strcharinfo(0)+" of "+strcharinfo(2)+" has slain "+getmonsterinfo( killedrid,MOB_NAME )+" at "+strcharinfo(3),bc_all,0xFF0000";
end; 

a mob dies on specific monster.

is it like..

a bomb explodes on a bomb?

a worm walks on a worm? (ew)

 

such inception....

 

Ohmg hahaha i made a typo sorry

i mean 

 

 IF A Specific Poring DIES ON SPECIFIC MAP IT WILL ANNOUNCE THAT "SOMEONE HAS KILLED "MOB" AT "MAP"

 

poring was killed in prontera. it will announce that PORING IS NOW DEAD AT PRONTERA.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

hmm, still NO. this script is made to work like this:

if a Poring is killed at Prontera:

-	script sdfhrae -1,{
OnNpcKillEvent:
	if ((strcharinfo(3) == "prontera") && (killedrid == 1002)) { //sbd. in prontera, killed poring
		announce strcharinfo(0)+" of "+strcharinfo(2)+" has slain "+getmonsterinfo( killedrid,MOB_NAME )+" at "+strcharinfo(3),bc_all,0xFF0000";
		end;
	}
	end;
}

more, to define multiple monsters killed in multiple maps:


-	script sdfhrae -1,{
OnNpcKillEvent:
	if (( (strcharinfo(3) == "prontera") || (strcharinfo(3) == "hugel") ) && ( (killedrid == 1002) || (killedrid == 1003) ) { //sbd. in prontera or hugel, killed poring or poporing? what's 1003?
		announce strcharinfo(0)+" of "+strcharinfo(2)+" has slain "+getmonsterinfo( killedrid,MOB_NAME )+" at "+strcharinfo(3),bc_all,0xFF0000";
		end;
	}
	end;
}
Edited by Winz
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...