• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Spell Rainbow Lux

cbrm

Retired scripter
Staff member
Global Moderator
Joined
Jan 6, 2009
Messages
6,599
Solutions
3
Reaction score
971
Location
Caribbean Sea
Well, I decided to enable all colors for the utevo lux spell series in my OT, since I am bored of that old white light (it isn’t yellow if you thought it was).

dcvm12.jpg

xmastree.lua
LUA:
---random light spellcaster aka xmas tree by c.b.r master

function onCastSpell(cid, var)
	local pos = getPlayerPosition(cid)
	local disco = math.random(1,255)
	local bolt = math.random(47,48)
	doSendMagicEffect(pos, bolt)
	return doSetCreatureLight(cid, 9, disco, (6*60+10)*3000)
end

Spells.xml
LUA:
<instant name="Rainbow Light" words="utevo mas lux" lvl="1" mana="20" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" script="xmastree.lua">
		<vocation name="Sorcerer"/>
		<vocation name="Druid"/>
		<vocation name="Paladin"/>
		<vocation name="Knight"/>
		<vocation name="Master Sorcerer"/>
		<vocation name="Elder Druid"/>
		<vocation name="Royal Paladin"/>
		<vocation name="Elite Knight"/>
	</instant>

yea, it's a funny spell
 
Last edited:
nice, but i only see the differents by the red coller :p
however REPP++ for you!

----------------------------------------------------------------
~Feel free to if my post helped you :D
----------------------------------------------------------------

 
thnx, but it isn't red color only, just try it and you'll amaze
 
hei its fine
but i want add in my spell only redlight

u can do it for me

thx

oh my, my first thread :p
LUA:
  ---random light spellcaster aka xmas tree by c.b.r master

function onCastSpell(cid, var)
        doSendMagicEffect(getCreaturePosition(cid), math.random(47,48))
        return doSetCreatureLight(cid, 9, 94, (6*60+10)*3000)
end
 
Back
Top