Lol idk if this will be a helpful topic but it might come in handy. open up npc.xml with notepad in this tutorial i will use goblins as an example it should look like this:
where it says ATTACK type="melee" change it to skill when your done it should look like thisCode:<NPC id="11" name="STR:NPC_NAME_11" desc="STR:NPC_DESC_11" meshname="goblin" scale="1.0 1.0 1.0" grade="regular" max_hp="30" max_ap="50" int="4" agility="4" view_angle="15" dc="5" offensetype="1" dyingtime="5"> <COLLISION radius="30" height="110" /> <ATTACK type="melee" range="150" weaponitem_id="300011" /> <SPEED default="300" /> <DROP table="G11" /> </NPC>
the npc wont spam skills because there is no skills assigned to this npc so go into zskill and find a skill that you want to add to it. Lets give it the skill Blizzard greater the skill id is 451 in my zskill. so now add it to the npcCode:<NPC id="11" name="STR:NPC_NAME_11" desc="STR:NPC_DESC_11" meshname="goblin" scale="1.0 1.0 1.0" grade="regular" max_hp="30" max_ap="50" int="4" agility="4" view_angle="15" dc="5" offensetype="1" dyingtime="5"> <COLLISION radius="30" height="110" /> <ATTACK type="skill" range="150" weaponitem_id="300011" /> <SPEED default="300" /> <DROP table="G11" /> </NPC>
when your done it should look like this:
depending on the skill's delay your npc will spam it slow or fast but all the attacks will be skills there wont be a slash unless its a slash skill, to change the delay go into zskill and edit it. well lol i guess this is good for making a hard npc/quest.Code:<NPC id="11" name="STR:NPC_NAME_11" desc="STR:NPC_DESC_11" meshname="goblin" scale="1.0 1.0 1.0" grade="regular" max_hp="30" max_ap="50" int="4" agility="4" view_angle="15" dc="5" offensetype="1" dyingtime="5"> <COLLISION radius="30" height="110" /> <ATTACK type="melee" range="150" weaponitem_id="300011" /> <SPEED default="300" /> <SKILL id="451" /> <DROP table="G11" /> </NPC>


Reply With Quote![[Tut]Making NPC mobs spam skills](http://ragezone.com/hyper728.png)


