Advertisement
kolton

Untitled

Nov 22nd, 2012
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. ondalSwap: function (mode) {
  2. var item = me.getItem("6cs", 1);
  3.  
  4. if (item) {
  5. do {
  6. if (item.quality === 7) {
  7. switch (mode) {
  8. case 0: // swap back from ondals
  9. if (item.bodylocation === 4 || item.bodylocation === 5) {
  10. Precast.weaponSwitch();
  11. }
  12.  
  13. break;
  14. case 1: // swap to ondals
  15. if (item.bodylocation === 11 || item.bodylocation === 12) {
  16. Precast.weaponSwitch();
  17. }
  18.  
  19. break;
  20. }
  21.  
  22. break;
  23. }
  24. } while (item.getNext());
  25. }
  26.  
  27. return true;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement