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

Walk on tile, text comes

DestinationSer

@echo off
Joined
Mar 7, 2009
Messages
2,806
Solutions
1
Reaction score
676
As the title says, I request a tile that u walk on and a text pops up like the spell book thingy does when you say !spells
 
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
       if item.itemid == your tile id then
            doPlayerPopupFYI(cid, message)
       end
return true
end
 
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
       if item.itemid == your tile id then
            doPlayerPopupFYI(cid, message)
       end
return true
end

That would work, but is not a proper way to do it since there will be like 123987 tiles with same ID, proper way is doing it with actionid..

Name it msgtile.lua and put it in data/movements/scripts/
LUA:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	return doPlayerPopupFYI('edit here the message you wanna popup') and true
end

movements.xml
XML:
<movevent type="StepIn" actionid="32101" event="script" value="msgtile.lua"/>
 

You're the one who should get reported.

We were having a laugh and you insult people and accuse them of having a disability? That's really, really insulting and shouldn't be done anywhere. I suggest you think what you type before you click post because what you said was very inappropriate.
 
Back
Top