- Katılım
- 6 Mayıs 2022
- Konular
- 30
- Mesajlar
- 252
- Tepkime puanı
- 15
- M2 Yaşı
- 2 yıl 6 ay 28 gün
- Trophy Puan
- 18
- M2 Yang
- 5,054
C++:
///////////////////////
#define MAX_HP__
/////////////////////
#--------------------------------------------------------------------------------------------------------------------#
// cmd_general.cpp AÇ
Arat
switch (subcmd)
{
case SCMD_RESTART_TOWN:
sys_log(0, "do_restart: restart town");
PIXEL_POSITION pos;
Altında Bul
ch->WarpSet(EMPIRE_START_X(ch->GetEmpire()), EMPIRE_START_Y(ch->GetEmpire()));
Hemen altında bul
ch->PointChange(POINT_HP, 50 - ch->GetHP());
//degistir
#ifdef MAX_HP__
ch->PointChange(POINT_HP, ch->GetMaxHP() - ch->GetHP());
ch->PointChange(POINT_SP, ch->GetMaxSP() - ch->GetSP());
#else
ch->PointChange(POINT_HP, 50 - ch->GetHP());
#endif
#--------------------------------------------------------------------------------------------------------------------#
//ARAT
case SCMD_RESTART_HERE:
sys_log(0, "do_restart: restart here");
ch->RestartAtSamePos();
//ch->Show(ch->GetMapIndex(), ch->GetX(), ch->GetY()); //M1000//
//ALTINDA BUL
ch->PointChange(POINT_HP, 50 - ch->GetHP());
//DEGISTIR
#ifdef MAX_HP__
ch->PointChange(POINT_HP, ch->GetMaxHP() - ch->GetHP());
ch->PointChange(POINT_SP, ch->GetMaxSP() - ch->GetSP());
#else
ch->PointChange(POINT_HP, 50 - ch->GetHP());
#endif
ARAT//
#define eFRS_HERESEC 170
DEGISTIR//
#ifdef MAX_HP__
#define eFRS_HERESEC 180
#else
#define eFRS_HERESEC 170
#endif
ARAT//
#define eFRS_TOWNSEC 173
DEGISTIR//
#ifdef MAX_HP__
#define eFRS_TOWNSEC 180
#else
#define eFRS_TOWNSEC 173
#endif
#--------------------------------------------------------------------------------------------------------------------#
#--------------------------------------------------------------------------------------------------------------------#
Kanıt :
Gyazo Screen Video
gyazo.com