hakuren Posted January 27, 2014 Share Posted January 27, 2014 how to know if monster or human kills you or your target Quote Link to comment Share on other sites More sharing options...
Euphy Posted January 27, 2014 Share Posted January 27, 2014 In src/common/mmo.h: #define START_ACCOUNT_NUM 2000000 #define END_ACCOUNT_NUM 100000000The '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. Quote Link to comment Share on other sites More sharing options...
hakuren Posted January 28, 2014 Author Share Posted January 28, 2014 In src/common/mmo.h: #define START_ACCOUNT_NUM 2000000 #define END_ACCOUNT_NUM 100000000The '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? Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 28, 2014 Share Posted January 28, 2014 - 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/homunculusnow cannot, can only get the names of pet/homunculus Quote Link to comment Share on other sites More sharing options...
hakuren Posted January 29, 2014 Author Share Posted January 29, 2014 - 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/homunculusnow cannot, can only get the names of pet/homunculus thank you AnnieRuru Quote Link to comment Share on other sites More sharing options...
how to know if monster or human kills you or your target
Link to comment
Share on other sites