Jump to content

braverebel

Members
  • Posts

    1
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

braverebel's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. I know I am rezzing a dead thread, but I just ran into the same issue that the original poster showed, yet all responses missed. The dairy cow has a name (via getName()) of "", and all 4 of it's actions from getAction() is null. I was able to test this by going right next to the dairy cow and using the following code: List<NPC> all = getNpcs().getAll(); for (int i=0;i<all.size();i++){ clog("Npc " + i + ": " + all.get(i).getName() + ", actions : " + stringArrayToString(all.get(i).getActions()),2); } List<NPC> all = getNpcs().getAll(); for (int i=0;i<all.size();i++){ log("Npc " + i + ": " + all.get(i).getName() + ", actions : " + stringArrayToString(all.get(i).getActions())); } protected String stringArrayToString(String [] arr){ String str = ""; for (String a:arr){ str = str + a; } return str; } Forgot to post the output: [INFO][Bot #1][11/14 08:38:38 PM]: Npc 0: Goblin, actions : nullAttacknullnullnull [INFO][Bot #1][11/14 08:38:38 PM]: Npc 1: Goblin, actions : nullAttacknullnullnull [INFO][Bot #1][11/14 08:38:38 PM]: Npc 2: Cow, actions : nullAttacknullnullnull [INFO][Bot #1][11/14 08:38:38 PM]: Npc 3: , actions : nullnullnullnullnull [INFO][Bot #1][11/14 08:38:38 PM]: Npc 4: Cow, actions : nullAttacknullnullnull [INFO][Bot #1][11/14 08:38:38 PM]: Npc 5: , actions : nullnullnullnullnull [INFO][Bot #1][11/14 08:38:38 PM]: Npc 6: Gillie Groats, actions : Talk-tonullnullnullnull [INFO][Bot #1][11/14 08:38:38 PM]: Npc 7: Cow, actions : nullAttacknullnullnull [INFO][Bot #1][11/14 08:38:38 PM]: Npc 8: Cow calf, actions : nullAttacknullnullnull [INFO][Bot #1][11/14 08:38:38 PM]: Npc 9: Cow calf, actions : nullAttacknullnullnull [INFO][Bot #1][11/14 08:38:38 PM]: Npc 10: Cow, actions : nullAttacknullnullnull [INFO][Bot #1][11/14 08:38:38 PM]: Npc 11: Cow, actions : nullAttacknullnullnull [INFO][Bot #1][11/14 08:38:38 PM]: Npc 12: Cow, actions : nullAttacknullnullnull [INFO][Bot #1][11/14 08:38:38 PM]: Npc 13: Cow calf, actions : nullAttacknullnullnull [INFO][Bot #1][11/14 08:38:38 PM]: Npc 14: Cow, actions : nullAttacknullnullnull [INFO][Bot #1][11/14 08:38:38 PM]: Npc 15: Cow calf, actions : nullAttacknullnullnull
×
×
  • Create New...