Bringer Posted September 15, 2016 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 748 Reputation: 47 Joined: 03/12/14 Last Seen: Friday at 11:20 AM Share Posted September 15, 2016 (edited) case AM_SPHEREMINE: case AM_CANNIBALIZE: { int summons[5] = { MOBID_G_MANDRAGORA, MOBID_G_HYDRA, MOBID_G_FLORA, MOBID_G_PARASITE, MOBID_G_GEOGRAPHER }; int class_ = skill_id==AM_SPHEREMINE?MOBID_MARINE_SPHERE:summons[skill_lv-1]; int ai = (skill_id == AM_SPHEREMINE) ? AI_SPHERE : AI_FLORA; struct mob_data *md; // Correct info, don't change any of this! [celest] md = mob_once_spawn_sub(src, src->m, x, y, status_get_name(src), class_, "", SZ_SMALL, ai); if (md) { md->master_id = src->id; md->special_state.ai = (enum mob_ai)ai; if( md->deletetimer != INVALID_TIMER ) delete_timer(md->deletetimer, mob_timer_delete); md->deletetimer = add_timer (gettick() + skill_get_time(skill_id,skill_lv), mob_timer_delete, md->bl.id, 0); mob_spawn (md); //Now it is ready for spawning. } } break; case AM_CANNIBALIZE: case AM_SPHEREMINE: { int c=0; int summons[5] = { MOBID_G_MANDRAGORA, MOBID_G_HYDRA, MOBID_G_FLORA, MOBID_G_PARASITE, MOBID_G_MANDRAGORA }; int maxcount = (skill_id==AM_CANNIBALIZE)? 6-skill_lv : skill_get_maxcount(skill_id,skill_lv); int mob_class = (skill_id==AM_CANNIBALIZE)? summons[skill_lv-1] :MOBID_MARINE_SPHERE; if(battle_config.land_skill_limit && maxcount>0 && (battle_config.land_skill_limit&BL_PC)) { i = map_foreachinmap(skill_check_condition_mob_master_sub, sd->bl.m, BL_MOB, sd->bl.id, mob_class, skill_id, &c); if(c >= maxcount || (skill_id==AM_CANNIBALIZE && c != i && battle_config.summon_flora&2)) { //Fails when: exceed max limit. There are other plant types already out. clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); return false; } } break; } i want to change it Per Level There will 2 monster Monster will Increase by Level Edited September 21, 2016 by DrewxD Quote Link to comment Share on other sites More sharing options...
0 Bringer Posted September 21, 2016 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 748 Reputation: 47 Joined: 03/12/14 Last Seen: Friday at 11:20 AM Author Share Posted September 21, 2016 BUMP Quote Link to comment Share on other sites More sharing options...
0 Stolao Posted September 21, 2016 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: April 25 Share Posted September 21, 2016 int maxcount = (skill_id==AM_CANNIBALIZE)? 6-skill_lv : skill_get_maxcount(skill_id,skill_lv); Edit that line Quote Link to comment Share on other sites More sharing options...
0 Bringer Posted September 21, 2016 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 748 Reputation: 47 Joined: 03/12/14 Last Seen: Friday at 11:20 AM Author Share Posted September 21, 2016 int maxcount = (skill_id==AM_CANNIBALIZE)? 6-skill_lv : skill_get_maxcount(skill_id,skill_lv); Edit that line how to make like ? "Lv 1 - Summons 2 Monsters (LK + Prof)", "Lv 2 - Summons 3 Monsters (LK + Prof + Sniper)", "Lv 3 - Summons 4 Monsters (LK + Prof + Sniper + Stalker)", "Lv 4 - Summons 5 Monsters (LK + Prof + Sniper + Stalker + Creator)", "Lv 5 - Summons 6 Monsters (LK + Prof + Sniper + Stalker + Creator + Champion)", Quote Link to comment Share on other sites More sharing options...
Question
Bringer
i want to change it
Per Level There will 2 monster
Monster will Increase by Level
Edited by DrewxDLink to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.