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

Need help with script.

wilmahund123

New Member
Joined
Apr 17, 2012
Messages
3
Reaction score
0
It has probably been over 5 years since i last worked on an ot. But i remember having a rune that removed utamo and i know kummerack 8.0 used the same kind of script on the sword that removed utamo. But i forgot what the code was. Can any1 help? Also: any cool scripts/effects for items u know or have for 8.0, please share. Thanks :)
 
It has probably been over 5 years since i last worked on an ot. But i remember having a rune that removed utamo and i know kummerack 8.0 used the same kind of script on the sword that removed utamo. But i forgot what the code was. Can any1 help? Also: any cool scripts/effects for items u know or have for 8.0, please share. Thanks :)
this?
Lua:
if hasCondition(cid, CONDITION_MANASHIELD) then
    doRemoveCondition(cid, CONDITION_MANASHIELD)
end
in a rune, I'd assume you'd want something like this..
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local target = itemEx.uid
    if not isPlayer(target) then
        doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
        doPlayerSendCancel(cid, "Sorry not possible.")
        return true
    end
    if hasCondition(target, CONDITION_MANASHIELD) then
        doRemoveCondition(target, CONDITION_MANASHIELD)
    end
    doRemoveItem(item.uid, 1)
    return true
end
 
Back
Top