Jump to content
  • 0
Sign in to follow this  
Saitama

Skill modification monster summon

Question

 

int summons[5] = { 1652, 1657, 1638, 1637, 1634 };
//int summons[5] = { 1020, 1068, 1118, 1500, 1368 };
int class_ = skill_id==AM_SPHEREMINE?1142:summons[skill_lv-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_, "", SZ_SMALL, AI_NONE);
if (md) {
md->master_id = src->id;
md->special_state.ai = (skill_id == AM_SPHEREMINE) ? AI_SPHERE : AI_FLORA;
if( md->deletetimer != INVALID_TIMER )
timer->delete(md->deletetimer, mob->timer_delete);
md->deletetimer = timer->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;

 

 
can anyone help me modify this code to create a monster slave that will follow me through a specified time? for like 1 minute then they will disappear after one minute then you need to summon again.
 
PS: you can include anymonster i'll just edit it but please make it a moving monster. also, they must be aggressive. thanks!

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Ruru , I recommend you to use this kind of hyperlink which is with a git version

,why so ?it can always  keep the correct line after tons of updates :)

https://github.com/HerculesWS/Hercules/blob/bb3afb0/doc/script_commands.txt#L6105

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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