Thread: dragons`

Results 1 to 4 of 4
  1. #1 dragons` 
    Registered Member

    Join Date
    Jun 2007
    Age
    26
    Posts
    3,007
    Thanks given
    52
    Thanks received
    98
    Rep Power
    3208
    how do u make dragons breathe fire when they attack and how do u make it so anti-dragon shield protects?
    Reply With Quote  
     

  2. #2  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    660
    Discord
    View profile
    Rep Power
    5000
    if(!(entity instanceof Player)) {
    NPC n = (NPC) entity;
    if (n.getDefinition().getId() == 50) {
    n.gfx(gfxId);
    }
    }
    if (victim instanceof Player) {
    if (victim.getEquipment().get(Equipment.SLOT_SHIELD) != null) {
    if (victim.getEquipment().get(Equipment.SLOT_SHIELD) != ItemConstants.ANTI_FIRE_SHIELD) {
    victim.hit(500);
    } else {
    victim.hit(maxHit /12);
    }

    somethink leik that.

    if (
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Jun 2007
    Age
    26
    Posts
    3,007
    Thanks given
    52
    Thanks received
    98
    Rep Power
    3208
    IN a way that I can understand rofl
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Feb 2008
    Posts
    384
    Thanks given
    30
    Thanks received
    26
    Rep Power
    0
    if(npcid == DRAGONID) {
    npc.gfx(GFXID);
    if(playershield == SHIELDID) {
    player.hit(Math.random() * 20);
    } else {
    player.hit(Math.random() * 75);
    }
    }

    Something like that. Ofcourse this won't work but you should get the basis of the idea. You would have to add that in where an npc attacks...
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •