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++
I would appreceate it if u helped
Rep++
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
[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.luanCastSpell
[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>
function onUse(cid, item, fromPositon, itemEx, toPosition)
return doCreatureAddHealth(cid, 100000) and doSendAnimatedText(getThingPos(cid), "Super Uh!", 181, player)
end
[11/02/2012 23:05:38] [Warning - Event::loadScript] Event onCastSpell not found (data/spells/scripts/Custom Runes/First UH.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
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