Jump to content
  • 0

Summon monster attack


Nezd

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  07/08/12
  • Last Seen:  

Hello!

I make custom skill, summon mob:

case SS_SUMMON:
 clif_specialeffect(&sd->bl, 344,  AREA);
 {
  int summons[5] = { 2710, 2711, 2712, 2713, 2714 };
  int class_ = summons[skilllv - 1];
  struct mob_data *md;
  // Correct info, don't change any of this! [celest]
  md = mob_once_spawn_sub(src, src->m, 0, 0, status_get_name(src),class_,"");
  if (md) {
md->master_id = src->id;
md->special_state.ai = 2;
if( md->deletetimer != INVALID_TIMER )
 delete_timer(md->deletetimer, mob_timer_delete);
md->deletetimer=add_timer(tick+(skilllv*30000),mob_timer_delete,md->bl.id,0);
mob_spawn (md); //Now it is ready for spawning.
  }
 }

1. All good. But i need summon w/o attack, only skill cast attack. How to make it?

I play with special_state.ai = N; - nothing, try to make mob mode, nothing.

2. Why monsters dont attack summon mob? after take dmg from summon they are attack char, how to fix this ?

Thx.

Edited by Nezd
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.   Paste as plain text instead

  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.

×
×
  • Create New...