Jump to content

Kawaii_s

Members
  • Posts

    7
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Kawaii_s's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. @Fruity This helps me out so much!!! Thank you
  2. Hello. I'm trying to write a fully functional cwars script, and have it actually defend the flag and run after players. I need it to read all the equipped items of nearby players into a list and iterate through until it finds the one holding the flag, it then needs to grab what gear they are wearing to attack using the combat triangle. I'm not quite sure how to read the gear of other players, because it's different than reading your own gear. I spent a lot of time reading the API, but can't find any way of possibly doing this. I was wondering if this is something that can be done with OSbots API and if anyone has any examples/hints of how to do this. What I'm trying to do is something like this, however this code is invalid and halts execution of the client.. for(final Player player : getPlayers().getAll()) { if(player.getMethods().getEquipment().getItemInSlot(EquipmentSlot.WEAPON.slot).getName().contains("flag")) { //interact and attack player } }
×
×
  • Create New...