Jump to content
  • 0

how to know if the monster kill you or a human


Question

4 answers to this question

Recommended Posts

Posted

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

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?

Posted

-	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

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...