Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ondalSwap: function (mode) {
- var item = me.getItem("6cs", 1);
- if (item) {
- do {
- if (item.quality === 7) {
- switch (mode) {
- case 0: // swap back from ondals
- if (item.bodylocation === 4 || item.bodylocation === 5) {
- Precast.weaponSwitch();
- }
- break;
- case 1: // swap to ondals
- if (item.bodylocation === 11 || item.bodylocation === 12) {
- Precast.weaponSwitch();
- }
- break;
- }
- break;
- }
- } while (item.getNext());
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement