BlackList
PassingWrath.us
- Joined
- Aug 30, 2007
- Messages
- 133
- Reaction score
- 26
Hello,
I made a small little script that you pretty much enter any amount of text you want and at random one will be chosen and will be displayed over the floor tile. I use at temple spawn for new players, so you aren't totally clueless. I used some TP sign script just for the simple text display then added the math random. Enjoy!
I made a small little script that you pretty much enter any amount of text you want and at random one will be chosen and will be displayed over the floor tile. I use at temple spawn for new players, so you aren't totally clueless. I used some TP sign script just for the simple text display then added the math random. Enjoy!
Code:
function onThink(interval, lastExecution)
local name_of_monster = 'demon' --- here put monster name or any npc name
local pos = {x=589, y=82, z=7}
local text = {
"Welcome!",
"Command: !bless",
"Command: !spells",
"Command: !home",
"Commands: /commands",
"Potions are infinite!",
"NPCs can be found all over!",
"Boat is North/West of here!"
}
local v = text[math.random(#text)]
doCreatureSay(getCreatureByName(name_of_monster),v,TALKTYPE_ORANGE_1, false, 0, pos)
return TRUE
end