View difference between Paste ID: Rep9RFW2 and 5Xebt2XS
SHOW: | | - or go back to the newest paste.
1
function NTMain() 
2
{
3
	Include("libs/common/NTCommon.ntl");
4
	NTC_IncludeLibs();
5
	NTC_IncludeConfig("NTBot/char_configs");
6
	
7
	NT_LoadConfig();
8
	NTSI_LoadNIPFiles("NTBot/item_configs");
9
	
10
	NTA_Initialize();
11
	
12
	if(!NTTM_CheckAct())
13
	{
14
		NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
15
		return;
16
	}
17
18
	if(!NTTM_TownMove("waypoint"))
19
	{
20
		NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
21
		return;
22
	}
23
	
24
	if(!NTM_TakeWaypoint(NTConfig_GetBOWP))
25
	{
26
		NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
27
		return;
28
	}
29
30
	NTM_MoveTo(me.areaid, me.x + 2, me.y + 2);
31
	Say("Bo me!");
32
	NTC_Delay(1000);
33
	
34
	var counting = 0;
35
	
36
	while(!me.GetState(26) || !me.GetState(32) || !me.GetState(51))
37
	{
38
		if(counting == NTConfig_GetBoWait && NTConfig_GetBoWait != 0)
39
		{
40
			Say("Don't have bo. Moving on without it.");
41
			if(!NTM_TakeWaypoint(NTConfig_AfterGetBOWP))
42
			{
43
				NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
44
				return;
45
			}	
46
			NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
47
		}
48
		NTC_Delay(1000);
49
		counting++;
50
	}
51
	
52
	NTC_Delay(1500);
53
	Say("Thanks for BO!");
54
	NTC_Delay(500);
55
	
56
	if(!NTM_TakeWaypoint(NTConfig_AfterGetBOWP))
57
	{
58
		NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
59
		return;
60
	}
61
	
62
	NTC_Delay(500);
63
	
64
	NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
65-
65+