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

Help with super uh! please help me!

mecoboy

New Member
Joined
Feb 27, 2010
Messages
7
Reaction score
0
Hi, I need a super uh that gives 1200 of health but I dont know how to do it, I dont know how to change the healing of the rune! what do I do? help me please!
 
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onCastSpell(cid, var)
doPlayerAddHealth(cid, [COLOR="Red"][U]1200[/U][/COLOR]) 
return doCombat(cid, combat, var)
end

:peace:
 
hehe =P
My fail script but works so try it:
Lua:
local t = {
text = "Ooooh...",
effect = CONST_ME_MAGIC_BLUE
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) then
doTargetCombatHealth(0, cid, COMBAT_FIREDAMAGE, 1100, 1200, CONST_ME_FIRE)
doCreatureSay(itemEx.uid, t.text, TALKTYPE_ORANGE_1)
doSendMagicEffect(toPosition, t.effect)
else
doPlayerSendCancel(cid, "You can only use this rune on players.")
end
return true
end
To actions...
 
Easier can't

btw
@snach
the function "doTargetCombatHealth" gives skull and if the uh isn't aggresive then people can make skull in pz!


PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, 1200, 0, 1200)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
hehe =P
My fail script but works so try it:
Lua:
local t = {
text = "Ooooh...",
effect = CONST_ME_MAGIC_BLUE
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) then
doTargetCombatHealth(0, cid, COMBAT_FIREDAMAGE, 1100, 1200, CONST_ME_FIRE)
doCreatureSay(itemEx.uid, t.text, TALKTYPE_ORANGE_1)
doSendMagicEffect(toPosition, t.effect)
else
doPlayerSendCancel(cid, "You can only use this rune on players.")
end
return true
end
To actions...

Mate try learn scriping. You wanna make him get WS and pked? haha.

Lua:
text = "Ooooh...",
effect = CONST_ME_MAGIC_RED
health = 1200
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) then
doCreatureAddHealth(cid, #health)
doCreatureSay(itemEx.uid, #text, TALKTYPE_ORANGE_1)
doSendMagicEffect(toPosition,#effect)
else
doPlayerSendCancel(cid, "You can only use this rune on players.")
end
return TRUE
end
 
Back
Top