Thread: Lmfao, wtf?

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Lmfao, wtf? 
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    660
    Discord
    View profile
    Rep Power
    5000
    Well I was just looping through set equipment and saw this, peter told me to post it so I did, I didn't even know there were items there lol:



    My code:
    Code:
    	public void setAllDuel() {
    		for(int i = 0; i < 14; i ++) {
    			dueler.getActionAssistant().duelEquipment(dueler.playerEquipment[i], dueler.playerEquipmentN[i], i);
    			opponent.getActionAssistant().duelEquipment(opponent.playerEquipment[i], opponent.playerEquipmentN[i], i);
    		}
    	}
    Any ideas how fix it?
     

  2. #2  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,784
    Discord
    View profile
    Rep Power
    5000
    It's easy to fix.

    look at your loop.

     

  3. #3  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    660
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Luke132 View Post
    It's easy to fix.

    look at your loop.
    Erm... yeah but I didnt know theyre were items there ?

    What's wrong with my loop ?
     

  4. #4  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,784
    Discord
    View profile
    Rep Power
    5000
    Code:
    	public void setAllDuel() {
    		for(int i = 0; i < 14; i ++) {
    			if(i == 6 || i == 8 || i == 11 || i == 13) {
    				continue;
    			}
    			dueler.getActionAssistant().duelEquipment(dueler.playerEquipment[i], dueler.playerEquipmentN[i], i);
    			opponent.getActionAssistant().duelEquipment(opponent.playerEquipment[i], opponent.playerEquipmentN[i], i);
    		}
    	}
    np

     

  5. #5  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    660
    Discord
    View profile
    Rep Power
    5000
    Lol forgot about the blank spaces, thanks

    Added you on msn.
     

  6. #6  
    Salvation
    Guest
    In the equipment interface there are a few extra slots that can be written to. Find out which slots these are and quite simply make sure your loop skips them.

    Edit: Didn't see it was already answered, my bad...
     

  7. #7  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    660
    Discord
    View profile
    Rep Power
    5000
    Np lol but this could be useful for other things >.>
     

  8. #8  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,784
    Discord
    View profile
    Rep Power
    5000
    Jagex are gonna release trinkets and clan tabards like WoW IMO!!!! that's what the extra slots are [email protected]@@

     

  9. #9  
    Salvation
    Guest
    Quote Originally Posted by Vastico View Post
    Np lol but this could be useful for other things >.>
    Yeah I considered maybe for programming something like duel wielding? In the slot underneath the weapon, perhaps could be used to equip a second item if there is already equipment in the first. (I suppose however if you're duel wielding you'd just send it to the shield slot... meh, who knows... just a though)
     

  10. #10  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    660
    Discord
    View profile
    Rep Power
    5000
    Hmm I got a good base now just gotta do staking items imo =\

    But yeah luke talk about leeching off WoW lol
     

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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •