parse("mp_wpndmg Snowball 20")
if _==nil then _={} end
_={}
function initArray(m)
local array = {}
for i = 1, m do
array[i]=0
end
return array
end
_class=initArray(32)
function _classmenu(id)
menu(id,"Select your Hero,»Axe|Wood Cutter Axe,»Tiny|RockBalls,»Dragon Knight|FireBreathe")
end
addhook("team","_team")
function _team(id,team)
if (team>0) then
_classmenu(id)
end
end
addhook("serveraction","_serveraction")
function _serveraction(id)
_classmenu(id)
end
addhook("menu","_menu")
function _menu(id,menu,sel)
if (menu=="Select your Class") then
if (sel>=0 and sel<=6) then
_class[id]=sel
if (player(id,"health")>0) then
parse("killplayer "..id)
end
end
end
end
addhook("spawn","_spawn")
function _spawn(id)
-- Axe
if (_class[id]<=1) then
parse ("setmaxhealth "..id.." 150")
parse ("setarmor "..id.." 150")
parse ("speedmod "..id.." -2")
parse('hudtxt2 '..id..' 5 "©160160255Your Hero is: Axe" 42 400')
msg2(id,"©000255000You Pick Axe")
return "80,69,54";
end
-- Tiny
if (_class[id]==2) then
parse ("setmaxhealth "..id.." 100")
parse ("speedmod "..id.." -1")
parse('hudtxt2 '..id..' 5 "©160160255Your Hero is: Tiny" 42 400')
msg2(id,"©000255000You Pick Tiny")
return "75,75,75,75,75,75,75,75,75,75,81";
end
-- Dragon Knight
if (_class[id]==3) then
parse ("setmaxhealth "..id.." 180")
parse ("setarmor "..id.." 120")
parse('hudtxt2 '..id..' 5 "©160160255Your Hero is: »Axe" 42 400')
msg2(id,"©000255000You Pick Dragon Knight")
return "46,78,52";
end
end
addhook("buy","_buy")
function _buy()
return 1
end
addhook("minute","_minute")
function _minute()
msg("©255000125==»Dota Script«==")
msg("©255000125Current Script: CirtarTheEpic")
msg("©255000125U.S.G.N: 95661")
end
test it and see play in a minute there is a PROBLEM!!