Jump to content

Resurrection


Guest darkjoy2k2

Recommended Posts

Id like to change the way resurrection works on my server. you die, you let ghost free, you arent teleported to graveyard, must walk to an spirit healer to revive...

i commented the teleportto in RepopAtGraveyard()

now i have to remove the ability from corpse to allow resurrecting the player if he´s near...

how does mangos tell the client "yes you now can resurrect if u want" ?

not sure if its in player.cpp, or do i have to look at the corpse object?

in corpse.h is a hint:

// Value equal client resurrection dialog show radius.
#define CORPSE_RECLAIM_RADIUS 39

but it is only used in

mischandler.cpp line 639

     if (!corpse->IsWithinDistInMap(GetPlayer(), CORPSE_RECLAIM_RADIUS, true))
     return;

setting CORPSE_RECLAIM_RADIUS to -1 works well!

only issue is that it still brings up the resurrection dialogue ingame but nothing happens as u press the button!

but i guess changing the popup of this dialouge is client side, which modding isnt supported here right?

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use