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

Poison Tile

zippy

Member
Joined
Feb 1, 2011
Messages
233
Reaction score
8
Hi, i want when a player step in a tile they get poisoned. The poison start 50 and going down. I want to be able to configure how long is it poison and how many times should it hit the player.

Thanks Rep!
 
????????????????????????????
My Noob.
you can not make script and control the posion hits , ok?
that's from C++

Here you go, the problem is that it only hit you 1x then it stops. So hopefully someone can fix that:
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_POISONDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POISONAREA)
 
local condition = createConditionObject(CONDITION_POISON)
setConditionParam(condition, CONDITION_PARAM_MINVALUE, 1)
setConditionParam(condition, CONDITION_PARAM_MAXVALUE, 50)
setConditionParam(condition, CONDITION_PARAM_STARTVALUE, 50)
setConditionParam(condition, CONDITION_PARAM_TICKINTERVAL, 30*1000)
setCombatCondition(combat, condition)
 
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	if (isPlayer(cid)) then
		doTransformItem(item.uid, 417)
		doAddCondition(cid, condition)
		doSendMagicEffect(getThingPos(cid),7) 
		end
    return true
end

function onStepOut(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	if (isPlayer(cid)) then
		doTransformItem(item.uid, 416)
		end
	return true
end
 
Well, i quote then i worked on the script -.-.

So stop argue and live with it.
 
Back
Top