Chumpy's simple regpage and cash shop v1.5 beta

Page 1 of 37 12345678911 ... LastLast
Results 1 to 15 of 544
  1. #1
    The Dinosaur chumpywumpy is offline
    The OmegaRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Chumpy's simple regpage and cash shop v1.5 beta

    Chumpy's simple regpage and cash shop v1.5 beta
    Dunno why i'm bothering to release this. Nobody wants it

    This is a basic cash shop designed to work with my simple regpage that uses game Alz from the player's warehouse for buying cash items. The layout is loosely based on the official Cabal EU cash shop without quite so many tabs.

    Tested on WinXP 32 bit, Windows 2003 64 bit, Xampp, MSSQL 2000, MSSQL 2005.

    Make sure you read the readme.txt carefully.



    Download v1.5-> http://www.mediafire.com/download.php?atjuj55nwjt

    Download -> My latest item images

    For those that need extra help hexing cabalmain.exe i have made a small video guide at http://mrmagoo.psiblade.net/hex.exe (compiled flash vid)

    v1.5 changes
    ============

    It is now possible to log in via the regpage and access both the shop and
    the shop admin, you are no longer restricted to accessing in-game only. The
    game login and password is used to log in.

    When buying items in the cash shop Alz is no longer taken directly from the
    warehouse. You must log into the regpage and transfer Alz from warehouse
    to the bank (you can only do this when not logged into the game). Alz from
    the bank is used to buy cash items either whilst logged into the regpage
    or from the in-game cash shop button.

    This method does make it easier for those that want donations or some other
    form of payment for cash items as you can now populate the bank manually.

    DO NOT use the X at the top left of the cash shop itself to try and exit
    back to the other panels. The game uses a special URL to close the in-game
    browser and this won't work outside the game. Anywhere outside the actual
    cash shop the X button should be ok.


    Upgradng from v1
    ==================

    1. Copy the new files to the webserver
    - Your existing config.php will not be overwritten
    - You will need to copy the ALLOW_BANK section into your existing config
    if you want to use the option.

    2. Run database/upgrade_v1.sql on you cash shop database
    - Existing items will not be lost


    New Installations
    ===================

    1. Copy the files to a directory on your webserver.

    2. Copy config.default.php->config.php, edit to add your MSSQL server logon and
    website/forums. Make SURE you set the right ServerIdx or cash items will not
    get delivered!

    3. Create a new database called "CashShop" and run database/db.sql on it.

    4. In etc/cabal/WorldSvr_XX_YY.ini set the following:

    UseCashShop=1

    Only enable it on WorldSvrs you want the shop available from.

    5. Open cabalmain.exe in a hex editor and look around 0x3dee8c. The actual address
    will be different for different cabalmain.exes but the string you are looking
    for (assiming it hans't been changed already) is:

    http://shop.cabal.ogplanet.com/cabal...fault.aspx?v1=

    Once you have found the string is being used for the cash shop address and replace:

    http://www.myserver.com/webshop.php?v1=

    The string must be properly zero terminated and cannot be longer than 63 chars
    unless you know how to relocate the string in the exe.

    To see exactly what address the client is using hit the cash shop button in
    game. Right-click and select Properties. That will help you find it in the exe
    using a search ;)

    6. Test.


    Test mode is enabled by default so you can check the shop is picking up the right
    users when launched using the in game cash shop button. It will display the
    UserNum (v1), the login AuthKey (v2), confirm the login name and the amount of Alz
    is the login's Warehouse. It should look similar to this:

    data=v1=1&v2=5229E0C411AF4F23B968B0653A76F043
    v1=1
    v2=5229E0C411AF4F23B968B0653A76F043
    Found user ok.
    Name=Test.
    Alz=999999999.

    One you are happy it is working ok open config.php and set the following:

    // Print debug info at the top of the cash shop pages
    define('TESTMODE',false);


    Adding/Editing/Deleting items
    ===============================

    Items are added using the admin button on the left of the cash shop pages.

    The admin button will only appear if at least 1 char on your account is
    a GM (Nation=3). Otherwise the button will not appear and any attempts to
    access the admin panel will result in hack attempt messages.


    Disabling Alz transfers
    =========================

    In config.php:

    define('ALLOW_BANK',false);

    Set this to false if you don't want to let players transfer Alz to the bank.
    This enables you to populate the bank in other ways such as donations.


    Maintenance Mode
    ==================

    In config.php:

    // Maintenance mode, open to GMs only.
    define('MAINTMODE',false);

    Set this to true and only accounts with at least 1 GM character can access the
    cash shop.


    IP validation
    ===============

    In config.php:

    // Uses LastIp validation as well as UserNum and AuthKey
    // Can cause problems
    define('IPVALIDATION',false);

    The shop uses the UserNum and AuthKey from the DB to authorise people in the shop
    and enabling this will also check the player's IP address matches the LastIp in
    the database too. This can cause problems on some setups but for security reasons
    keep it enabled unless you get a lot of unexpected hack attempt messages when trying
    to use the cash shop.





    Download mirrors:

    MediaFire Link

    My Direct Mirror
    Last edited by cypher; 28-09-09 at 09:31 PM. Reason: removing cypher`s mirror


  2. #2
    Account Inactive shaider123 is offline
    InactiveRank
    Sep 2008 Join Date
    16Posts

    Re: Chumpy's simple regpage and cash shop beta

    what does "The string must be properly zero terminated" means

  3. #3
    Account Inactive christoper is offline
    InactiveRank
    Aug 2007 Join Date
    PhP DecoderLocation
    1,560Posts

    Re: Chumpy's simple regpage and cash shop beta

    im just confuse i cant see where i can log in... some little help?

  4. #4
    Account Inactive an2ny_18 is offline
    InactiveRank
    May 2005 Join Date
    114Posts

    Re: Chumpy's simple regpage and cash shop beta

    just follow the guide and read the info!. have u ever try to play in official server?

    anyway i think this is same as official server, no need to login, v1 is to get your account ID.

  5. #5
    Account Inactive christoper is offline
    InactiveRank
    Aug 2007 Join Date
    PhP DecoderLocation
    1,560Posts

    Re: Chumpy's simple regpage and cash shop beta

    nope.

    if u cant log how u can buy items just common fact. only ;))

  6. #6
    Account Inactive shaider123 is offline
    InactiveRank
    Sep 2008 Join Date
    16Posts

    Re: Chumpy's simple regpage and cash shop beta

    you log in in game. :) thats for sure. you buy in game. i already make it work and its great. just make sure that your warehouse have some Alz .

    HOw do i compute for item duration? if i put 00000000 it still expires.

  7. #7
    Account Inactive an2ny_18 is offline
    InactiveRank
    May 2005 Join Date
    114Posts

    Re: Chumpy's simple regpage and cash shop beta

    opsss, i mean no need to login for this script it will get your userNUM if you LOGIN in game. just click the Cabal Shop button in game.

    follow this guide

    5. Open cabalmain.exe in a hex editor and look around 0x3dee8c. The actual address
    will be different for different cabalmain.exes but the string you are looking
    for (assiming it hans't been changed already) is:

    hxxp://shop.cabal.ogplanet.com/cabalAppShop/default.aspx?v1=

    Once you have found the string is being used for the cash shop address and replace:

    hxxp://www.myserver.com/webshop.php?v1=

    The string must be properly zero terminated and cannot be longer than 63 chars
    unless you know how to relocate the string in the exe.

    To see exactly what address the client is using hit the cash shop button in
    game. Right-click and select Properties. That will help you find it in the exe
    using a search ;)
    cheers

    EDIT: i think you need to enter 31 for permanent.

  8. #8
    Account Inactive maligno_raziel is offline
    InactiveRank
    Jun 2006 Join Date
    27Posts

    Re: Chumpy's simple regpage and cash shop beta

    Hello I need help.
    The SHOPADMIN does not activate any idea

    Thank you for the this very good page.

  9. #9
    Account Inactive an2ny_18 is offline
    InactiveRank
    May 2005 Join Date
    114Posts

    Re: Chumpy's simple regpage and cash shop beta

    based on chumpy readme file from the script.

    Adding/Editing/Deleting items
    ===============================

    Items are added using the admin button on the left of the cash shop pages.

    The admin button will only appear if at least 1 char on your account is
    a GM (Nation=3). Otherwise the button will not appear and any attempts to
    access the admin panel will result in hack attempt messages.

  10. #10
    Account Inactive maligno_raziel is offline
    InactiveRank
    Jun 2006 Join Date
    27Posts

    Re: Chumpy's simple regpage and cash shop beta

    Everything is still equal.. T_T


  11. #11
    Account Inactive an2ny_18 is offline
    InactiveRank
    May 2005 Join Date
    114Posts

    Re: Chumpy's simple regpage and cash shop beta

    how about this?

    // Print debug info at the top of the cash shop pages
    define('TESTMODE',false);

  12. #12
    Account Inactive shaider123 is offline
    InactiveRank
    Sep 2008 Join Date
    16Posts

    Re: Chumpy's simple regpage and cash shop beta

    Quote Originally Posted by an2ny_18 View Post
    EDIT: i think you need to enter 31 for permanent.
    thanks value 31 makes it permanent. but how about if i want it for 3 days and then it win expire?
    how to compute it?

  13. #13
    The Dinosaur chumpywumpy is offline
    The OmegaRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Chumpy's simple regpage and cash shop beta

    Quote Originally Posted by kooldudez View Post
    @Sir chumppy

    can i request for your simple reg page? coz your link is deleted...

    btw thanks for the share.....GREAT!!!
    The regpage is bundled with the shop now (index.php). If you put the shop in www.mywebs.com/cabal go to that address in your browser and you will see the regpage ;)

    Quote Originally Posted by maligno_raziel View Post
    Everything is still equal.. T_T

    IP validation can sometimes cause problems like that which is why it is possible to switch it off. Look in config.php and set define('IPVALIDATION',false); to define('IPVALIDATION',true); and see if that works.

  14. #14
    Account Inactive kooldudez is offline
    InactiveRank
    Dec 2007 Join Date
    *DarK_SiDed*Location
    464Posts

    Re: Chumpy's simple regpage and cash shop beta

    @Sir cypher

    why is my cash shop in game not working? " the service is not yet avaible?

    even i hex the cabalmain.

  15. #15
    Account Inactive an2ny_18 is offline
    InactiveRank
    May 2005 Join Date
    114Posts

    Re: Chumpy's simple regpage and cash shop beta

    Quote Originally Posted by kooldudez View Post
    @Sir cypher

    why is my cash shop in game not working? " the service is not yet avaible?

    even i hex the cabalmain.
    Please read the guide carefully, you need to activate it from your server.
    Code:
    # Allow cash shop
    # You must have a cash shop website set up
    # Your client must also be hexed to the correct URL for your shop
    AllowCashShop=1



Page 1 of 37 12345678911 ... LastLast

Advertisement