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:
Question
Truly
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.