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

TalkAction Happy Birthday

PhoOwned

^_^
Joined
Nov 11, 2010
Messages
375
Reaction score
66
Happy Birthday talkaction. Like my spell ( http://otland.net/f82/birthday-spell-109448/ ), but in talkaction you can set name that script shows.

[video=youtube;PerLU1_yLEg]http://www.youtube.com/watch?v=PerLU1_yLEg[/video]

../talkactions/talkactions.xml
XML:
<talkaction words="HAPPY" access="4" event="script" value="happy.lua"/>
../data/talkactions/scripts/happy.lua
Lua:
function doTileHappy(param)
	if(isPlayer(param.cid)) then
		doSendMagicEffect(param.pos, math.random(28,30))
		if(math.random(1,6) == 1) then
			doCreatureSay(param.cid, "HAPPY " .. param.name .. "!", TALKTYPE_MONSTER, false, 0, param.pos)
		end
		param.count = param.count - 1
		if(param.count > 0 or math.random(0,1) == 1) then
			addEvent(doTileHappy, math.random(1000,3000), param)
		end
	end
end

function onSay(cid,words,param,channel)
	for i, pos in pairs(getArea(getThingPosition(cid), 11, 11)) do
		addEvent(doTileHappy, math.random(500,15000), {["cid"] = cid, ["pos"] = pos, ["name"] = tostring(param), ["count"] = 20})
	end
	return false
end
 
Last edited:
This scirpt is for FUN ots like evo ;d.
But nice idea for NewYear fireworks.
 
new years is about 6 1/2 months away lol im sure it wasnt intended for that purpose
 
Back
Top