Advertisement
bebetu

chest segment

Sep 12th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. if(NTConfig_LowerChests) {
  2. _unit = GetPresetUnits(me.areaid, NTC_UNIT_OBJECT);
  3. if(_unit){
  4. for(n = 0 ; n < _unit.length ; n++){
  5. if(_unit[n].id == 580){
  6. NTM_MoveTo(me.areaid, _unit[n].roomx*5+_unit[n].x, _unit[n].roomy*5+_unit[n].y);
  7. _chest = NTC_FindUnit(NTC_UNIT_OBJECT, "chest");
  8. if(_chest){
  9. do {
  10. if(NTC_OpenChest(_chest))
  11. NTSI_PickItems();
  12. } while(_chest.GetNext());
  13. }
  14. }
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement