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

Lua Very Quick 'n' Easy!

Trader

New Member
Joined
Aug 12, 2009
Messages
219
Reaction score
2
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_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 32, 40)

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

Hey, where do I put this in this script above?
PHP:
doCreatureSay(cid, "Super Ultimate Healing Rune!", TALKTYPE_ORANGE_1)

I wanna make it so that it says the name of the rune above your head in orange, help please! ;)
 
Nonono, how do I make it so that the rune name comes above your head in orange?

Where do I put that 2nd piece of script?
 
Dunno but maby this? ;O
Lua:
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)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 32, 40)
doCreatureSay(cid, "Super Ultimate Healing Rune!", TALKTYPE_ORANGE_1)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
 
Or this
Lua:
  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)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 32, 40)


function onCastSpell(cid, var)
doCreatureSay(cid, "Super Ultimate Healing Rune!", TALKTYPE_ORANGE_1)
    return doCombat(cid, combat, var)
end
Haven't done much on spell coding :)
 
How do I make it so that Knights heal more and more as they get higher level

Because right now it's by meagic level and druids can heal 2,500 and a knight same level can only heal 500 :/
 
Back
Top