Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////
- //Botscripts modificated by njomnjomnjom //
- ////////////////////////////////////////////
- function NTMain()
- {
- Include("libs/common/NTCommon.ntl");
- NTC_IncludeLibs();
- NTC_IncludeConfig("NTBot/char_configs");
- NT_LoadConfig();
- NTSI_LoadNIPFiles("NTBot/item_configs");
- NTA_Initialize();
- if(!NTTM_CheckAct())
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
- return;
- }
- NTTMGR_TownManager();
- if(!NTTM_TownMove("waypoint"))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
- return;
- }
- if(!NTM_TakeWaypoint(3))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
- return;
- }
- NTP_DoPrecast(true);
- if(!NTM_MoveToStair(17, 19))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
- return;
- }
- if(!NTM_TakeStair(19))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
- return;
- }
- if(!NTM_MoveToPresetUnit(me.areaid, NTC_UNIT_OBJECT, 397, -10, 0))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToPresetUnit()");
- return;
- }
- Delay(50);
- if(NTConfig_OpenChest)
- {
- var _chest;
- _chest = NTC_GetSpecialChest();
- if(_chest)
- {
- if(!NTM_MoveTo(me.areaid, _chest.x+1, _chest.y))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
- return;
- }
- for(i = 0; i <= 5; i++)
- {
- if(GetDistance(me.x,me.y,_chest.x,_chest.y) < 5 )
- {
- if(NTC_OpenChest(_chest))
- {
- NTSI_PickItems();
- break;
- }
- }
- else
- {
- Print("ÿc8Gegner mit Knockback???");
- NTM_MoveTo(me.areaid, _chest.x+1, _chest.y)
- }
- }
- }
- else
- {
- Print("ÿc8Keine Chest gefunden.");
- Print("ÿc8Verzweiflungsschlag wird ausgeführt.");
- var _randomchest;
- _randomchest = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3260));
- if(_randomchest)
- {
- if(!NTM_MoveTo(me.areaid, _randomchest.x+1, _randomchest.y))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
- return;
- }
- for(i = 0; i <= 5; i++)
- {
- if(GetDistance(me.x,me.y,_randomchest.x,_randomchest.y) < 5 )
- {
- if(NTC_OpenChest(_randomchest))
- {
- NTSI_PickItems();
- break;
- }
- }
- else
- {
- Print("ÿc8Gegner mit Knockback???");
- NTM_MoveTo(me.areaid, _randomchest.x+1, _randomchest.y)
- }
- }
- }
- else
- {
- Print("ÿc8Scheisse");
- }
- }
- }
- Delay(500);
- _unit = GetPresetUnits(me.areaid, NTC_UNIT_OBJECT);
- if(_unit)
- {
- for(n = 0 ; n < _unit.length ; n++)
- {
- if(_unit[n].id == 580)
- {
- NTM_MoveTo(me.areaid, _unit[n].roomx*5+_unit[n].x, _unit[n].roomy*5+_unit[n].y);
- _chest = NTC_FindUnit(NTC_UNIT_OBJECT, "chest");
- if(_chest)
- {
- do
- {
- if(NTC_OpenChest(_chest))
- NTSI_PickItems();
- }while(_chest.GetNext());
- }
- }
- }
- }
- if(!NTM_MoveToStair(19, 17))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
- return;
- }
- if(!NTM_TakeStair(17))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
- return;
- }
- if(!NTM_MoveToStair(17, 18))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
- return;
- }
- if(!NTM_TakeStair(18))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
- return;
- }
- if(!NTM_MoveToPresetUnit(me.areaid, NTC_UNIT_OBJECT, 397, -10, 0))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToPresetUnit()");
- return;
- }
- if(NTConfig_OpenChest)
- {
- var _chest;
- _chest = NTC_GetSpecialChest();
- if(_chest)
- {
- if(!NTM_MoveTo(me.areaid, _chest.x+1, _chest.y))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
- return;
- }
- for(i = 0; i <= 5; i++)
- {
- if(GetDistance(me.x,me.y,_chest.x,_chest.y) < 5 )
- {
- if(NTC_OpenChest(_chest))
- {
- NTSI_PickItems();
- break;
- }
- }
- else
- {
- Print("ÿc8Gegner mit Knockback???");
- NTM_MoveTo(me.areaid, _chest.x+1, _chest.y)
- }
- }
- }
- else
- {
- Print("ÿc8Keine Chest gefunden.");
- Print("ÿc8Verzweiflungsschlag wird ausgeführt.");
- var _randomchest;
- _randomchest = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3260));
- if(_randomchest)
- {
- if(!NTM_MoveTo(me.areaid, _randomchest.x+1, _randomchest.y))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
- return;
- }
- for(i = 0; i <= 5; i++)
- {
- if(GetDistance(me.x,me.y,_randomchest.x,_randomchest.y) < 5 )
- {
- if(NTC_OpenChest(_randomchest))
- {
- NTSI_PickItems();
- break;
- }
- }
- else
- {
- Print("ÿc8Gegner mit Knockback???");
- NTM_MoveTo(me.areaid, _randomchest.x+1, _randomchest.y)
- }
- }
- }
- else
- {
- Print("ÿc8Scheisse");
- }
- }
- }
- Delay(500);
- _unit = GetPresetUnits(me.areaid, NTC_UNIT_OBJECT);
- if(_unit)
- {
- for(n = 0 ; n < _unit.length ; n++)
- {
- if(_unit[n].id == 580)
- {
- NTM_MoveTo(me.areaid, _unit[n].roomx*5+_unit[n].x, _unit[n].roomy*5+_unit[n].y);
- _chest = NTC_FindUnit(NTC_UNIT_OBJECT, "chest");
- if(_chest)
- {
- do
- {
- if(NTC_OpenChest(_chest))
- NTSI_PickItems();
- }while(_chest.GetNext());
- }
- }
- }
- }
- NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
- }
Add Comment
Please, Sign In to add comment