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

Do set poison to a player

d4rkbl0od

Member
Joined
Mar 21, 2008
Messages
160
Reaction score
7
Hello again! hehehe
Again im stub into a script
its on HOTA, the part the player steps into a title and it sets player into poison starting from 50 and going 49, 48, 47, ... etc
i cant make it work..

can someone help me??

using TFS!
 
Haven`t tested it, just modified Envenom spell script so I have no idea what the MINVALUE & MAXVALUE parameters do, but try this...

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_DELAYED, true)
setConditionParam(condition, CONDITION_PARAM_MINVALUE, 20)
setConditionParam(condition, CONDITION_PARAM_MAXVALUE, 70)
setConditionParam(condition, CONDITION_PARAM_STARTVALUE, 50)
setConditionParam(condition, CONDITION_PARAM_TICKINTERVAL, 6000)
setConditionParam(condition, CONDITION_PARAM_FORCEUPDATE, true)
setCombatCondition(combat, condition)

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	if not(isPlayer(cid)) then
		return false
	end
	
	return doCombat(cid, combat, var)
end
 
well , actualy
I edited that and used this ( it works now!) 50, 49,48, until 0!

Code:
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_DELAYED, true)
setConditionParam(condition, CONDITION_PARAM_MINVALUE, 20)
setConditionParam(condition, CONDITION_PARAM_MAXVALUE, 70)
setConditionParam(condition, CONDITION_PARAM_STARTVALUE, 50)
setConditionParam(condition, CONDITION_PARAM_TICKINTERVAL, 6000)
setConditionParam(condition, CONDITION_PARAM_FORCEUPDATE, true)
setCombatCondition(combat, condition)



and :
doAddCondition(cid, condition)
 
Back
Top