ROOM ID 120 NAME "Bed Jumping!" PICT "taterbed.gif" PICTURE ID 1 NAME "arrowr.gif" TRANSCOLOR 56 ENDPICTURE PICTURE ID 2 NAME "arrowl.gif" TRANSCOLOR 56 ENDPICTURE SPOT ID 1 NAME "BasicScripts" OUTLINE 1,48 20,48 20,67 1,67 LOC 124,135 SCRIPT ; This script was written by Tandika Star ; email: Iptscrae@aol.com ; Palace: Behind the Wall, tomes.ksv.com:9998 ; This script may be freely distributed as long as all comments remain in place. ; ; tired = How much user has jumped ; toomuch = value below server's flood level. ; The above variables are used to keep the player from flooding the server and dying. ; change the value of toomuch below to at least 62 below the flood limit on the server. ON ENTER { tired GLOBAL 0 tired = NAKED "You can jump on the bed by standing in the middle of it and saying \x22jump\x22." LOCALMSG "...But don't let Mom catch you!" LOCALMSG } ON OUTCHAT { tired GLOBAL toomuch GLOBAL 100 toomuch = { { ; figure out how much to jump. { 0 i = 26 RANDOM 5 + height = 2 RANDOM 2 RANDOM - s2s = { POSX s2s + POSY 5 - SETPOS i ++ } { height i > } WHILE ; go up 0 i = { POSX s2s + POSY 5 + SETPOS i ++ } { height i > } WHILE ; go down ; increase tiredness height 2 * tired + tired = { ; This handles falling off the bed. If you use a different picture, ; then you will have to reset the "edges" of where jumping is allowed. 0 2 SETSPOTSTATELOCAL 0 tired = POSX 342 SETPOS "!WAAAAAaaaaa!" SAY "!I fell off!" SAY } POSX 186 < POSX 366 > OR IF ; Reset the edges here! } { "@" POSX ITOA + "," + POSY ITOA + "!You can't! You're not in the middle of the bed!" + LOCALMSG } 1 2 GETSPOTSTATE == IFELSE } { 0 tired = ; Makes user rest so they don't flood the server "@" POSX ITOA + "," + POSY ITOA + "!You're tired out from too much jumping!" + LOCALMSG "@" POSX ITOA + "," + POSY ITOA + "!Catch your breath first!" + LOCALMSG } tired toomuch < IFELSE "" CHATSTR = } CHATSTR "jump" == IF } ENDSCRIPT ENDSPOT SPOT ID 2 NAME "JumpingArea" OUTLINE 179,198 281,186 329,201 214,216 LOC 128,96 SCRIPT ON SELECT { 1 2 SETSPOTSTATELOCAL } ON LEAVE { { CLEARLOOSEPROPS PAINTCLEAR } NBRROOMUSERS 2 < IF } ENDSCRIPT ENDSPOT SPOT ID 3 OUTLINE 99,45 115,45 115,57 99,57 LOC 107,51 ENDSPOT DOOR ID 5 DONTMOVEHERE DEST 102 OUTLINE 437,5 508,3 508,31 438,31 LOC 472,17 PICTS 1,0,0 ENDPICTS ENDDOOR DOOR ID 6 DONTMOVEHERE DEST 147 OUTLINE 11,2 62,2 62,33 11,33 LOC 36,17 PICTS 2,0,0 ENDPICTS ENDDOOR ENDROOM