If I am right, upon the mob's death, it will trigger OnMobDeath label from the Mob Spawner NPC.
Now I want to know if its possible that upon the execution OnMobDeath label, i will refer to the dying monster specifically, not just its id from killedid.
I know that it will be possible once I can get hold of its GID, so is there any way to do it? (for example like getmobGID() but this function doesnt exist)
I've already encounter this get_monster_gid but the way I see it, I can only use its GID after I summon it, not when it dies.
Question
aadritch2
Hello, is this possible in the current rathena or do I need to source edit.
My question is this, for example i summoned a monster:
monster .@map$,.@mapx,.@mapy,getmonsterinfo(mobid,MOB_NAME),mobid,1,"Mob Spawner::OnMobDeath";
If I am right, upon the mob's death, it will trigger OnMobDeath label from the Mob Spawner NPC.
Now I want to know if its possible that upon the execution OnMobDeath label, i will refer to the dying monster specifically, not just its id from killedid.
I know that it will be possible once I can get hold of its GID, so is there any way to do it? (for example like getmobGID() but this function doesnt exist)
I've already encounter this get_monster_gid but the way I see it, I can only use its GID after I summon it, not when it dies.
TL;DR: Get a monster GID upon its death
Link to comment
Share on other sites
2 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.