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
 
  CS2D
 CS2D  Scripts
 
Scripts  [Lua] Zombie Damage
 [Lua] Zombie Damage [Lua] Zombie Damage
 [Lua] Zombie Damage 
  1
 1  
 
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])
 Surplus has written
 Surplus has writtenobject(id,"health")-(hpd+dmg[src])
LUA ERROR: sys/lua/test.lua:64: unexpected symbol near '-'
object(id,"health") = object(id,"health")-(hpd+dmg[src])
 kalis has written
 kalis has writtenobject(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
 Cure Pikachu has written
 Cure Pikachu has writtenaddhook("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
 
  1
 1  
 