Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function NTC_OpenChest(chest)
- {
- if (!chest) {
- return false;
- }
- if (chest.mode) {
- return true;
- }
- for (var i = 0; i < 20; i += 1) {
- if (i % 5 === 0) {
- if (NTM_GetCloserInt(chest)) {
- chest.interact();
- }
- }
- NTC_Delay(100);
- if (chest.mode) {
- return true;
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement