Jump to content
  • 0

Can a NPC attack?


nicheni

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Reputation:   0
  • Joined:  06/06/13
  • Last Seen:  

Im thinking if i could create an npc that could attack an player, like a soldier in a city, that attacks an robber (player).

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   230
  • Joined:  03/20/12
  • Last Seen:  

Not that i heard of.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1131
  • Joined:  05/27/12
  • Last Seen:  

Only 'npcskill', which you could create an OnTouch label for:

*npcskill <skill id>,<skill lvl>,<stat point>,<NPC level>;

*npcskill "<skill name>",<skill lvl>,<stat point>,<NPC level>;

This command causes the attached NPC object to cast a skill on the attached

player. The skill will have no cast time or cooldown. The player must be

within the default skill range or the command will fail silently.

The "stat point" parameter temporarily sets all NPC stats to the given value,

and "NPC level" is the temporary level of the NPC (used in some skills).

Neither value can be greater than the max level defined in config, and will

not work properly if the NPC has a mob sprite.

// Casts Level 10 Heal on the attached player, calculated with

// all stats 99 and base level 60.

npcskill "AL_HEAL",10,99,60;

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...