Premium Quarel 62 Posted February 23, 2015 Premium Share Posted February 23, 2015 Open cmd_general.cpp Search 2x ch->PointChange(POINT_HP, 50 - ch->GetHP()); Replace ch->PointChange(POINT_HP, ch->GetMaxHP() - ch->GetHP()); 2 5 Link to comment Share on other sites More sharing options...
ahmedhaies 50 Posted December 27, 2015 Share Posted December 27, 2015 and also ch->PointChange(POINT_HP, 50000 + ch->GetHP()); Link to comment Share on other sites More sharing options...
Berke58 97 Posted January 12, 2016 Share Posted January 12, 2016 Nice copy + paste Link to comment Share on other sites More sharing options...
Nero 20 Posted March 8, 2017 Share Posted March 8, 2017 Is possible to make this work only when you respawn back in city? Link to comment Share on other sites More sharing options...
Premium Kameyu 167 Posted September 21, 2017 Premium Share Posted September 21, 2017 Yes, it is. case SCMD_RESTART_TOWN: sys_log(0, "do_restart: restart town"); PIXEL_POSITION pos; if (SECTREE_MANAGER::instance().GetRecallPositionByEmpire(ch->GetMapIndex(), ch->GetEmpire(), pos)) ch->WarpSet(pos.x, pos.y); else ch->WarpSet(EMPIRE_START_X(ch->GetEmpire()), EMPIRE_START_Y(ch->GetEmpire())); ch->PointChange(POINT_HP, ch->GetMaxHP() - ch->GetHP()); // This line ch->DeathPenalty(1); break; Link to comment Share on other sites More sharing options...
Recommended Posts