Ehwaz 8 Posted March 27, 2016 (edited) Someone can help me make warmer can't heal Emperium. i tried but not working Edited March 27, 2016 by Hirist Quote Share this post Link to post Share on other sites
0 Ridley 295 Posted March 28, 2016 in map/skill.c find case UNT_WARMER: { // It has effect on everything, including monsters, undead property and demon int hp = 0; if( ssc && ssc->data[SC_HEATER_OPTION] ) hp = tstatus->max_hp * 3 * sg->skill_lv / 100; else hp = tstatus->max_hp * sg->skill_lv / 100; if( tstatus->hp != tstatus->max_hp ) clif->skill_nodamage(&src->bl, bl, AL_HEAL, hp, 0); if( tsc && tsc->data[SC_AKAITSUKI] && hp ) hp = ~hp + 1; status->heal(bl, hp, 0, 0); sc_start(ss, bl, type, 100, sg->skill_lv, sg->interval + 100); } change to case UNT_WARMER: { struct mob_data *md = BL_CAST(BL_MOB, bl); if( md && md->class_ == MOBID_EMPELIUM ) break; // It has effect on everything, including monsters, undead property and demon int hp = 0; if( ssc && ssc->data[SC_HEATER_OPTION] ) hp = tstatus->max_hp * 3 * sg->skill_lv / 100; else hp = tstatus->max_hp * sg->skill_lv / 100; if( tstatus->hp != tstatus->max_hp ) clif->skill_nodamage(&src->bl, bl, AL_HEAL, hp, 0); if( tsc && tsc->data[SC_AKAITSUKI] && hp ) hp = ~hp + 1; status->heal(bl, hp, 0, 0); sc_start(ss, bl, type, 100, sg->skill_lv, sg->interval + 100); } 1 Ehwaz reacted to this Quote Share this post Link to post Share on other sites
0 Ehwaz 8 Posted March 28, 2016 (edited) undifined 'hp'; i tried: struct mob_data *md = BL_CAST(BL_MOB, bl); if( md && md->class_ == MOBID_EMPELIUM ) hp = 0; got error error C2143: syntax error : missing ';' before 'type' error C2065: 'md' : undeclared identifier error C2223: left of '->class_' must point to struct/union Edited March 28, 2016 by Hirist Quote Share this post Link to post Share on other sites
0 Cretino 48 Posted March 31, 2016 Just do what @@Ridley say. It'll work. Quote Share this post Link to post Share on other sites
0 Ehwaz 8 Posted March 31, 2016 Just do what @@Ridley say. It'll work. skill.c(12555): error C2143: syntax error : missing ';' before 'type' skill.c(12557): error C2065: 'hp' : undeclared identifier skill.c(12559): error C2065: 'hp' : undeclared identifier skill.c(12561): error C2065: 'hp' : undeclared identifier skill.c(12562): error C2065: 'hp' : undeclared identifier skill.c(12563): error C2065: 'hp' : undeclared identifier skill.c(12564): error C2065: 'hp' : undeclared identifier I tried Quote Share this post Link to post Share on other sites
0 Cretino 48 Posted March 31, 2016 I think the problem is your compiler, try this: In 'map/skill.c' Search for: case UNT_WARMER: { // It has effect on everything, including monsters, undead property and demon int hp = 0; if( ssc && ssc->data[SC_HEATER_OPTION] ) hp = tstatus->max_hp * 3 * sg->skill_lv / 100; else hp = tstatus->max_hp * sg->skill_lv / 100; if( tstatus->hp != tstatus->max_hp ) clif->skill_nodamage(&src->bl, bl, AL_HEAL, hp, 0); if( tsc && tsc->data[SC_AKAITSUKI] && hp ) hp = ~hp + 1; status->heal(bl, hp, 0, 0); sc_start(ss, bl, type, 100, sg->skill_lv, sg->interval + 100); } break; Replace: case UNT_WARMER: { // It has effect on everything, including monsters, undead property and demon int hp = 0; struct mob_data *md = BL_CAST(BL_MOB, bl); if (md && md->class_ == MOBID_EMPELIUM) break; if( ssc && ssc->data[SC_HEATER_OPTION] ) hp = tstatus->max_hp * 3 * sg->skill_lv / 100; else hp = tstatus->max_hp * sg->skill_lv / 100; if( tstatus->hp != tstatus->max_hp ) clif->skill_nodamage(&src->bl, bl, AL_HEAL, hp, 0); if( tsc && tsc->data[SC_AKAITSUKI] && hp ) hp = ~hp + 1; status->heal(bl, hp, 0, 0); sc_start(ss, bl, type, 100, sg->skill_lv, sg->interval + 100); } break; 1 Ehwaz reacted to this Quote Share this post Link to post Share on other sites
0 Ehwaz 8 Posted March 31, 2016 It's work, thank you Quote Share this post Link to post Share on other sites
Someone can help me make warmer can't heal Emperium.
i tried but not working
Edited by HiristShare this post
Link to post
Share on other sites