Thread: 317 PI Dragons and firebreath

Results 1 to 3 of 3
  1. #1 317 PI Dragons and firebreath 
    Registered Member
    Join Date
    Jun 2014
    Posts
    48
    Thanks given
    1
    Thanks received
    1
    Rep Power
    13
    Hi there,

    Does anyone know what the number for the attack emote when a dragon breaths fire? I'm guessing the actual flame is a well placed gfx and if anyone knew that too it would be great!
    Finally, if anyone knows how to add a defence emote (such as shying away from an attack) it would be awesome :3
    Sorry, I know I'm asking a lot, but I'm not sure where to find this information otherwise!

    Thanks,
    Baylo
    Reply With Quote  
     

  2. #2  
    Registered Member 2nubs1cup's Avatar
    Join Date
    Jan 2013
    Posts
    972
    Thanks given
    77
    Thanks received
    90
    Rep Power
    15
    Code:
    if (npcs[i].attackType == 3) { //fire breath
    					int anti = c.getPA().antiFire();
    					if (anti == 0) {
    						damage = Misc.random(30) + 10;
    						c.sendMessage("You are badly burnt by the dragon fire!");
    					} else if (anti == 1)
    						damage = Misc.random(20);
    					else if (anti == 2)
    						damage = Misc.random(5);
    					if (c.playerLevel[3] - damage < 0)
    						damage = c.playerLevel[3];
    					c.gfx100(npcs[i].endGfx);
    				}
    				handleSpecialEffects(c, i, damage);
    				c.logoutDelay = System.currentTimeMillis(); // logout delay
    				//c.setHitDiff(damage);
    				c.handleHitMask(damage);
    				c.playerLevel[3] -= damage;
    					if (c.vengOn) {
    						appendNPCVeng(c, i, damage);
    					}
    				c.getPA().refreshSkill(3);
    				c.updateRequired = true;
    				//c.setHitUpdateRequired(true);	
    			}
    		}
    	}
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2014
    Posts
    48
    Thanks given
    1
    Thanks received
    1
    Rep Power
    13
    Thanks for that - sorry, it's my fault as I didn't explain properly. I've already added that for the cases I needed, but if you look at that code it uses some endGfx which actually uses a three burst flame coming out of the dragon's back on my server 0.o
    does it look any different to you?
    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. [REQ] 317 Pi source and client
    By arceus in forum Requests
    Replies: 1
    Last Post: 07-27-2014, 07:23 PM
  2. BLU-PK 317 (PI) source and client
    By POT-PKERZZ in forum Downloads
    Replies: 37
    Last Post: 03-02-2014, 03:26 PM
  3. 317 PI handcannon and chaotic crossbow
    By _Patrick_ in forum Help
    Replies: 3
    Last Post: 09-14-2013, 07:16 PM
  4. 317 PI client and server
    By killzoz in forum Help
    Replies: 1
    Last Post: 10-19-2012, 11:11 AM
  5. Replies: 2
    Last Post: 11-13-2011, 10:45 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
  •