• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

target health

Doggynub

LUA / C++
Joined
Sep 28, 2008
Messages
2,541
Reaction score
186
Why this dont work to kill a player i mean if the player health is more than the health it will deal, otherwise it doesnt deal damaga at all?

Code:
	doTargetCombatHealth(0, pid, 8, -t, -t,5)
 
Last edited:
dont think
LUA:
if isPlayer(pid) then
		t = getCreatureMaxHealth(pid)
		doTargetCombatHealth(0, pid, 8, -t, -t,5)
end
 
This!
doTargetCombatHealth(cid, target, type, min, max, effect)

cid = 0?

i dont think it will work with doTargetCombatHealth
 
Last edited:
nah it works :) , and it doesnt work with cid, at least with me .

Also the script there isnt a cid, it is a global event so :p
 
Back
Top