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

Paralyze and potions.

PHP:
if getPlayerCondition(cid, CONDITION_PARALYZE) == TRUE then
doRemoveCondition(cid, CONDITION_PARALYZE)
end
 
i did it like a spell in the potions.lua file, less confusion with multiple ifs in my opinion, so it works like exura or another healing spell

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
add this above your onUse Function

Code:
var = numberToVariant(cid)
add this right below your onUse Function

Code:
doCombat(cid,combat,var)
add this to where the health is added from the potion
 
Back
Top