Jump to content
  • 0

Retrieve monster ID on damage


Truly

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  201
  • Reputation:   47
  • Joined:  11/17/11
  • Last Seen:  

Hey i was messing around with some new idea i have and i come to find that i need a source edit that will retrieve the monsters ID when you damage it and store it into a character variable or something. I only need it for monsters on one specific map so im not sure how temporary the variable can get, but i will set it to 0 in a script anyhow. Basically i got to this point with a brick wall in front of me:

battle.c in int battle_calc_damage

add this line before the return damage;

if(src->type == BL_PC && bl->type==BL_MOB ) pc_setglobalreg(src,"@attackedmobgid",bl->id);

And it seems to always set the variable to 0 from what i can see. Anyone able to help me out here?

Thanks~

Bump~

pretty essential edit i really need help on.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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