Jump to content

Reqkid

Members
  • Content Count

    4
  • Joined

  • Last visited

Posts posted by Reqkid


  1. Hi! I hope that it is right.. But how could I limit it that the max allowed spawn of the summoned mobs is 6.

     

    case PR_SUMMON_SPIRIT:		{			int summon1[5]={ 2083, 2084, 2085, 2086, 2087};			int class_ = skillid==PR_SUMMON_SPIRIT?summon1[skilllv-1]:summon1[skilllv-1];			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_,"");			if (md) {				md->master_id = src->id;				md->special_state.ai = 1;				if( md->deletetimer != INVALID_TIMER )					delete_timer(md->deletetimer, mob_timer_delete);				md->deletetimer = add_timer (gettick() + skill_get_time(skillid,skilllv), mob_timer_delete, md->bl.id, 0);				mob_spawn (md); //Now it is ready for spawning.				sc_start4(&md->bl, SC_MODECHANGE, 100, 1, 0, MD_AGGRESSIVE, 0, 60000);			}		}		break;

     

     

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.