Guest User

Untitled

a guest
Jul 20th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. public int extractNames(String text) {
  2. String[] lastnames, lastids;
  3. String[] names = "Long bone","Curved bone","Limpwurt root","Limpwurt seed","Mind runes","Water runes","Fire runes","Cosmic runes","Chaos runes","Nature runes","Law runes","Death runes","Body talisman","Chaos talisman","Nature talisman","Iron arrows","Steel arrows","Rune javelin","Rune Spear","Gold charm","Green charm","Crimson charm","Blue charm","Grimy guam","Grimy marrentill","Grimy tarromin","Grimy ranarr","Grimy harralander","Grimy irit leaf","Grimy avantoe","Grimy kwuarm","Grimy cadantine","Grimy dwarf weed","Grimy lantadyme");
  4. String[] ids = { 10976, 10977, 225, 5100,558, 6424, 6428, 564, 6430, 561, 563, 6432, };
  5. special.add("END");
  6. int i;
  7. while (!special[i].equals("END") {
  8. lastnames.add(special[i]);
  9. int n;
  10. while (!special[i].equals(names[n]) {
  11. n++
  12. }
  13. lastids.add(ids[n]);
  14. i++;
  15. }
  16. pickUpI = lastids;
  17. pickUpN = lastnames;
  18. }
Add Comment
Please, Sign In to add comment