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

GFB Text

Xagul

deathzot.net
Joined
Jun 30, 2008
Messages
1,295
Solutions
3
Reaction score
1,043
Hello, I have recently been looking for a way to make the GFB rune say "Great Fire Ball" in orange (like a monster/potion) when you use it. Making the creature that actually uses it say that is fairly easy however I would like the text to appear at the position you use the rune so for example when you use the gfb, in the middle of the explosion it would say the words "Great Fire Ball". Any help with this would be greatly appreciated! Thanks in advance.
 
Try:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 1.4, 2.8, 40, 70)

local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)[B][COLOR="red"] and doCreatureSay(cid, 'Great Fireball', TALKTYPE_ORANGE_1, false, 0, variantToPosition(var))[/COLOR][/B]
end
 
Back
Top