Jump to content
  • 0
Sign in to follow this  
Juicy J

item wielding problem

Question

Hey im using xyle base and some items can't be worn.

i click on them and they dont even go into an itemslot, and i get this error in my source when running after i click

[code]
[3/16/12 9:24 PM]: java.lang.ArrayIndexOutOfBoundsException: -1
[3/16/12 9:24 PM]: at server.rs2.items.ItemAssistant.wearItem(ItemAssistant
.java:1226)
[3/16/12 9:24 PM]: at server.engine.packet.WearItem.processPacket(WearItem.
java:34)
[3/16/12 9:24 PM]: at server.rs2.entity.player.PacketHandler.processPacket(
PacketHandler.java:139)
[3/16/12 9:24 PM]: at server.rs2.entity.player.Client.processQueuedPackets(
Client.java:1078)
[3/16/12 9:24 PM]: at server.rs2.entity.player.PlayerHandler.process(Player
Handler.java:137)
[3/16/12 9:24 PM]: at server.Server.main(Server.java:141)
[/code]

anyone know how to fix so i can wear them?!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
chances are is that you're reading the slot as -1

so when it tries to access the items array using a negative value it's going to crash

to fix just check it is greater then 0

Share this post


Link to post
Share on other sites
  • 0
how do i make it greater then 0?

Share this post


Link to post
Share on other sites
Sign in to follow this  

×