Thread: Dragonfire shield

Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11  
    Registered Member
    killamess's Avatar
    Join Date
    Dec 2007
    Age
    30
    Posts
    1,508
    Thanks given
    51
    Thanks received
    284
    Rep Power
    1956
    Quote Originally Posted by Wanted Pker View Post
    Your the idiot, I didn't say that's all i'm going to add, moron.

    I'm going to translate/transform it to defence.

    You couldn't know, you can't program.
    lmfao i think hes better than you, gj needed this couldnt be bothered writing this up.

    [Only registered and activated users can see links. ]
     

  2. #12  
    on fire 163
    Guest
    myns is:
    NPCHandler attackplayer void:
    Code:
    
    						} else if (npcs[NPCID].npcType == 50) {
    							client p = (client) server.playerHandler.players[Player];
    							int random = misc.random(5);
    							if (random == 0 || random == 1) {
    								npcs[NPCID].animNumber = 80; // KBD attack
    								TNUR = 0;
    							} else if (random == 2) {
    								if (p.PGTADfS() == false) {
    									try {
    										p.animation(0, p.absY, p.absX); // Flames
    										client playrrr = (client) server.playerHandler.players[Player];
    										int bonus = misc.random(playrrr.playerBonus[5]);
    										int dragon_bonus = misc.random(848);
    										if (dragon_bonus > bonus) {
    											hitDiff = misc.random(56);
    										}
    											for (int i = 0; i < npcs[NPCID].Killing.length; i++) {
    												client player2 = (client) server.playerHandler.players[i];
    												if ((player2 != null) && (npcs[NPCID].Killing[i] > 0)) {
    												if (player2.PGTADfS() == false) {
    													int x = player2.absX;
    													int y = player2.absY;
    													player2.hitDiff = misc.random(60);
    													player2.updateRequired = true;
    													player2.hitUpdateRequired = true;
    													player2.appearanceUpdateRequired = true;
    													player2.sendMessage("The KBD's flames burn you!");
    												} else {
    													player2.sendMessage("Your shield blocked the KBD's flames.");
    												}
    											}
    										}
    									} catch (Exception e) {
    										e.printStackTrace();
    									}
    								} else {
    									p.animation(0, p.absY, p.absX); // Flames
    									p.sendMessage("Your shield blocked the KBD's flames.");
    									hitDiff = (int) (hitDiff / 2);
    								}
    								npcs[NPCID].animNumber = 81; // Dragon breath attack
    								TNUR = 2;
    							} else {
    								npcs[NPCID].animNumber = 91; // KBD attack
    								TNUR = 0;
    							}
    Client:
    Code:
    	public boolean PGTADfS() {
    		if (playerEquipment[playerShield] == 15185 || playerEquipment[playerShield] == 1540) {
    			return true;
    		} else {
    			return false;
    		}
    	}
    NOW tell me why u did only anti dragon shield without the dfs and u still call ur title dragonfire shield?
     

  3. #13  
    I LOVE CHEESE


    Join Date
    Oct 2007
    Age
    26
    Posts
    1,153
    Thanks given
    7
    Thanks received
    8
    Rep Power
    104
    Because not every1 use silab client so not every1 has same dfs id and was a mistake forgot to add anti-
    anyways whop cares ur npchandler lol?


     

  4. #14  
    Registered Member h a h a's Avatar
    Join Date
    Dec 2007
    Age
    29
    Posts
    282
    Thanks given
    0
    Thanks received
    2
    Rep Power
    21
    nice but i wornt use coz i can't get my NPCs to hit higher than like 10 =\
    [Only registered and activated users can see links. ]
     

  5. #15  
    I LOVE CHEESE


    Join Date
    Oct 2007
    Age
    26
    Posts
    1,153
    Thanks given
    7
    Thanks received
    8
    Rep Power
    104
    go to :
    Code:
    public boolean AttackPlayer(int NPCID) {
    and with all ur other npc add this:
    Code:
    if (npcs[NPCID].npcType == ##) {
                                                             hitDiff = 0 + misc.random(@@);
    							npcs[NPCID].animNumber = 0x326; 
    }
    replace ## with npc id
    replace @@ with max hit


     

Page 2 of 2 FirstFirst 12

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
  •