New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add *getunittype and update *getmapxy #871
Conversation
- unlike rathena, hercules' getunittype use the value from getmapxy - getmapxy now can search object position using GID
- I wonder how it become 2 ? o.o
can merge now ? |
just curious, does it able to retrieve the coordinate X and Y for dead monster that triggered the event ??
|
If monster is dead, possibly all its info is free'd, so maybe not? |
@Emistry yes, dastgir is correct, for that kind of information, have to do it by well I guess after I finish up |
Merged, thank you! |
rathena has this custom stuff
rathena/rathena@2cee5b6
and this makes hercules members jealous
of course, I think hercules should add them as well
however, when I review their code, its SUPER SUCKS
I will tell how bad of their code later, 1 by 1
and I do this very very slowly to ensure nothing goes wrong
so this particular one,
... ok let me laugh 1st ...
their
getunittype
seems to insert some random valueBUT we will follow using the value from existing
getmapxy
of course, CONSTANTS !
this has been tested with
I used homunculus, pets, monsters, etc to kill that player
that player can shows coordinates of the killer object without failure
in this case, their getunitdata that return coordinate is useless
I already coded setmobdata/getmobdata
http://upaste.me/ed6c2196382229bc7
but I still need to finalize the code
when I'm ready, I'll pull request that one