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

Stunning Weapon and Drunk Arrow

bigdad

New Member
Joined
Aug 25, 2007
Messages
24
Solutions
1
Reaction score
3
Hello. I need a script so one of my weapons can randomly stun/paralyze a player based on their skills. The higher their skills is a less percentage to stun.
But, it doesn't have to be based on skills it can also be a random percentage which ever is easier.


I would also like a script for an arrow that when it hits a player the player gets drunk. Random percentage also based on skills.(Higher the skills the less percentage) or just random percentage.

Please someone help. Thank you in advance!

TFS Ver. 0.2.5
 
Make a weapon that paralyzes them with the strenght of 10000lvls and they will stand still while paralyzes, make the paralyze last for 0.3 seconds, fix a better weapon for better stun etc.

Just make a arrow that gives them drunk contition?
 
I used this script on my ot;P (it has a chance to "stun" the target)
Code:
    local combat = createCombatObject()
    setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
    setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1)
    setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
    setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_STUN)
    setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.0, 0)

    local condition = createConditionObject(CONDITION_PARALYZE)
    setConditionParam(condition, CONDITION_PARAM_TICKS, 5000)
    setConditionParam(condition, CONDITION_PARAM_SPEED, -150)
    setCombatCondition(combat, condition)

    local combat2 = createCombatObject()
    setCombatParam(combat2, COMBAT_PARAM_BLOCKARMOR, 1)
    setCombatParam(combat2, COMBAT_PARAM_BLOCKSHIELD, 1)
    setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
    setCombatFormula(combat2, COMBAT_FORMULA_SKILL, 0, 0, 1.0, 0)
    
function onUseWeapon(cid, var)
    if getPlayerLevel(cid) >= 100 then
        local chance = math.random(1,10)
        if chance == 3 then
        doCombat(cid, combat, var)
        else
        doCombat(cid, combat2, var)
        end
    else
        doPlayerSendCancel(cid, 'You need level 100 to use this weapon.')
    end
end
 
Thank You it worked ;] Can someone help me with the drunk arrow so when a player gets hit with the arrow theres a chance of getting drunk condition based on skills or randomly which ever is easier for you
 
Drunk arrow: (i dont testet it)
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_POISONDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_POISONARROW)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)
	
local condition = createConditionObject(CONDITION_DRUNK)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
setCombatCondition(combat, condition)
	
function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end
 
Back
Top