Thread: A bit of help needed

Results 1 to 10 of 10
  1. #1 A bit of help needed 
    Donator
    Ashley's Avatar
    Join Date
    Oct 2011
    Age
    29
    Posts
    411
    Thanks given
    175
    Thanks received
    70
    Rep Power
    67
    I need to know where to put the prayer anim and gfx, for when you use on altar I also want it so you can choose how much it puts in altar (how it is on rs) thats not urgent I just wanna know where I'd put gfx

    Also I'd like help how can I make it so an npc like ice strykewyrms and frost drags and stuff are weaker against magic fire attacks?
    Reply With Quote  
     

  2. #2  
    Donator
    Ashley's Avatar
    Join Date
    Oct 2011
    Age
    29
    Posts
    411
    Thanks given
    175
    Thanks received
    70
    Rep Power
    67
    bump
    Reply With Quote  
     

  3. #3  
    Extreme Donator


    Join Date
    Oct 2006
    Posts
    1,370
    Thanks given
    64
    Thanks received
    197
    Rep Power
    426
    http://www.rune-server.org/runescape...altar-gfx.html Check out my prayer release for PI.


    ~flow@hacking . rs
    Reply With Quote  
     

  4. #4  
    Donator
    Ashley's Avatar
    Join Date
    Oct 2011
    Age
    29
    Posts
    411
    Thanks given
    175
    Thanks received
    70
    Rep Power
    67
    Ty, do you know how to make strykewyrms and frost dragons weaker to magic attacks?
    oh yeah also the option to use more then 1
    Reply With Quote  
     

  5. #5  
    Extreme Donator


    Join Date
    Oct 2006
    Posts
    1,370
    Thanks given
    64
    Thanks received
    197
    Rep Power
    426
    Eh, I don't know, but a wild guess would be something like this:

    Add this to combatassistant.java:
    Code:
    	private boolean isWeakToFire(int npcID, int spellID) {
    		int[] fireSpells = {/*Spell ID's of the fire attacks go here */};
    		int[] iceMonsters = {/*NPC ID's of the ice monsters go here */};
    		for (int i = 0; i < fireSpells.length; i++) {
    			if (spellID != i) { //SpellID isn't fire
    				return false;
    			} else { //SpellID is fire
    				if (npcID == i) { //NPCid is ice monster
    					return true;
    				}
    			}
    		}
    		return false;
    	}
    Then find
    Code:
    			} else if (c.projectileStage > 0) { // magic hit damage
    				int damage = Misc.random(c.MAGIC_SPELLS[c.oldSpellId][6]);
    Change
    Code:
    				int damage = Misc.random(c.MAGIC_SPELLS[c.oldSpellId][6]);
    to
    Code:
    				int damage = Misc.random(isWeakToFire(Server.npcHandler.npcs[i].npcId, c.MAGIC_SPELLS[c.oldSpellId][6]) ? c.MAGIC_SPELLS[c.oldSpellId][6] * 2 : c.MAGIC_SPELLS[c.oldSpellId][6]);
    Untested, but it should work. Damage is doubled by the way.


    ~flow@hacking . rs
    Reply With Quote  
     

  6. #6  
    Donator
    Ashley's Avatar
    Join Date
    Oct 2011
    Age
    29
    Posts
    411
    Thanks given
    175
    Thanks received
    70
    Rep Power
    67
    ok Thanks I'll test it out
    Reply With Quote  
     

  7. #7  
    Donator
    Ashley's Avatar
    Join Date
    Oct 2011
    Age
    29
    Posts
    411
    Thanks given
    175
    Thanks received
    70
    Rep Power
    67
    How would I know the spell ids?
    Reply With Quote  
     

  8. #8  
    Donator
    Ashley's Avatar
    Join Date
    Oct 2011
    Age
    29
    Posts
    411
    Thanks given
    175
    Thanks received
    70
    Rep Power
    67
    Bump, I need spell ids for all the fire spells
    Reply With Quote  
     

  9. #9  
    Extreme Donator


    Join Date
    Oct 2006
    Posts
    1,370
    Thanks given
    64
    Thanks received
    197
    Rep Power
    426
    In combat assistant.java, just add this under what I told you to add:
    Code:
    System.out.println("Spell ID: "+c.MAGIC_SPELLS[c.oldSpellId][6];


    ~flow@hacking . rs
    Reply With Quote  
     

  10. #10  
    Donator
    Ashley's Avatar
    Join Date
    Oct 2011
    Age
    29
    Posts
    411
    Thanks given
    175
    Thanks received
    70
    Rep Power
    67
    Oh I don't need to replace anything? :O
    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. Replies: 4
    Last Post: 07-09-2012, 12:59 PM
  2. help needed
    By outlaw in forum Chat
    Replies: 0
    Last Post: 12-24-2010, 12:58 PM
  3. Help needed.
    By darkburak in forum Help
    Replies: 3
    Last Post: 09-25-2009, 09:58 PM
  4. Help needed with 508.
    By armadylx in forum Help
    Replies: 8
    Last Post: 09-22-2009, 10:33 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
  •