Knowledgebase
Storm Palace Hosting > Storm Hosting Help Desk > Knowledgebase

Ask a question:


GOTOROOM(s)

Solution Gotoroom

This is a random gotoroom script if you want to use this in something like lasertag. They click on the door and can be sent to anyone of those rooms at random.

ON SELECT { [ 100 101 102 103 ] DUP LENGTH RANDOM GET GOTOROOM }

---------------------------------------------------------

This can go at your gate to send people to a party room if you want them to come in when they enter.

ON SIGNON {
"Hi, there, " USERNAME & "! It's guess who's Birthday today! Hold on while
we send you to the party room!" & LOCALMSG
{ 999 GOTOROOM } 150 ALARMEXEC }

--------------------------------------------------------------------

One to send everyone but a wizard if they click the spot.

ON SELECT {
{ { 200 GOTOROOM } 500 ALARMEXEC } ISWIZARD NOT IF
}

--------------------------------------------------------------------------

If you are like me, when you make passage doors in a room, I like the doors to be hidden and have arrows or some spot gif. I check off "normal" so the door outline won't show, but if you do that, its not a passage anymore and won't take them to the room. The way to avoid that is make it a normal door with this script in it....

ON SELECT { 100 GOTOROOM }

-----------------------------------------------------------------------

You can add a small line of code to the OUTCHAT handler of your cyborg to be taken to specific rooms within your palace that you go to alot like the gate. Just by saying gate, you would be transported there with this script.

{ 86 GOTOROOM "" CHATSTR = } CHATSTR "gate" = = IF < /FONT >

If you continue to follow this line of code, you can make multiple ones to go to certain rooms.

------------------------------------------------------------------------

Frodo wrote this on command gotoroom script. Add the keywords and room ids, then all you have to do is say the word to go to that room.

ON OUTCHAT {
{ "$1" GREPSUB pw =
{ dta =
{ dta 1 GET GOTOROOM
} pw dta 0 GET == IF }
;add keywords and room id numbers here
[ [ "script" 999 ]
[ "borg" 716 ]
] FOREACH
"" CHATSTR =
} CHATSTR "^(.*)$" GREPSTR IF }

-----------------------------------------------------------------------

If you know the room number of the rooms you will want to go to within your palace, you can add this script to the OUTCHAT section of your cyborg. Just say rn86 to go to the gate.

{ "" CHATSTR =
"$1" GREPSUB ATOI GOTOROOM
} CHATSTR "rn([0-9]*)" GREPSTR IF

--------------------------------------------------------------------------

XT expanded on the above script with this one. You can try this script, it delays a little and sends a room msg so people can see where you are going

; Put this script in the ON OUTCHAT handler
; You can type rn 86 or rn86
{ rn GLOBAL "$1" GREPSUB rn =
{"!" USERNAME & " is going to room " & rn & " via " & "$0" GREPSUB & ROOMMSG} rn "" <> IF
"Fazein" SOUND
{ rn GLOBAL rn ATOI GOTOROOM } 200 ALARMEXEC
"" CHATSTR =
} CHATSTR "^rn(.[0-9]*)" GREPSTR IF
 
Was this article helpful? yes / no
Article details
Article ID: 299
Category: Room Scripts
Date added: 10-05-2011 23:53:36
Views: 560
Rating (Votes): Article rated 1.0/5.0 (1)

 
<< Go back

Powered by Help Desk Software HESK™