Knowledgebase
Storm Palace Hosting > Storm Hosting Help Desk > Knowledgebase

Ask a question:


Pin room scripts

Solution Pinroom Scripts

There are different variations of pin scripts, but the main idea remains the same. You want the ability to send someone to a room and KEEP them there for a specified amount of time. Some want to do even more to their unruly members like DELAY them forever or open up 20 browsers at once. I dont agree with those tactics because with those you are messing with their computer if you cause them to crash and in palace, you have the ability to ban without being nasty and causing damage to their systems.

This is one developed on scriptbarn list....

;this is for the gate script
ON INCHAT { dpn GLOBAL
{ 1 dpn = 100 GOTOROOM
} CHATSTR "chill out" == WHOCHAT WHONAME "[*]" GREPSTR AND
ISWIZARD NOT AND IF }

ON SIGNON { dpn GLOBAL
{ 100 GOTOROOM } dpn IF }

;these are for the bad boy room
ON INCHAT {
dpn GLOBAL
{ "Ok, you're loose" LOCALMSG
0 dpn =
} CHATSTR "free" == WHOCHAT WHONAME "^[*]" GREPSTR AND IF }

ON LEAVE { dpn GLOBAL
{ "palace://yourpalacename/badboyroomidnumber" NETGOTO
} dpn IF }

If you whisper chill out at the gate wearing a star to the person you want
to give a timeout to, they are sent to the chillin room. The only way they
can come out of there is if you say free to them. If they disconnect and try to reconnect
to your palace, the ON LEAVE handler (if youve added your palace name and
bad boy room id number) will send them back to that room.

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

;helper variation written by Cid
The pinning script above, as written is for wizzes only, but you can easily
set it up so a person doesn't have to be wiz only... just get rid of the

WHOCHAT WHONAME "[*]" GREPSTR AND ISWIZARD NOT AND

conditions in both of the INCHAT handlers...

BUT... anybody can then pin anyone else... there's no way to insure you or your "helpers" won't get "pinned" without setting up another script that would set a GLOBAL variable for
the helper and use that as a condition in the pinning room script... for instance, this could be added at your gate:

ON OUTCHAT {
{ helper GLOBAL
1 helper =
"" CHATSTR =
} CHATSTR "helperpw" == IF }

now a "helper" can become a "mini-wiz" by saying helperpw and then the "pinning" script would get changed to:

; entrance script
ON INCHAT {
dpn GLOBAL
helper GLOBAL
{ 1 dpn = 100 GOTOROOM
} CHATSTR "chill out" == helper AND IF
}

ON SIGNON { dpn GLOBAL
{ 100 GOTOROOM } dpn IF }

; pinning room script
ON INCHAT {
helper GLOBAL
dpn GLOBAL
{ "Ok, you're loose" LOCALMSG
0 dpn =
} CHATSTR "free" == helper AND IF }

ON LEAVE { dpn GLOBAL
{ "palace://palace.addy.com/100" NETGOTO
} dpn IF }

This same "helper password" routine could be used to give other "powers"
to your helpers by setting up other scripts that only they could
execute...
Of course, this isn't fool-proof, but if someone other than your helper either says the helper password or types in /helper GLOBAL 1 helper = on the chatline, they will be able to send
someone to the pinning room by saying "chill out"... for security reasons, I BLY suggest you change the variable names ("dpn" and "helper"), the pinning command ("chill out"), and the helper password ("helperpw") to something else so no one that might have read this will be able to come and pin YOU...

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

;Hammer wrote and explains this one
Create the room that you want to be the spank room. Remember the room ID# because you will need to know it to allscray someone there. In this room make a door the whole size of the room and set the door as dont move here and normal . That way you cant tell there is a door there. Then insert this script into it and modify as you like. Change the 1000 me setalarm if the "pin" isn't long enough for your liking. Put the script in and then go back into that room to see how it works.

ON ENTER {
spank GLOBAL
0 spank=
520 390 SETPOS [1280] SETPROPS
1000 ME SETALARM
}
ON SELECT {
spank GLOBAL
{ "@322 165 You haven't been released yet....SO SIT THERE!" LOCALMSG }
{ MOUSEPOS SETPOS } spank NOT IFELSE
}
ON ALARM {
spank GLOBAL
"You have now served your time in hell you can move now" LOCALMSG
NAKED
1 spank=
}

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

Ok, this is just for fun and to fool someone. This script goes into your cyborg in the OUTCHAT handler.

{ 500 450 setpos
"Page from System: " USERNAME + " pinned by Jade" + ROOMMSG
Naked "chains" DONPROP
"" CHATSTR =
} CHATSTR "pinme" == IF

Change where you see my name in this script to whomever you want to appear as a ROOMMSG for all to see WHO pinned you. Be smart, and pick a wiz or god. LOL

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

;Hammer sent me this to add
{
CLEARPROPS
"CHAINS" DONPROP
520 390 SETPOS
"page from the system "USERNAME& " pinned by "&WHOTARGET WHONAME &ROOMMSG
"" CHATSTR =
} CHATSTR "pinme" == IF

Does almost the same thing as the one above, except you click on the person you want in the roommsg.
 
Was this article helpful? yes / no
Article details
Article ID: 297
Category: Room Scripts
Date added: 10-05-2011 23:49:58
Views: 717
Rating (Votes): Article not rated yet (0)

 
<< Go back

Powered by Help Desk Software HESK™