Jump to content
  • 0

Custom item to make mobs agressive


care1190

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.01
  • Content Count:  31
  • Reputation:   1
  • Joined:  11/12/18
  • Last Seen:  

Hi 

im looking to make a custom item that when its used makes pasive mobs agressive for certain time, its there something like that?

Edited by care1190
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  790
  • Reputation:   225
  • Joined:  01/30/13
  • Last Seen:  

Not easily, but if you know to code then the easiest approach is to create a new skill and make the item use that skill. The skill then needs be implemented in:

int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, t_tick tick, int flag)

And need some code along those lines:

if (!status_has_mode(&dstmd->status,MD_AGGRESSIVE))
	sc_start4(src, bl, SC_MODECHANGE, 100, 1, 0, MD_AGGRESSIVE, 0, 60000);

 

Link to comment
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.   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...