1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
statusBot=0
controller=coroutine.create(function(bot)
	parse("setpos "..bot.." 544 2240")
	for i=1,180 do
		ai_rotate(bot,i)
		coroutine.yield()
	end
	statusBot=1
	ai_goto(bot,17,79)
	repeat
		coroutine.yield()
	until ai_goto(bot,17,79)==1
	statusBot=2
	ai_rotate(bot,180)	-- Bot rotation for attacking the wall
	coroutine.yield()
	statusBot=3
	for i=1,15 do
		ai_iattack(bot)
		coroutine.yield()
	end
	statusBot=4
end
addhook("always","botcontroller")
function botcontroller()
	if statusBot==2 then
		timerEx(5000,coroutine.resume,1,controller,2)
		statusBot=2.5
		
	elseif statusBot<1 and statusBot>=3 then
		if coroutine.resume(controller,2)==false then
			freehook("always","botcontroller")
		end
	end
end
timerEx(30000,parse,100,"setmaxhealth 2 "..(player(2,"maxhealth")+5).."; speedmod 2 "..(player(2,"speedmod")+1),0)
It' untested but i think it should work