1
2
3
4
5
6
2
3
4
5
6
addhook("hit","wtf") function wtf(id,src,wpn,hpd,apd) 	if dmg[src]>=1 then 		object(id,"health")-(hpd+dmg[src]) 	end end
addhook("hit","wtf") function wtf(id,src,wpn,hpd,apd) 	if dmg[src]>=1 then 		object(id,"health")-(hpd+dmg[src]) 	end end
object(id,"health")-(hpd+dmg[src])
object(id,"health")-(hpd+dmg[src])
LUA ERROR: sys/lua/test.lua:64: unexpected symbol near '-'
object(id,"health") = object(id,"health")-(hpd+dmg[src])
object(id,"health") = object(id,"health")-(hpd+dmg[src])
LUA ERROR: sys/lua/rpg_lol.lua:647: unexpected symbol near '='
addhook("objectdamage","wtf") function wtf(id,ptdmg,pl) 	if object(id,"type") == 30 then 		if dmg[pl] >= 1 then 			object(id,"health") = object(id,"health")-dmg[pl] 		end 	end end
addhook("objectdamage","wtf") function wtf(id,ptdmg,pl) 	if object(id,"type") == 30 then 		if dmg[pl] >= 1 then 			object(id,"health") = object(id,"health")-dmg[pl] 		end 	end end