heya, this is my second npc anim/drop release i will realease more later
link to wyverns-->[Only registered and activated users can see links. ]
to make this better make sure you have spirit shields and sigils:O
also this snippet to make the sigils work with the blessed spirit shield [Only registered and activated users can see links. ]
difficulty 1/10 -its copy and paste..-
step 1.
open up npchandler.java
ok search for
Code:
public boolean switchesAttackers
and add this under one of the returns
Code:
case 1248://shades attack start -elf run1
case 1241:
case 1250:
case 1246:
what does this do?:its make the npc switch attack types.
next search for
Code:
public static int getAttackEmote(int i)
and add this
Code:
case 1248://shades attack start -elf run1
case 1241:
case 1250:
case 1246:
if (npcs[i].attackType == 0)
return 1284;//shades attk end *elf
if (npcs[i].attackType == 2)
return 1283;
what does this do?: it adds the attack emote to the npc for attacktype == 0 being meele
and attacktype == 2 for being mage
next! search for
Code:
public int getDeadEmote(int i)
and add
Code:
case 1248://shades death start -elf run1
case 1241:
case 1250:
case 1246:
return 1287;
what does this do?:
this adds the death emote to the npc
next! search for
Code:
public void loadSpell(int i)
and add this
Code:
case 1248:
case 1241:
case 1250:
case 1246:
if(Misc.random(10) > 7){
npcs[i].projectileId = 330;
npcs[i].endGfx = 400;
npcs[i].attackType = 2;
startAnimation(1283, i);
} else {
startAnimation(1284, i);
npcs[i].attackType = 0;
}
break;
what does this do?: this adds the spell gfx and anim.
note this is not correct projectile id's i could not find them if you know the real ones please tell me now save and close npchandler.java
and open up npcspawn.cfg/ spawn-config
just add these
ok no open commands.java and add this with the rest
Code:
if (playerCommand.startsWith("spirit")) {//teletowyv
c.teleX = 2463;
c.teleY = 4777;
c.getPA().spellTeleport(2463, 4777, 0);
c.sendMessage("each shade drops a diffrent sigil and a blessed shield");
c.sendMessage("<col=138>gl, and use the sigil on the shield ;o : <img=2>king elf");}
ok now your done next step is optional
this if you want it to be multi combat
open player.java and find