• 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 random words [MoveEvents]

johny5608

johny
Joined
Oct 5, 2008
Messages
120
Reaction score
0
Location
Wien
Hi guys,
I need a scrpit for random word.
Example: A player step in on a tile then:
doCreatureSay(cid,hello , TALKTYPE_ORANGE_1)
And when it step again on it then
doCreatureSay(cid,welcome , TALKTYPE_ORANGE_1)
And that every step in is the other random text!
: Welcome, Hello, Hi, Great,LOL!
And and and.

Can somebody help me!?
 
Code:
local words = {"Hello!", "Welcome!"}
function onStepIn(cid, item, position, fromPosition)
	return doCreatureSay(cid, words[math.random(#words)], TALKTYPE_ORANGE_1, false, cid, position)
end
 
Back
Top