Jump to content
  • 0

how to know if the monster kill you or a human


hakuren

Question


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

how to know if monster or human kills you or your target

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

In src/common/mmo.h:

#define START_ACCOUNT_NUM 2000000
#define END_ACCOUNT_NUM 100000000
The 'killerrid' variable will be between the two game ID bounds (START_ACCOUNT_NUM and END_ACCOUNT_NUM) for players, and greater than END_ACCOUNT_NUM for mobs.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

In src/common/mmo.h:

#define START_ACCOUNT_NUM 2000000
#define END_ACCOUNT_NUM 100000000
The 'killerrid' variable will be between the two game ID bounds (START_ACCOUNT_NUM and END_ACCOUNT_NUM) for players, and greater than END_ACCOUNT_NUM for mobs.

 

 

sir could you give me an example of this? please?

Link to comment
Share on other sites


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

-	script	kjhfksfjhs	-1,{
OnPCDieEvent:
	if ( !killerrid ) // example -> drink poison bottle
		dispbottom "You just suicide"; 
	else if ( killerrid < 100000000 )
		dispbottom "You have killed by a player -> "+ rid2name( killerrid );
	else
		dispbottom "You have killed by a monster/pet/homunculus/mercenary -> "+ rid2name( killerrid );
	end;
}
last time we still have mob controller system able to retrieve the master of the pet/homunculus

now cannot, can only get the names of pet/homunculus

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

-	script	kjhfksfjhs	-1,{
OnPCDieEvent:
	if ( !killerrid ) // example -> drink poison bottle
		dispbottom "You just suicide"; 
	else if ( killerrid < 100000000 )
		dispbottom "You have killed by a player -> "+ rid2name( killerrid );
	else
		dispbottom "You have killed by a monster/pet/homunculus/mercenary -> "+ rid2name( killerrid );
	end;
}
last time we still have mob controller system able to retrieve the master of the pet/homunculus

now cannot, can only get the names of pet/homunculus

 

thank you 

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