Advertisement
kolton

Untitled

Oct 31st, 2011
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. function NTC_OpenChest(chest)
  2. {
  3. if (!chest) {
  4. return false;
  5. }
  6.  
  7. if (chest.mode) {
  8. return true;
  9. }
  10.  
  11. for (var i = 0; i < 20; i += 1) {
  12. if (i % 5 === 0) {
  13. if (NTM_GetCloserInt(chest)) {
  14. chest.interact();
  15. }
  16. }
  17.  
  18. NTC_Delay(100);
  19.  
  20. if (chest.mode) {
  21. return true;
  22. }
  23. }
  24.  
  25. return false;
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement