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

Wand script! Help

Fu Manchu

Sepultra™
Joined
Jan 28, 2011
Messages
439
Reaction score
9
Ok so I was wondering if someone could help me out with this I want this script to have ice damage and shoot like the hailstorm rod. But idk what I have to edit to get it to work.

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.8, 0)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

I Am also wondering if its possible to make it throw or shoot small stones for my slingshot I wanna use for pallys. Any help? thx.
 
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_SMALLSTONE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLSTONE)
setCombatFormula(combat, COMBAT_FORMULA_SKILLS, -1.3, -30, -1.8, 0)

function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end

test it
 
Last edited:
It worked but it wont hit... lol And I had this other script but idk how to make it not require ammo...

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLSTONE)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1.5, -20, 2.2, 0)

function onUseWeapon(cid, var)
local stone = getPlayerSlotItem(cid, CONST_SLOT_AMMO)
        if stone.itemid == 1294 then
            doCombat(cid, combat, var)
            doRemoveItem(stone.uid, 1)
    end
    return TRUE
end
 
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLSTONE)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1.5, -20, 2.2, 0)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end
 
Wow dude every time I turn around your the one giving me exactly what I need lmao. I wish there was something I could do for you -.- I kinda feel greedy.
 
Well, it's because your requests are far too simple but I don't see why isn't the rest helping. I suppose you figured out the hailstorm rod part?
 
Yea I need to sit down and just read the lua help shit in my doc folder and catch the jist of shit so I can understand it a tad more. Now my new problem is getting this inf aol to frikin work.... lmao
 
Back
Top