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

Exana Flam

Godely

Member
Joined
Aug 19, 2007
Messages
233
Reaction score
16
It would be nice if someone do a script that cure the "Fire Condition", but it would only work if the player is close to a water ground (Max = 2 sqms), or have a Water Flask on his bp. If the player is close to the water and have the Water Flask at the same time, the preference is to the water ground.

(Water Flask = ID 2006, count 1

Thanks.
 
But you can do it to check only if the player have the ID 2006 count 1 in his BP... the water tile is not really necessary
it would be nice
 
I havent tested, but you can try tho:

PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_FIRE)

function onCastSpell(cid, var)
	if (getPlayerItemCount(cid, 2006).type == 1) > 0 then
		return doCombat(cid, combat, var)
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_SMALL, "You do not have vial with water :(.")
	end
end
 
Back
Top