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

Super UH

mikebadeaux

Mapper
Joined
May 16, 2010
Messages
112
Reaction score
1
Hi Otland I am Requesting a Super UH that Gives 100000 Health
I would appreceate it if u helped
Rep++
 
Here it is:

Code:
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onCastSpell(cid, var)
doPlayerAddHealth(cid, 100000) 
return doCombat(cid, combat, var)
end
 
Fail?

[11/02/2012 17:59:38] [Error - Spell Interface]
[11/02/2012 17:59:38] data/spells/scripts/Custom Runes/First UH.lua
[11/02/2012 17:59:38] Description:
[11/02/2012 17:59:38] (luaSetCombatParam) Combat not found

[11/02/2012 17:59:39] [Error - Spell Interface]
[11/02/2012 17:59:39] data/spells/scripts/Custom Runes/First UH.lua
[11/02/2012 17:59:39] Description:
[11/02/2012 17:59:39] (luaSetCombatParam) Combat not found

[11/02/2012 17:59:39] [Error - Spell Interface]
[11/02/2012 17:59:39] data/spells/scripts/Custom Runes/First UH.lua
[11/02/2012 17:59:39] Description:
[11/02/2012 17:59:39] (luaSetCombatParam) Combat not found

[11/02/2012 17:59:39] [Error - Spell Interface]
[11/02/2012 17:59:39] data/spells/scripts/Custom Runes/First UH.lua
[11/02/2012 17:59:39] Description:
[11/02/2012 17:59:39] (luaSetCombatParam) Combat not found

[11/02/2012 17:59:39] [Error - Spell Interface]
[11/02/2012 17:59:39] data/spells/scripts/Custom Runes/First UH.lua
[11/02/2012 17:59:39] Description:
[11/02/2012 17:59:39] (luaSetCombatParam) Combat not found

[11/02/2012 17:59:50] [Error - Spell Interface]
[11/02/2012 17:59:50] data/spells/scripts/Custom Runes/First UH.lua:eek:nCastSpell
[11/02/2012 17:59:50] Description:
[11/02/2012 17:59:50] data/spells/scripts/Custom Runes/First UH.lua:8: attempt to call global 'doPlayerAddHealth' (a nil value)
[11/02/2012 17:59:50] stack traceback:
[11/02/2012 17:59:50] data/spells/scripts/Custom Runes/First UH.lua:8: in function <data/spells/scripts/Custom Runes/First UH.lua:7>
 
does this work?
Lua:
function onUse(cid, item, fromPositon, itemEx, toPosition)
	return doCreatureAddHealth(cid, 100000) and doSendAnimatedText(getThingPos(cid), "Super Uh!", 181, player)
end
 
Last edited:
ok then use this one
Lua:
-- credits to someone on otland, not sure who made this
local MIN = 550 
local MAX = 1450 


function onUse(cid, item, fromPosition, itemEx, interval, lastexecution) 
    if isPlayer(itemEx.uid) == FALSE then 
        return FALSE 
    end 

    if((not(isSorcerer(itemEx.uid) or isDruid(itemEx.uid) or isKnight(itemEx.uid)or isPaladin(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 100)) then 
        doCreatureSay(itemEx.uid, "Only players with level 100 or above can use this manarune.", TALKTYPE_ORANGE_1) 
        return TRUE 
    end 

    if doCreatureAddHealth(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then 
        return FALSE 
    end 

        doCreatureSay(cid,"Aaaah...", TALKTYPE_ORANGE_1)  
        doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) 
    return TRUE 
end
 
[11/02/2012 23:30:46] [Warning - Event::loadScript] Event onCastSpell not found (data/spells/scripts/Custom Runes/First UH.lua)


Maby i need the XML
 
Just in case you may want to have a donated mr figured id share with you the mr script that im using.
Code:
local combat = createCombatObject() 
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ADDMANA)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onCastSpell(cid, var)
doPlayerAddMana(cid, 999999999) 
return doCombat(cid, combat, var)
end
 
Back
Top