![>](img/i_next.png)
![√](img/ok.gif)
![√](img/ok.gif)
![√](img/ok.gif)
![√](img/ok.gif)
![√](img/ok.gif)
![√](img/ok.gif)
![√](img/ok.gif)
![√](img/ok.gif)
![∗](img/star.gif)
![•](img/dot.gif)
![user](img/i_friend.png)
![user](img/i_friend.png)
![>](img/i_next.png)
6× editiert, zuletzt 09.08.13 04:50:22
Player = {} addhook("spawn","HoC.races.spawn") function HoC.races.spawn(id) 	Player[id] = {} 	if player(id,"bot") then 		HoC.races.class[id] = math.random(1,4) 	end 	-- TAUREN 	if (HoC.races.class[id]<=1) then 		parse ("setmaxhealth "..id.." 250") 		parse ("setarmor "..id.." 206") 		parse ("speedmod "..id.." -10") 		if Player[id].img ~= nil then freeimage(id) end 		Player[id].img=image("gfx/HoC/1.png",1,1,200+id) 	end 	-- HUMAN 	if (HoC.races.class[id]==2) then 		parse ("setmaxhealth "..id.." 100") 		parse ("setarmor "..id.." 206") 		parse ("speedmod "..id.." 5") 		if Player[id].img ~= nil then freeimage(id) end 		Player[id].img=image("gfx/HoC/2.png",1,1,200+id) 	end 	-- ORC 	if (HoC.races.class[id]==3) then 		parse ("setmaxhealth "..id.." 150") 		parse ("setarmor "..id.." 206") 		parse ("speedmod "..id.." -5") 		if Player[id].img ~= nil then freeimage(id) end 		Player[id].img=image("gfx/HoC/3.png",1,1,200+id) 	end 	-- ELF 	if (HoC.races.class[id]==4) then 		parse ("setmaxhealth "..id.." 75") 		parse ("setarmor "..id.." 206") 		parse ("speedmod "..id.." 15") 		if Player[id].img ~= nil then freeimage(id) end 		Player[id].img=image("gfx/HoC/4.png",1,1,200+id) 	end end
function Array(size,value) 	local array = {} 	for i = 1, size do 		array[i] = value 	end 	return array end my_image = Array(32,0) addhook("spawn","HoC.races.spawn") function HoC.races.spawn(id) 	if player(id,"bot") then 		HoC.races.class[id] = math.random(1,4) 	end -- TAUREN 	if (HoC.races.class[id]<=1) then 		parse ("setmaxhealth "..id.." 250") 		parse ("setarmor "..id.." 206") 		parse ("speedmod "..id.." -10") 		freeimage(my_image[id]) 		my_image[id] = image("gfx/HoC/1.png",1,1,200+id) 	end -- HUMAN 	if (HoC.races.class[id]==2) then 		parse ("setmaxhealth "..id.." 100") 		parse ("setarmor "..id.." 206") 		parse ("speedmod "..id.." 5") 		freeimage(my_image[id]) 		my_image[id] = image("gfx/HoC/2.png",1,1,200+id) 	end -- ORC 	if (HoC.races.class[id]==3) then 		parse ("setmaxhealth "..id.." 150") 		parse ("setarmor "..id.." 206") 		parse ("speedmod "..id.." -5") 		freeimage(my_image[id]) 		my_image[id] = image("gfx/HoC/3.png",1,1,200+id) 	end -- ELF 	if (HoC.races.class[id]==4) then 		parse ("setmaxhealth "..id.." 75") 		parse ("setarmor "..id.." 206") 		parse ("speedmod "..id.." 15") 		freeimage(my_image[id]) 		my_image[id] = image("gfx/HoC/4.png",1,1,200+id) 	end end