• 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!

Frompos topos - training on people without getting skull and damage

breadmaker

New Member
Joined
Jul 16, 2010
Messages
160
Reaction score
3
As topic says
I need to request someone to make simple script:
On frompos topos area when i attack someone i dont getting skull and when i deal damage to people the damage is transform to puffs (clouds)
It's possible to do it?

Thanks.
 
Just add PvP-e area with the map editor and use this
XML:
<event type="statschange" name="Puff" event="script" value="whatever.lua"/>
whatever.lua:
Lua:
local fromPosition ={x="1000", y="1000", z="7"}
local toPosition = {x="100", y="100", z="7"}
function onStatsChange(cid, attacker, type, combat, value)
if isInRange(getThingPos(cid), fromPosition, toPosition)
	if isPlayer(attacker) and isPlayer(cid) and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) then
		return doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) and false
	end
end
return TRUE
end

login.lua:
Lua:
	registerCreatureEvent(cid, "Puff")
 
Back
Top