Rs-Lite
Would you like to react to this message? Create an account in a few clicks or log in to continue.


#1 rsps
 
PortalHomeplayDonate Now!Latest imagesvoteSearchLog inRegister

 

 Fast webclient link ;)

Go down 
2 posters
AuthorMessage
nabil2

nabil2


Posts : 181
Join date : 2012-01-12
Age : 25
Location : Oslo, Norway

Fast webclient link ;) Empty
PostSubject: Fast webclient link ;)   Fast webclient link ;) D398b06c43c1cbc59136a738f3e191bdSun Feb 05, 2012 9:48 am

Hello
Now will i show you how to set upp my ''fast webclient link''
It's basicly a batch file.
when v2 came out, I was one of them'' error-Click for Detail'' guys.
It sucked so hard that I decided I have to learn batch files.
The first thing I thought after I had learned it was to make something for this sevres;)
So I went to a create a shortcut to the WebClient.
But it was very basic, so I added some more stuff Wink

How to set it upp:
First thing you need to do is to get your Notepad upp. If you dont know how to get Notepad[omg then ur a big noob, lol jk] Just go to Start Menu > All Programs > Accessories > Notepad

Now copy this thing: [ctrl+c or just right click > copy]


Code:
@echo off
Title Rs-lite webclient- Fast /_/_/ (bye hippi jump)
color 4e
start iexplore http://www.rs-lite.com/h3-webclient
Echo Hello, awsume Rs-lite gamer
echo ................................................................................
echo ................................................................................
echo ................................................................................

echo Bored off playing :S? Play a game ;-) [only Noughts at Crosses and the moment, may be added more later ;) ]
echo................................................................................
echo................................................................................
echo................................................................................
:main
   call :titleScreen
   if "%EXIT%"=="1" exit /b
   call :firstSetup

   :main_Loop
   call :resetBoard
   call :gameLoop
   call :endGameScreen %win%
   if /i %rematch%==Y (
      goto main_Loop
   )
   exit /b


:titleScreen
   echo Welcome to Noughts and Crosses.
   echo.
   echo.
   echo Type EXIT to quit the game.
   echo.
   
   :askP1Type
      set p1Type=
      set /p p1Type="Player 1 - Human or computer? [H/C] - "
      if /i "!p1Type!"=="C" goto askP2Type
      if /i "!p1Type!"=="H" goto askP2Type
      if /i "!p1Type!"=="EXIT" (
         set EXIT=1
         exit /b
      )
   goto askP1Type

   :askP2Type
      set p2Type=
      set /p p2Type="Player 2 - Human or computer? [H/C] - "
      if /i "!p2Type!"=="C" exit /b
      if /i "!p2Type!"=="H" exit /b
      if /i "!p2Type!"=="EXIT" (
         set EXIT=1
         exit /b
      )
   goto askP2Type



:firstSetup
   set p1Score=0
   set p2Score=0
   set turn=
   set p1Char=X
   set p2Char=O
   set p1Score=0
   set p2Score=0
   set NL=^


   ::winList contains all the possible winning lines, separated by the new line character.
   set winList=1 2 3 !NL! 4 5 6 !NL! 7 8 9 !NL! 1 4 7 !NL! 2 5 8 !NL! 3 6 9 !NL! 1 5 9 !NL! 3 5 7
   exit /b

:ResetBoard
   for /l %%I in (1,1,9) do (
      set G%%I=%%I
   )
   if "%turn%"=="" (
      set /a turn=%random% %% 2 + 1
   ) else (
      set /a turn= 3 - %turn%
   )
   set turnCount=0
   set availableMoves=123456789
   set errorMessage=
   set win=0
   exit /b

:gameLoop
   set /a otherTurn= 3 - %turn%
   if /i "!p%turn%Type!"=="H" (
      call :humanTurn
   ) else (
      call :computerTurn %turn% !p%turn%Char! !p%otherTurn%Char!
   )
   set /a turnCount+=1
   set availableMoves=!availableMoves:%move%=!
   if NOT %win%==0 exit /b
   if %turnCount%==9 exit /b
   set /a turn= 3 - %turn%
   goto GameLoop

:humanTurn
   call :displayGrid
   echo.
   echo.%infoMessage%
   set infoMessage=
   set move=
   set /p move= Player %turn%'s turn. Enter the number of your move [1-9] -
   if !move! lss 1 (
      set infoMessage=Invalid move, enter a number between 1 and 9.
      goto humanTurn
   )
   if !move! gtr 9 (
      set infoMessage=Invalid move, enter a number between 1 and 9.
      goto humanTurn
   )
   if NOT "!G%Move%!"=="!Move!" (
      set infoMessage=That move has already been made, choose another.
      goto humanTurn
   )
   set G%move%=!p%turn%Char!
   call :CheckWin %turn% !p%turn%Char!
   exit /b

:computerTurn

   set move=
   for /f "tokens=1-3 delims= " %%I in ("!winList!") do (      
      if "!G%%I!!G%%J!!G%%K!"=="%2%2%%K" (
         set move=%%K
      )
      if "!G%%I!!G%%J!!G%%K!"=="%2%%J%2" (
         set move=%%J
      )
      if "!G%%I!!G%%J!!G%%K!"=="%%I%2%2" (
         set move=%%I
      )

      if NOT "!move!"=="" (
         set G!move!=%2
         set win=%1
         exit /b
      )

   )

   for /f "tokens=1-3 delims= " %%I in ("!winList!") do (
      if "!G%%I!!G%%J!!G%%K!"=="%3%3%%K" (
         set move=%%K
      )
      if "!G%%I!!G%%J!!G%%K!"=="%3%%J%3" (
         set move=%%J
      )
      if "!G%%I!!G%%J!!G%%K!"=="%%I%3%3" (
         set move=%%I
      )

      if NOT "!move!"=="" (
         set G!move!=%2
         exit /b
      )
   )
   set /a moveGuess= %random% %% ( 9 - %turnCount% )
   set move=!availableMoves:~%moveGuess%,1!
   set G%move%=!p%turn%Char!
   exit /b

:displayGrid
   cls
   echo.
   echo                          ^|  ^|
   echo                        %G1% ^| %G2% ^| %G3%
   echo                      -------------
   echo                        %G4% ^| %G5% ^| %G6%
   echo                      -------------
   echo                        %G7% ^| %G8% ^| %G9%
   echo                          ^|  ^|
   exit /b

:checkWin
   for /f "tokens=1-3 delims= " %%I in ("!winList!") do (
      if "!G%%I!!G%%J!!G%%K!"=="%2%2%2" (
         set win=%1
         exit /b
      )
   )
   set win=0
   exit /b

:endGameScreen
   if NOT %win%==0 (
      set /a p%win%Score+=1
   )
   call :Displaygrid
   echo.
   echo.
   if %win% gtr 0 (
      echo Player %win% wins^!
   ) else (
      echo It's a draw^!
   )
   echo.
   echo.
   echo              Current Scores
   echo              --------------
    echo Player 1 Score - %p1Score%            Player 2 Score - %p2Score%
   echo.
   set rematch=
   set /p rematch="Would you like a rematch? [Y/N] - "
   if /i "!rematch!"=="Y" exit /b
   if /i "!rematch!"=="N" (
      exit /b
   ) else (
      goto endGameScreen
   )
pause

Now 3 important speps:

Step 1: Go to File > Save as

Step 2: Name your file but at the end of the name, insert ".bat" or your batch file will not work at all. For example, I can name it "Shortcut-rs-lite" and that would work.

Step 3: For the "Save as Type" select "All Files" not "Text Files."

Now press start and search for ''Shortcut-rs-lite'' or wtf u named it and drag it over to your dash board. Now double click it and it will open internet exploer > rs-lite webclient.
You will also have a homemaded game if you get bored lol [ I dunno]

Hope you will use this method.
Back to top Go down
Nabilâ„¢




Posts : 19
Join date : 2012-01-14

Fast webclient link ;) Empty
PostSubject: Re: Fast webclient link ;)   Fast webclient link ;) D398b06c43c1cbc59136a738f3e191bdWed Feb 08, 2012 6:51 am

nice guide mate, but... well, there is no but! good job! Wink keep up the good work Smile.
Back to top Go down
nabil2

nabil2


Posts : 181
Join date : 2012-01-12
Age : 25
Location : Oslo, Norway

Fast webclient link ;) Empty
PostSubject: Re: Fast webclient link ;)   Fast webclient link ;) D398b06c43c1cbc59136a738f3e191bdWed Feb 08, 2012 7:48 am

ty Wink
Back to top Go down
nabil2

nabil2


Posts : 181
Join date : 2012-01-12
Age : 25
Location : Oslo, Norway

Fast webclient link ;) Empty
PostSubject: Re: Fast webclient link ;)   Fast webclient link ;) D398b06c43c1cbc59136a738f3e191bdThu Feb 09, 2012 2:13 am

Update: removed the .............................. at the start
btw added for chrome and firefoxs users aswell...
code for chrome:


Code:
@echo off
Title Rs-lite webclient- Fast /_/_/ (bye hippi jump)
color 4e
Start chrome.exe http://www.rs-lite.com/h3-webclient
Echo Hello, awsume Rs-lite gamer
echo.
echo.
echo.
echo.
echo Bored off playing :S? Play a game ;-) [only Noughts at Crosses and the moment, may be added more later ;) ]
echo.
echo.
echo.
:main
   call :titleScreen
   if "%EXIT%"=="1" exit /b
   call :firstSetup

   :main_Loop
   call :resetBoard
   call :gameLoop
   call :endGameScreen %win%
   if /i %rematch%==Y (
      goto main_Loop
   )
   exit /b


:titleScreen
   echo Welcome to Noughts and Crosses.
   echo.
   echo.
   echo Type EXIT to quit the game.
   echo.
   
   :askP1Type
      set p1Type=
      set /p p1Type="Player 1 - Human or computer? [H/C] - "
      if /i "!p1Type!"=="C" goto askP2Type
      if /i "!p1Type!"=="H" goto askP2Type
      if /i "!p1Type!"=="EXIT" (
         set EXIT=1
         exit /b
      )
   goto askP1Type

   :askP2Type
      set p2Type=
      set /p p2Type="Player 2 - Human or computer? [H/C] - "
      if /i "!p2Type!"=="C" exit /b
      if /i "!p2Type!"=="H" exit /b
      if /i "!p2Type!"=="EXIT" (
         set EXIT=1
         exit /b
      )
   goto askP2Type



:firstSetup
   set p1Score=0
   set p2Score=0
   set turn=
   set p1Char=X
   set p2Char=O
   set p1Score=0
   set p2Score=0
   set NL=^


   ::winList contains all the possible winning lines, separated by the new line character.
   set winList=1 2 3 !NL! 4 5 6 !NL! 7 8 9 !NL! 1 4 7 !NL! 2 5 8 !NL! 3 6 9 !NL! 1 5 9 !NL! 3 5 7
   exit /b

:ResetBoard
   for /l %%I in (1,1,9) do (
      set G%%I=%%I
   )
   if "%turn%"=="" (
      set /a turn=%random% %% 2 + 1
   ) else (
      set /a turn= 3 - %turn%
   )
   set turnCount=0
   set availableMoves=123456789
   set errorMessage=
   set win=0
   exit /b

:gameLoop
   set /a otherTurn= 3 - %turn%
   if /i "!p%turn%Type!"=="H" (
      call :humanTurn
   ) else (
      call :computerTurn %turn% !p%turn%Char! !p%otherTurn%Char!
   )
   set /a turnCount+=1
   set availableMoves=!availableMoves:%move%=!
   if NOT %win%==0 exit /b
   if %turnCount%==9 exit /b
   set /a turn= 3 - %turn%
   goto GameLoop

:humanTurn
   call :displayGrid
   echo.
   echo.%infoMessage%
   set infoMessage=
   set move=
   set /p move= Player %turn%'s turn. Enter the number of your move [1-9] -
   if !move! lss 1 (
      set infoMessage=Invalid move, enter a number between 1 and 9.
      goto humanTurn
   )
   if !move! gtr 9 (
      set infoMessage=Invalid move, enter a number between 1 and 9.
      goto humanTurn
   )
   if NOT "!G%Move%!"=="!Move!" (
      set infoMessage=That move has already been made, choose another.
      goto humanTurn
   )
   set G%move%=!p%turn%Char!
   call :CheckWin %turn% !p%turn%Char!
   exit /b

:computerTurn

   set move=
   for /f "tokens=1-3 delims= " %%I in ("!winList!") do (      
      if "!G%%I!!G%%J!!G%%K!"=="%2%2%%K" (
         set move=%%K
      )
      if "!G%%I!!G%%J!!G%%K!"=="%2%%J%2" (
         set move=%%J
      )
      if "!G%%I!!G%%J!!G%%K!"=="%%I%2%2" (
         set move=%%I
      )

      if NOT "!move!"=="" (
         set G!move!=%2
         set win=%1
         exit /b
      )

   )

   for /f "tokens=1-3 delims= " %%I in ("!winList!") do (
      if "!G%%I!!G%%J!!G%%K!"=="%3%3%%K" (
         set move=%%K
      )
      if "!G%%I!!G%%J!!G%%K!"=="%3%%J%3" (
         set move=%%J
      )
      if "!G%%I!!G%%J!!G%%K!"=="%%I%3%3" (
         set move=%%I
      )

      if NOT "!move!"=="" (
         set G!move!=%2
         exit /b
      )
   )
   set /a moveGuess= %random% %% ( 9 - %turnCount% )
   set move=!availableMoves:~%moveGuess%,1!
   set G%move%=!p%turn%Char!
   exit /b

:displayGrid
   cls
   echo.
   echo                          ^|  ^|
   echo                        %G1% ^| %G2% ^| %G3%
   echo                      -------------
   echo                        %G4% ^| %G5% ^| %G6%
   echo                      -------------
   echo                        %G7% ^| %G8% ^| %G9%
   echo                          ^|  ^|
   exit /b

:checkWin
   for /f "tokens=1-3 delims= " %%I in ("!winList!") do (
      if "!G%%I!!G%%J!!G%%K!"=="%2%2%2" (
         set win=%1
         exit /b
      )
   )
   set win=0
   exit /b

:endGameScreen
   if NOT %win%==0 (
      set /a p%win%Score+=1
   )
   call :Displaygrid
   echo.
   echo.
   if %win% gtr 0 (
      echo Player %win% wins^!
   ) else (
      echo It's a draw^!
   )
   echo.
   echo.
   echo              Current Scores
   echo              --------------
    echo Player 1 Score - %p1Score%            Player 2 Score - %p2Score%
   echo.
   set rematch=
   set /p rematch="Would you like a rematch? [Y/N] - "
   if /i "!rematch!"=="Y" exit /b
   if /i "!rematch!"=="N" (
      exit /b
   ) else (
      goto endGameScreen
   )
pause

Back to top Go down
nabil2

nabil2


Posts : 181
Join date : 2012-01-12
Age : 25
Location : Oslo, Norway

Fast webclient link ;) Empty
PostSubject: Re: Fast webclient link ;)   Fast webclient link ;) D398b06c43c1cbc59136a738f3e191bdThu Feb 09, 2012 2:18 am

For firefox:

Code:
@echo off
Title Rs-lite webclient- Fast /_/_/ (bye hippi jump)
color 4e
Start firefox.exe http://www.rs-lite.com/h3-webclient
Echo Hello, awsume Rs-lite gamer
echo.
echo.
echo.
echo.
echo Bored off playing :S? Play a game ;-) [only Noughts at Crosses and the moment, may be added more later ;) ]
echo.
echo.
echo.
:main
   call :titleScreen
   if "%EXIT%"=="1" exit /b
   call :firstSetup

   :main_Loop
   call :resetBoard
   call :gameLoop
   call :endGameScreen %win%
   if /i %rematch%==Y (
      goto main_Loop
   )
   exit /b


:titleScreen
   echo Welcome to Noughts and Crosses.
   echo.
   echo.
   echo Type EXIT to quit the game.
   echo.
   
   :askP1Type
      set p1Type=
      set /p p1Type="Player 1 - Human or computer? [H/C] - "
      if /i "!p1Type!"=="C" goto askP2Type
      if /i "!p1Type!"=="H" goto askP2Type
      if /i "!p1Type!"=="EXIT" (
         set EXIT=1
         exit /b
      )
   goto askP1Type

   :askP2Type
      set p2Type=
      set /p p2Type="Player 2 - Human or computer? [H/C] - "
      if /i "!p2Type!"=="C" exit /b
      if /i "!p2Type!"=="H" exit /b
      if /i "!p2Type!"=="EXIT" (
         set EXIT=1
         exit /b
      )
   goto askP2Type



:firstSetup
   set p1Score=0
   set p2Score=0
   set turn=
   set p1Char=X
   set p2Char=O
   set p1Score=0
   set p2Score=0
   set NL=^


   ::winList contains all the possible winning lines, separated by the new line character.
   set winList=1 2 3 !NL! 4 5 6 !NL! 7 8 9 !NL! 1 4 7 !NL! 2 5 8 !NL! 3 6 9 !NL! 1 5 9 !NL! 3 5 7
   exit /b

:ResetBoard
   for /l %%I in (1,1,9) do (
      set G%%I=%%I
   )
   if "%turn%"=="" (
      set /a turn=%random% %% 2 + 1
   ) else (
      set /a turn= 3 - %turn%
   )
   set turnCount=0
   set availableMoves=123456789
   set errorMessage=
   set win=0
   exit /b

:gameLoop
   set /a otherTurn= 3 - %turn%
   if /i "!p%turn%Type!"=="H" (
      call :humanTurn
   ) else (
      call :computerTurn %turn% !p%turn%Char! !p%otherTurn%Char!
   )
   set /a turnCount+=1
   set availableMoves=!availableMoves:%move%=!
   if NOT %win%==0 exit /b
   if %turnCount%==9 exit /b
   set /a turn= 3 - %turn%
   goto GameLoop

:humanTurn
   call :displayGrid
   echo.
   echo.%infoMessage%
   set infoMessage=
   set move=
   set /p move= Player %turn%'s turn. Enter the number of your move [1-9] -
   if !move! lss 1 (
      set infoMessage=Invalid move, enter a number between 1 and 9.
      goto humanTurn
   )
   if !move! gtr 9 (
      set infoMessage=Invalid move, enter a number between 1 and 9.
      goto humanTurn
   )
   if NOT "!G%Move%!"=="!Move!" (
      set infoMessage=That move has already been made, choose another.
      goto humanTurn
   )
   set G%move%=!p%turn%Char!
   call :CheckWin %turn% !p%turn%Char!
   exit /b

:computerTurn

   set move=
   for /f "tokens=1-3 delims= " %%I in ("!winList!") do (      
      if "!G%%I!!G%%J!!G%%K!"=="%2%2%%K" (
         set move=%%K
      )
      if "!G%%I!!G%%J!!G%%K!"=="%2%%J%2" (
         set move=%%J
      )
      if "!G%%I!!G%%J!!G%%K!"=="%%I%2%2" (
         set move=%%I
      )

      if NOT "!move!"=="" (
         set G!move!=%2
         set win=%1
         exit /b
      )

   )

   for /f "tokens=1-3 delims= " %%I in ("!winList!") do (
      if "!G%%I!!G%%J!!G%%K!"=="%3%3%%K" (
         set move=%%K
      )
      if "!G%%I!!G%%J!!G%%K!"=="%3%%J%3" (
         set move=%%J
      )
      if "!G%%I!!G%%J!!G%%K!"=="%%I%3%3" (
         set move=%%I
      )

      if NOT "!move!"=="" (
         set G!move!=%2
         exit /b
      )
   )
   set /a moveGuess= %random% %% ( 9 - %turnCount% )
   set move=!availableMoves:~%moveGuess%,1!
   set G%move%=!p%turn%Char!
   exit /b

:displayGrid
   cls
   echo.
   echo                          ^|  ^|
   echo                        %G1% ^| %G2% ^| %G3%
   echo                      -------------
   echo                        %G4% ^| %G5% ^| %G6%
   echo                      -------------
   echo                        %G7% ^| %G8% ^| %G9%
   echo                          ^|  ^|
   exit /b

:checkWin
   for /f "tokens=1-3 delims= " %%I in ("!winList!") do (
      if "!G%%I!!G%%J!!G%%K!"=="%2%2%2" (
         set win=%1
         exit /b
      )
   )
   set win=0
   exit /b

:endGameScreen
   if NOT %win%==0 (
      set /a p%win%Score+=1
   )
   call :Displaygrid
   echo.
   echo.
   if %win% gtr 0 (
      echo Player %win% wins^!
   ) else (
      echo It's a draw^!
   )
   echo.
   echo.
   echo              Current Scores
   echo              --------------
    echo Player 1 Score - %p1Score%            Player 2 Score - %p2Score%
   echo.
   set rematch=
   set /p rematch="Would you like a rematch? [Y/N] - "
   if /i "!rematch!"=="Y" exit /b
   if /i "!rematch!"=="N" (
      exit /b
   ) else (
      goto endGameScreen
   )
pause
Back to top Go down
Sponsored content





Fast webclient link ;) Empty
PostSubject: Re: Fast webclient link ;)   Fast webclient link ;) D398b06c43c1cbc59136a738f3e191bd

Back to top Go down
 
Fast webclient link ;)
Back to top 
Page 1 of 1
 Similar topics
-
» Random banner fir rsl... made it very fast so.. erm.. yeah...

Permissions in this forum:You cannot reply to topics in this forum
Rs-Lite :: News :: Client Help-
Jump to: