Thread: Dragons and summoning

Results 1 to 2 of 2
  1. #1 Dragons and summoning 
    Registered Member
    Join Date
    Jul 2011
    Posts
    72
    Thanks given
    0
    Thanks received
    10
    Rep Power
    8
    Just a couple of things here that i need help with...

    Please dont say search bar, because i looked all over..

    1. How do i make dragons use dragon-fire? Rite now, they only attack with melee..

    2. How am i to go about to make summoning npc vs npc and npc vs playerwork? i want my summoning npc's to attack other npc's and attack players.

    Any help would be appreaciated!

    happy newyear!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Oct 2010
    Age
    30
    Posts
    612
    Thanks given
    20
    Thanks received
    7
    Rep Power
    9
    in NPCHandler.java
    Under:
    public void loadSpell(int i) {



    case 50:
    int r5 = 0;
    if (goodDistance(npcs[i].absX, npcs[i].absY, Server.playerHandler.players[npcs[i].killerId].absX, Server.playerHandler.players[npcs[i].killerId].absY, 2))
    r5 = Misc.random(5);
    else
    r5 = Misc.random(3);
    if (r5 == 0) {
    npcs[i].projectileId = 393; //red
    npcs[i].attackType = 3;
    } else if (r5 == 1) {
    npcs[i].projectileId = 394; //green
    npcs[i].attackType = 2;
    if(c.poisonDamage <= 0) {
    c.getPA().appendPoison(8);
    }
    } else if (r5 == 2) {
    npcs[i].projectileId = 395; //white
    npcs[i].attackType = 2;
    if(c.freezeTimer <= 0) {
    c.freezeTimer = 19;
    c.sendMessage("You have been Frozen!");
    }
    } else if (r5 == 3) {
    npcs[i].projectileId = 396; //blue
    npcs[i].attackType = 2;
    } else if (r5 == 4) {
    npcs[i].projectileId = -1; //melee
    npcs[i].attackType = 0;
    } else if (r5 == 5) {
    npcs[i].projectileId = -1; //melee
    npcs[i].attackType = 0;
    }
    break;
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Dragons and metal dragons
    By Despised Icon in forum Requests
    Replies: 2
    Last Post: 05-19-2014, 02:33 AM
  2. Replies: 16
    Last Post: 10-09-2012, 10:47 PM
  3. 525 steel dragons and normal dragons
    By Despised Icon in forum Requests
    Replies: 0
    Last Post: 09-30-2010, 02:26 PM
  4. [508] Pet Dragons (Summoning Alternative)
    By Gravediggah in forum Show-off
    Replies: 39
    Last Post: 04-19-2009, 05:52 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •