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

Need script to text box

chauffaille

New Member
Joined
Sep 10, 2009
Messages
198
Reaction score
1
hello

I need a script for when the player step on the tile

see a box with a textual writing on the screen

give rep + + :thumbup:
 
Code:
function onStepIn(cid, item, position, fromPosition)
	return doShowTextDialog(cid, 1950, "Text")
end
 
Not sure if this will work.. hehe

Put this at your movements/scripts, popuptile.lua
Code:
function onStepIn(cid, item, position, fromPosition)

	if(item.actionid == xxxx) then
	   doPlayerPopupFYI(cid, "This is the message that will popup.")
	   	end

	return true
end

Just change the XXXX to the action id you'd like to use also change the message..

Put this at your movements.xml
Code:
	<movevent type="StepIn" actionid="xxxx" event="script" value="popuptile.lua"/>

Add the action id you choose on that tile you want to send that popup



NOTE: NOT TESTED
 
yes, but this script is by actionID, I need a map that places the desired place

sec; Master-m made this

Code:
-- Instructions:
-- Fill in the position
-- Place in mapeditor an unqiue or an actionid on the tile
-- put it in movements.xml with the correct action/unqiueid
function onStepIn(cid, item, position, fromPosition)
local pos = {x = 100, y = 100, z = 7}
local curpos = getCreaturePosition(cid)
	if (pos == curpos) then
		doPlayerPopupFYI(cid, "This is the message that will popup.")
	end
	return true
end

Credits to him ;p
 
Code:
-- Instructions:
-- Fill in the position
-- Place in mapeditor an unqiue or an actionid on the tile
-- put it in movements.xml with the correct action/unqiueid
function onStepIn(cid, item, position, fromPosition)
local pos = {x = 100, y = 100, z = 7[COLOR="SeaGreen"], stackpos = 253[/COLOR]}
local curpos = getCreaturePosition(cid)
	if (pos == curpos) then
		doPlayerPopupFYI(cid, "This is the message that will popup.")
	end
	return true
end

Perhaps like that? ;o
 
Back
Top