Thread: Range Problem 317 PI

Results 1 to 3 of 3
  1. #1 Range Problem 317 PI 
    Banned
    Join Date
    Jan 2012
    Posts
    265
    Thanks given
    6
    Thanks received
    14
    Rep Power
    0
    On my server when you are ranging and then switch to a weapon it stats the message, "You have run out of arrows."

    I looked in combatassistant and found the follow. Anyone know a fix for this issue?


    Code:
    				if (!c.usingCross
    						&& !usingArrows
    						&& c.usingBow
    						&& (c.playerEquipment[Player.playerWeapon] < 4212 || c.playerEquipment[Player.playerWeapon] > 4223)
    						&& !c.usingMagic) {
    					if (c.playerEquipment[Player.playerWeapon] == 15241)
    						c.sendMessage("You have fun out of shots.");
    					else
    						c.sendMessage("You have run out of arrows!");
    					c.stopMovement();
    					c.getCombat().resetPlayerAttack();
    					return;
    				}
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2013
    Posts
    35
    Thanks given
    11
    Thanks received
    4
    Rep Power
    12
    Have you got a method to actually check the amount of arrows a player has? I haven't looked at PI code in a long time but you could do a check like
    if (arrows < 0)
    c.sendMessage("You have run out of arrows!");
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Jan 2012
    Posts
    265
    Thanks given
    6
    Thanks received
    14
    Rep Power
    0
    Well it doesn't change the attack type so even if they have enough it try's to range and go to you can use this item with these arrows.
    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. A Few Problems - 317 PI
    By Sheldon in forum Help
    Replies: 15
    Last Post: 02-13-2014, 07:27 PM
  2. Not sure if this is a client problem! 317 [pi]
    By Bluntarifick in forum Buying
    Replies: 1
    Last Post: 01-04-2013, 12:14 PM
  3. Replies: 0
    Last Post: 11-18-2012, 08:02 PM
  4. crashing problems 317 pi.
    By qpanel in forum Help
    Replies: 5
    Last Post: 07-17-2012, 03:17 PM
  5. Range problem (paying - Pi)
    By Your tits trololololol in forum Requests
    Replies: 0
    Last Post: 09-06-2011, 07:36 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
  •