Help finding Death Instance Code?
Does anyone know where I can find the code for what happens when you die? All I was able to find was the section that checks to see if you have a safety charm and doesn't take your exp in MapleCharacter.java, and the effect for wheels of destiny in the ChangeMapHandler.java
Edit: What I'm trying to do is find the call to change your map when you click OK on the box when you die, and make it redirect you to a map that I specify. So far, at least with my very limited abilities, i've only been able to modify what happens BEFORE the box pops up, which doesn't allow people the choice to get revived or use a wheel of destiny. Anyone got ideas?
Bumped once
Re: Help finding Death Instance Code?
You are not notified of "losing exp" at all. It is standard to lose EXP, it's just a part of the game. As for the windows/notifications, these are client-sided and cannot be changed (functionality anyway) on the server-side. The safety charm checks are in playerDead, as you already noted.
You "die" when your HP is 0. It just calls playerDead to handle everything after you died (called from checks within setHp).
Also, this would go in the Help section of either Server Developments or Other Developments, it's not really a discussion. xD
EDIT: The window when it says you can get warped to the same map? That client-side checks for items to do so. When you click OK, on the client side it just sends a ChangeMapHandler request like usual, nothing special. What exactly are you looking for or plan to do?
Re: Help finding Death Instance Code?
Ahh, I see. Figures why I couldn't find it. I wanted to make it so that when you die you're sent back to the map of my choosing (possibly map 1 or an unused event map) every time.
Do you think it would be possible for me to change the item that the safety charm checks for to be an undroppable item and give it to everyone at the start of their game, then I can mess with what safety charms do to tele you back to where I want?
Edit: and my bad about not posting to the help section
Re: Help finding Death Instance Code?
Quote:
Originally Posted by
Drummerboii
Ahh, I see. Figures why I couldn't find it. I wanted to make it so that when you die you're sent back to the map of my choosing (possibly map 1 or an unused event map) every time.
Do you think it would be possible for me to change the item that the safety charm checks for to be an undroppable item and give it to everyone at the start of their game, then I can mess with what safety charms do to tele you back to where I want?
Edit: and my bad about not posting to the help section
Safety charms just let you keep your EXP. The Wheel of Destiny (i think that is the name) is the item which handles you returning to the same map. When it calls the ChangeMapHandler upon your death and checks for that byte (or you do an item check or bool), you can change their map to whatever you'd like instead of the returnMap sent to the handler.
Re: Help finding Death Instance Code?
Quote:
Originally Posted by
Eric
Safety charms just let you keep your EXP. The Wheel of Destiny (i think that is the name) is the item which handles you returning to the same map. When it calls the ChangeMapHandler upon your death and checks for that byte (or you do an item check or bool), you can change their map to whatever you'd like instead of the returnMap sent to the handler.
Hey I sent you a pm, but yeah I don't actually know how to go about changing that. I'll keep looking into it and hopefully figure it out
Re: Help finding Death Instance Code?
bumpin. I clarified what I'm looking for in the original post