Thread: [PI] Turmoil glitched?

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 [PI] Turmoil glitched? 
    Member [PI] Turmoil glitched? Market Banned
    Crispytoast's Avatar
    Join Date
    Nov 2010
    Posts
    448
    Thanks given
    19
    Thanks received
    42
    Rep Power
    17
    Code:
    			case 70094: // turmoil
    			c.getCombat().activatePrayer(25);
    			c.playerLevel[5] = 95;
    			c.gfx100(1224);
    			c.startAnimation(3926);
    			break;

    So by this case, it allows players with like 94 or lower prayer(out of 99) to use turmoil and then it raises there prayer.

    Example:

    Crispytoast has 60 prayer. Crispytoast clicks on turmoil, even though he doesnt have the level to use, once he clicks it; he now has 95/60 prayer. Why is that?

    If you can FIX i will send you 2 usd in paypal! PLEASE LEAVE YOUR PAYPAL ADRESS WITH YOUR FIX!
    Reply With Quote  
     

  2. #2  
    Member [PI] Turmoil glitched? Market Banned
    Crispytoast's Avatar
    Join Date
    Nov 2010
    Posts
    448
    Thanks given
    19
    Thanks received
    42
    Rep Power
    17
    Waiting for help...
    Reply With Quote  
     

  3. #3  
    Номер 1


    Leanbow's Avatar
    Join Date
    Feb 2008
    Posts
    5,895
    Thanks given
    1,564
    Thanks received
    2,624
    Rep Power
    5000
    Code:
    			case 70094: // turmoil
    			c.getCombat().activatePrayer(25);
    			c.gfx100(1224);
    			c.startAnimation(3926);
    			break;
    Reply With Quote  
     

  4. #4  
    Extreme Donator


    Join Date
    Nov 2009
    Posts
    1,421
    Thanks given
    559
    Thanks received
    266
    Rep Power
    236
    If you want to make it better, you could change the button activation to:
    Code:
     		case 70094: // turmoil
    			c.getCombat().activatePrayer(25);
    			break;
    Then open combatassistant, search "case 25:" (Asuming you're changing Piety into Turmoil if not find the case and replace the code with this:


    Code:
    if (c.prayerActive[i] == false) {
    			c.gfx100(1224);
    			c.startAnimation(3926);
    						for (int j = 0; j < atkPray.length; j++) {
    							if (atkPray[j] != i) {
    								c.prayerActive[atkPray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[atkPray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < strPray.length; j++) {
    							if (strPray[j] != i) {
    								c.prayerActive[strPray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[strPray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < rangePray.length; j++) {
    							if (rangePray[j] != i) {
    								c.prayerActive[rangePray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[rangePray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < magePray.length; j++) {
    							if (magePray[j] != i) {
    								c.prayerActive[magePray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[magePray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < defPray.length; j++) {
    							if (defPray[j] != i) {
    								c.prayerActive[defPray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[defPray[j]], 0);
    							}								
    						}
    					}
    					break;
    This makes it so if you activate the prayer and the player can use it, then it will do the animation and gfx. If not, it wont do it. The method posted above, it will do the emote everytime you click the prayer even if you aren't 95 prayer or are activating/deactivating it.
    Reply With Quote  
     

  5. #5  
    Member [PI] Turmoil glitched? Market Banned
    Crispytoast's Avatar
    Join Date
    Nov 2010
    Posts
    448
    Thanks given
    19
    Thanks received
    42
    Rep Power
    17
    Quote Originally Posted by leanbow12 View Post
    Code:
    			case 70094: // turmoil
    			c.getCombat().activatePrayer(25);
    			c.gfx100(1224);
    			c.startAnimation(3926);
    			break;
    [email protected]
    WOOOT you fixed it, however now for anyone that cant use the piety, it still does animation...fix that and ill send over a payment
    Reply With Quote  
     

  6. #6  
    Registered Member Santi Cazorla's Avatar
    Join Date
    Aug 2009
    Posts
    1,137
    Thanks given
    258
    Thanks received
    55
    Rep Power
    7
    make it return if they dont have enough EXP not level, because when your prayer drains you wont be able to use it.
    Reply With Quote  
     

  7. #7  
    Extreme Donator


    Join Date
    Nov 2009
    Posts
    1,421
    Thanks given
    559
    Thanks received
    266
    Rep Power
    236
    Lol just do what I said. Works fine, don't need to pay people for everything lols.
    Reply With Quote  
     

  8. #8  
    Номер 1


    Leanbow's Avatar
    Join Date
    Feb 2008
    Posts
    5,895
    Thanks given
    1,564
    Thanks received
    2,624
    Rep Power
    5000
    dont worry fixing it he will scam you, he scammed me 1 time already
    Reply With Quote  
     

  9. #9  
    Extreme Donator


    Join Date
    Nov 2009
    Posts
    1,421
    Thanks given
    559
    Thanks received
    266
    Rep Power
    236
    Lol I don't want any cash but yeah I posted the better way to do it.
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Sep 2009
    Posts
    171
    Thanks given
    44
    Thanks received
    1
    Rep Power
    1
    It's giving them 95 prayer not requesting they have 95 to use it, if I'm correct.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. G.E FIX ^_^ - fix your glitched ge here ^_^
    By Clienthax in forum Tutorials
    Replies: 65
    Last Post: 07-05-2012, 10:41 PM
  2. My account is glitched
    By Mikee in forum Forum Related Help
    Replies: 1
    Last Post: 07-27-2010, 12:24 PM
  3. name is glitched????help plz [rep]
    By rsnerd in forum Help
    Replies: 4
    Last Post: 03-21-2010, 04:11 AM
  4. Glitched NPC combat
    By AAA Mods in forum Help
    Replies: 3
    Last Post: 08-18-2009, 04:55 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
  •