Jump to content
  • 0

Summon monster attack


Question

Posted (edited)

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...