1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
addhook("walkover","on_walkover")
function on_walkover(id,iid,type)
	if type==57 or type==58 then
		local armor=player(id,"armor")+15
		local max=100
		if armor>=(max+15) then
			return 1
		else
			if armor>max and armor<(max+15) then
				armor=100
				timer(100,"parse","setarmor "..id.." "..armor.."")
			else
				timer(100,"parse","setarmor "..id.." "..armor.."")
			end
		end
	end
end