[GUIDE] Notice window on login

Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    Fuck. SheenBR is offline
    ModeratorRank
    Feb 2008 Join Date
    Jaú, BrazilLocation
    2,391Posts

    [GUIDE] Notice window on login


    RaGEZONE Recommends

    RaGEZONE Recommends

    Here in this video you can see it in action: (this video is about another thing, but the window I want to show you is here, so I didnt want to record a new video just to show the window...)


    Lets learn how to do that:

    First, open your hotuk and add this 2 lines: (if non-existing)

    Code:
    *NOTICE_URL "http://255.255.255.255/notice.asp"
    Now, in your IIS wwwroot folder, create notice.asp and write in it:

    Code:
    <% 'Written by Sandurr
    Dim gFileSystemObject, gFile
    Dim strMenu, strNews, strSplit
    
    
    strSplit = Chr("&H"& "0D")
    
    
    Set gFileSystemObject=Server.CreateObject("Scripting.FileSystemObject")
    Set gFile=gFileSystemObject.OpenTextFile(Server.MapPath("notice.txt"), 1)
    
    
    Do While gFile.AtEndOfStream = False
       strNews = strNews & gFile.ReadLine
    Loop
    
    
    gFile.Close
    Set gFile=Nothing
    Set gFileSystemObject=Nothing
    
    
    Response.Write("Code=1 Txt=" & strNews & strSplit)
    %>
    In the same folder of the asp file, create a notice.txt and place any text you want.

    Everytime any player login, that window will pop up.

    PS: Change 255.255.255.255 with your host's WAN ip
    Last edited by SheenBR; 05-06-13 at 03:44 AM.


  2. #2
    Account Upgraded | Title Enabled! microamazing is offline
    True MemberRank
    Jan 2007 Join Date
    403Posts

    Re: [GUIDE] Notice window on login

    where is my credits ???

  3. #3
    Fuck. SheenBR is offline
    ModeratorRank
    Feb 2008 Join Date
    Jaú, BrazilLocation
    2,391Posts

    Re: [GUIDE] Notice window on login

    You weren't exclusively responsible for this achievement, so I can't give credits to you sorry. I found better to say it is public knoledge

  4. #4
    Account Upgraded | Title Enabled! microamazing is offline
    True MemberRank
    Jan 2007 Join Date
    403Posts

    Re: [GUIDE] Notice window on login

    o yeah, i didn't do all by myself, some ppl post some SS too.
    IN FACT, you just lear it by my post i show how to do, in the way, so, did you don't think its just ??

  5. #5
    Account Inactive Vormav is offline
    InactiveRank
    Jan 2009 Join Date
    1,342Posts

    Re: [GUIDE] Notice window on login

    Thanks for sharing.

    *DISP_BILLING_TIME <- unrelated, you don't need it to see notice


    Here is my PHP version (for people that have servers on Linux):

    /var/www/notice.php
    Code:
    <? 
    
    $CR = chr(13); // carriage return
    
    $file = file_get_contents('notice.txt', true);
    
    $ReturnCode = "Code=1"." "."Txt=".$file.$CR;
    
    print $ReturnCode;
    
    ?>
    /var/www/notice.txt
    Code:
    notice text
    /home/pristontale/.wine/drive_c/PristonTale/GameServer/hotuk.ini
    Code:
    *NOTICE_URL http://192.168.56.101/notice.php
    Use your server IP.


    example:

  6. #6
    Custom title enabled bobsobol is offline
    May 2007 Join Date
    UKLocation
    5,751Posts

    Re: [GUIDE] Notice window on login

    Quote Originally Posted by microamazing View Post
    where is my credits ???
    <% 'Written by Sandurr
    The code is credited to Sandurr, but I've seen guides on this which pre-date his servers, or FusionPT or even SGPT.

    It's ancient knowledge, and various versions of that same ASP code exist in many releases.

    The actual chat about how to do it is buried in ancient '05 - '07 posts, many of them talking about the GamerSpace emulator. So GJ Sheen on bringing it back to life. :)

    If some post of yours prompted him to do so here micro, thanks. :D

    Credits? Sheen could have said "I didn't invent this, I'm just re-presenting it since it's kinda old stuff that got lost years ago" but that's rather implied by the age of the code he uses to illustrate it. Don't you think?

    I love to see credits, but in this case, if Sheen dug up everyone who has cited this information around the web, the list would be longer than the guide. Heck, if he went back through the names on the posts I've read on getting the output of that page just right and not using Apache to make it and responding to the request with a web-server written in VB and so on on *this* very forum the list would still be longer than the guide. XD
    Last edited by bobsobol; 09-06-13 at 01:54 AM.

  7. #7
    Hardcore Member netomarquis is offline
    MemberRank
    Dec 2006 Join Date
    106Posts

    Re: [GUIDE] Notice window on login

    Anyone knows how to use it to alert a specified player?(not to all players)

  8. #8
    Custom title enabled bobsobol is offline
    May 2007 Join Date
    UKLocation
    5,751Posts

    Re: [GUIDE] Notice window on login

    Very difficult, but possible. The URL is given to the client by the server, so you need to add a parameter to the URL, then trace the client code in Olly to find where the URL is downloaded, and replace, or append the user name to the url before it is requested. Then modify the ASP to perform a look-up and provide a player-centric response using HTTP GET for parameters.

  9. #9
    Account Inactive celoat is offline
    InactiveRank
    Feb 2012 Join Date
    6Posts

    Re: [GUIDE] Notice window on login

    how to use "<br>" or "\n" or "<p>" on this code?

  10. #10
    Hardcore Member Antiox is offline
    MemberRank
    Aug 2013 Join Date
    127.0.0.1Location
    105Posts

    Re: [GUIDE] Notice window on login

    Is it possible to Edit this thing?

  11. #11
    Custom title enabled bobsobol is offline
    May 2007 Join Date
    UKLocation
    5,751Posts

    Re: [GUIDE] Notice window on login

    @celoat: Use /n in it's binary form. (&h0a)
    @Antiox: Yup. Olly game.exe

  12. #12
    Account Inactive celoat is offline
    InactiveRank
    Feb 2012 Join Date
    6Posts

    Re: [GUIDE] Notice window on login

    Quote Originally Posted by bobsobol View Post
    @celoat: Use /n in it's binary form. (&h0a)
    @Antiox: Yup. Olly game.exe
    thanks, but not solve :s

    (&h0a)


    /n/n

  13. #13
    Hardcore Member Antiox is offline
    MemberRank
    Aug 2013 Join Date
    127.0.0.1Location
    105Posts

    Re: [GUIDE] Notice window on login

    Its hexa decimal? and what is the code?

  14. #14
    Custom title enabled bobsobol is offline
    May 2007 Join Date
    UKLocation
    5,751Posts

    Re: [GUIDE] Notice window on login

    Quote Originally Posted by celoat View Post
    thanks, but not solve :s
    You have entered the string '(&h0A)' You need to insert the ASCII character which is represented by the hex figure 0A (0x0a or &h0a... however you want to indicate that this is a hex number.

    This is like <br>, which is often interpreted as \n or 0x0D or 0x0D0A (depending on the platform standard, 0x0A for MAC, 0x0D for Unix and 0x0D0A for Windows) by the browser. The problem is that you need to send the specific character code for what C considers '\n\l' on Windows, because this is not a smart and industry standard web-browser, this is a Windows video game. ^_^

    It can accept the conventional '\n\l' C formatting, but most web servers will see that as being escaped strings and protect you from accidentally passing that as a string by double-escaping the source into "\\n\\l", for safety sake. So you need to force the issue. (somehow)

    This is often easier from a text file on an FTP server, than on a Web server. Particularly if the web server is performing Server Side Scripting such as ASP, ASP.Net or PHP. However, most of them can send those codes. The problem is that there is a different convention for writing them in each server and language, and different web clients interpret their output differently when you forgo the convention of <br>. ;)
    Quote Originally Posted by Antiox View Post
    Its hexa decimal? and what is the code?
    0A is linefeed ('\l') 0D is carriage return. ('\n')

  15. #15
    Hardcore Member Antiox is offline
    MemberRank
    Aug 2013 Join Date
    127.0.0.1Location
    105Posts

    Re: [GUIDE] Notice window on login

    Thanks Bob!




Page 1 of 2 12 LastLast

Advertisement