Thread: smite help

Results 1 to 7 of 7
  1. #1 smite help 
    Registered Member
    Join Date
    Dec 2013
    Posts
    193
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    hey guys i added this to a special attack and it drops my prayer to 0 and not my opponent how do i make it do my opponents prayer to 0 and not mine

    c.playerLevel[5] = 0;
    c.getCombat().resetPrayers();
    c.getPA().refreshSkill(5);

    i wanna make this take my opponents prayer to 0 and not mine
    Reply With Quote  
     

  2. #2  
    Registered Member
    Edd -'s Avatar
    Join Date
    Jul 2011
    Posts
    664
    Thanks given
    62
    Thanks received
    43
    Rep Power
    84
    combatassistant.java

    find
    Code:
    switch(c.specEffect) {
    Code:
    		case 6:
    				if (damage > 0) {
    					o.playerLevel[5] -= o.playerLevel[5] * .99;
    					o.sendMessage("your prayer points drop!");
    					if (o.playerLevel[5] < 1)
    						o.playerLevel[5] = 1;
    					o.getPA().refreshSkill(5);
    				}
    			break;
    Find
    Code:
    public void activateSpecial(int weapon, int i){
    add that case then for your weapon you want to drain spec with

    under this
    Code:
    case 1305: // dragon long
    case 123: //ID of weapon, you can also add a GFX to this and animation to this
    Code:
    		c.specEffect = 6;
    			c.hitDelay = getHitDelay(c.getItems().getItemName(c.playerEquipment[c.playerWeapon]).toLowerCase());
    			c.specDamage = 0.0;//edit
    			c.specAccuracy = 0.0;//edit
    			break;
    Code:
    c.startAnimation(id);
    			c.gfx100(id);
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Dec 2013
    Posts
    193
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    Thank you so much Rep++ thanks man you helped alot
    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    Dec 2013
    Posts
    193
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    dud when i did this it works n compiles but when u did my spec with the bow i dident take away the prayer at all
    Reply With Quote  
     

  6. #5  
    Registered Member
    Edd -'s Avatar
    Join Date
    Jul 2011
    Posts
    664
    Thanks given
    62
    Thanks received
    43
    Rep Power
    84
    Code:
    c.usingBow = true;
    			c.bowSpecShot = 3;
    			c.rangeItemUsed = c.playerEquipment[c.playerArrows];
                            c.projectileStage = 1;
    			c.getItems().deleteArrow();	
    			c.lastWeaponUsed = weapon;
    if its a ranged weapon add that..

    it will definitely work with a melee weapon if you added it right i just tested it.
    Reply With Quote  
     

  7. #6  
    Registered Member
    Join Date
    Dec 2013
    Posts
    193
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    can u make me one with the case 4212 please that drops you opnets prayer to 0 and its a range wepon
    Reply With Quote  
     

  8. #7  
    Registered Member
    Join Date
    Dec 2013
    Posts
    193
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    i can't get the range to work for the weapon
    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. [PI] Weapon smiting? [HELP]
    By Notgower in forum Help
    Replies: 8
    Last Post: 10-08-2013, 09:07 AM
  2. Need gfx help?
    By Beh3moth2 in forum General
    Replies: 1
    Last Post: 04-03-2007, 11:50 AM
  3. GIMP brush help
    By man777 in forum Tutorials
    Replies: 0
    Last Post: 04-03-2007, 03:11 AM
  4. Need help again
    By Zane in forum Showcase
    Replies: 4
    Last Post: 04-02-2007, 09:11 PM
  5. Need help choosing sig
    By Zane in forum Showcase
    Replies: 7
    Last Post: 04-02-2007, 03:14 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
  •