• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

MoveEvent Funny Tile.

azzkaban

Monster Maker
Joined
Feb 23, 2010
Messages
1,101
Reaction score
194
Location
Iquique Chile
You can use for joke to players :D

XML:
        <movevent type="StepIn" actionid="20001" script="fantasmas.lua"/>

fantasmas.lua

Lua:
function onStepIn(cid, item, pos)
	doCreatureSay(cid, "I'm NOOB", TALKTYPE_YELL)
	doSendMagicEffect(pos, CONST_ME_NONE)
	return true
end

Or for donation

Lua:
function onStepIn(cid, item, pos)
	doCreatureSay(cid, "Send SMS To Donate to server", TALKTYPE_YELL)
	doSendMagicEffect(pos, CONST_ME_NONE)
	return true
end

Useful? I dont know, but is funny.

Tested in
WanVKkVVvE.png
 
I would advice you to use,
Code:
if isPlayer(cid) then

Because if a monster step into the tile it will also appear text
 
Lua:
doSendMagicEffect(pos, CONST_ME_NONE)
Why that? Useless.
Anyways nice.
My version:
Lua:
local text = "Send SMS To Donate to server"
local type = say -- Say, whisper or yell
function onStepIn(cid, item, pos)
	if isPlayer(cid) then
		if type == say then
			doCreatureSay(cid, text, TALKTYPE_SAY)
		elseif type == yell then
			doCreatureSay(cid, text, TALKTYPE_YELL)
		else
			doCreatureSay(cid, text, TALKTYPE_WHISPER)
		end
	end
return true
end
 
Last edited:
Back
Top