Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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

The Cat in the Hat
Legend
Joined
Oct 26, 2005
Messages
4,475
Reaction score
677
Re: Chumpy's simple regpage and cash shop beta

I should have watched my mouth and not said/talked poop to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.
 
Junior Spellweaver
Joined
Sep 26, 2007
Messages
152
Reaction score
2
Re: Chumpy's simple regpage and cash shop beta

i edited Chumpy`s script little bet and now its working on CabalCash not ALZ ;) if anyone wants me to share PM;)
 
Joined
Jul 20, 2005
Messages
633
Reaction score
11
Re: Chumpy's simple regpage and cash shop beta

Good work chumpy.

I have 2 problem:

1)
chumpywumpy - Chumpy's simple regpage and cash shop v1.5 beta - RaGEZONE Forums

PS:
That is the problem?
Code:
// ServerIdx MUST match the one in WorldSvr_XX_YY.ini or cash items
// Will not get delivered correctly.
define('WorldSvr_24_01','1');

2)
chumpywumpy - Chumpy's simple regpage and cash shop v1.5 beta - RaGEZONE Forums

PS2: I check link for img (work perfectly)
view:
chumpywumpy - Chumpy's simple regpage and cash shop v1.5 beta - RaGEZONE Forums


Questions:

1) Is posible buy item for cash (not alz)?
 
The Cat in the Hat
Legend
Joined
Oct 26, 2005
Messages
4,475
Reaction score
677
Re: Chumpy's simple regpage and cash shop beta

I should have watched my mouth and not said/talked poop to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
Re: Chumpy's simple regpage and cash shop beta

Good work chumpy.

I have 2 problem:

1)
PS:
That is the problem?
Code:
// ServerIdx MUST match the one in WorldSvr_XX_YY.ini or cash items
// Will not get delivered correctly.
define('WorldSvr_24_01','1');

2)
PS2: I check link for img (work perfectly)
view:

Questions:

1) Is posible buy item for cash (not alz)?

Don't change the first bit og define('WorldSvr_24_01','1');, the first big MUST stays as SVR_IDX as the chop calls that as a variable. For you it should be define('SVR_IDX','1');

The second one looks like it doesn't like where the images is. It is a relative path to the ./images/ directory and putting it elsewhere won't work yet. Need to copy the file to that folder.

I will not be adding a true cabal cash system as i personally do not believe in profiting from stolen code. I know people really want a cahsh shop though so i compromised by releasing mine so people could mod it to suit their own needs.

Hello...
I cannot enter the ADMINSHOP..
I segui the guide and nothing.
If you have an idea or solution warn me. :*::*:
What is failing? I need to know what happes/doesn't happen (erors etc).

Ty so much for the nice release its working perfect.
Btw 1 question, If i wants to add a new area like weapons instead of putting them inside "Gear" how can i do that?
This is very easy to do. The category names were kept as number specifically so you can change them. Category 1 i tab 1 (left) and 5 is the right tab. Look at the array in config.php to change the diplsay names and use the blank tab images in /images/png to make new tabs.

atleast some1 is working hard ^^

good job bro.

i hope i get a release soon too... been lazy past few weeks.
I figured you needed some competition to make you work faster. I'm looking forward to your next release ;)

@Sir chumpy

pls help...with my error..look at my worldsvr.cfg is there anything wrong?
The .cfg file is a template file used by cabal_config.sh. If you edit that you need to run cabal_config.sh again to copy the settings into the worldsvr ini(s) or edit the inis directly.

Hello there chumpywumpy
nice release :D keep it coming XD
Anyways i wanted to ask about the website
im currently using MSSQL 2005 Express Edition
I wanted to ask how can i let the webserver to connect to the express edition server?
i tried 127.0.0.1 but doesn't seem to work
same for 127.0.0.1/SQLEXPRESS or smth
is there a way? thx
Can you connect to 127.0.0.1 using my GM tools? If you can then the problem is your php configuration and you need to check the mssql libs are enabled in your php.ini or use the freetds example i gave in the readme as a workaround.

Sorry chumpy, but i got this error about, "couldn't get warehouse Alz", does my DB error in configuration ?



thanks
Something is not right in your database as even 0 alz should return ok. DOes usernum 18 appear in the warehouse table? I can't be a stored procedure problem as i am readin the table directly at that point.

Im having the next problem when tryin to register an account.

chumpywumpy - Chumpy's simple regpage and cash shop v1.5 beta - RaGEZONE Forums



In the config my user is set to sa...

+ where is the WorldSvr_**_**.ini file ?
Something is not right with your xp_md5 support. Run "select dbo.fn_md5('test')" on your accoount db and it will fail returning null. Open your master db and look in the extended procedures folder for xp_md5. Check the path to the dll is correct and check you have read permissions to it as well.

The inis are in /etc/cabal

You didn't add the CashShop db or your SQL login has no permissions to it. The code cannot write values into the db.
 
Experienced Elementalist
Joined
Dec 16, 2007
Messages
227
Reaction score
0
Re: Chumpy's simple regpage and cash shop beta

@Sir chumpy

i already do that, but its same error. i used your server repack, and i also reinstall the server but same error.

can i request for your worldsvr.cfg?
 
Newbie Spellweaver
Joined
Oct 16, 2005
Messages
16
Reaction score
0
Re: Chumpy's simple regpage and cash shop beta

Big thank chumpy.
this work perfect.

why Alz in warehouse unmitigated??
in purchase itemshop a bis.

srry - English direful
 
Joined
Jul 20, 2005
Messages
633
Reaction score
11
Re: Chumpy's simple regpage and cash shop beta

@chumpywumpy

I reply in order ^^
1) Thanks, that fix the problem I had with the purchase of items.
2) I had not noticed until it finds the address of the image, thanks.
3) My intention is not to win money, just that I am using the "cash" as a sort of users earn points in events which gives access to items in the shop, thanks alike.

I asked him last ... I need him ".pdf" (if they use the photoshop) of the buttons I use in "Costumes", "gear", "pets", etc ". I need to be translated into spanish
Can you share it?
 
Experienced Elementalist
Joined
Dec 16, 2007
Messages
227
Reaction score
0
Re: Chumpy's simple regpage and cash shop beta

@All

how to configure it using wan ip? to be able to access the reg page to the web.
 
Experienced Elementalist
Joined
Dec 16, 2007
Messages
227
Reaction score
0
Re: Chumpy's simple regpage and cash shop beta

@kooldudez

wan ip: www.whatismyip.com
local ip: 127.0.0.1

yes sir i already know that. all i wanted to know is what do i need to put

in config.php? is my local ip or wan ip? cause when i browse the page cannot be

displayed.

btw, im using xampp.
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
Re: Chumpy's simple regpage and cash shop beta

@chumpywumpy

I reply in order ^^
1) Thanks, that fix the problem I had with the purchase of items.
2) I had not noticed until it finds the address of the image, thanks.
3) My intention is not to win money, just that I am using the "cash" as a sort of users earn points in events which gives access to items in the shop, thanks alike.

I asked him last ... I need him ".pdf" (if they use the photoshop) of the buttons I use in "Costumes", "gear", "pets", etc ". I need to be translated into spanish
Can you share it?
I have no problem with people using real cash or whatever for the shop but i don't want that feature myself so i'm not writing it or i will probably end up writing bits for almost all payment types and i will end up supporting things like paypal problems too. That is a can of worms i really don't want to open.

If you check /images/png you will find blank tabs and buttons which you can use to customise or translate as you need to. I think i have covered every button and the category names and i might even add a way of changing all of the other text without having to dig through the code. I still have lots of ideas for this shop code ;)

yes sir i already know that. all i wanted to know is what do i need to put

in config.php? is my local ip or wan ip? cause when i browse the page cannot be

displayed.

btw, im using xampp.

Nothing is config.php has to do with how the page is visible it is pretty much just connection info for the sql db. If xampp is properly installed then should work but you won't be able to use your wan ip unless you use a modem or a router that supports loopback. Most routers can't use the wan ip from inside the lan and your only workaround there is you add an internal dns record or hosts file entry to redirect lan clients to the correct lan address.

 
Newbie Spellweaver
Joined
Sep 10, 2008
Messages
29
Reaction score
0
Re: Chumpy's simple regpage and cash shop beta

did you add the databases and the proper tables in your sql?
@Chammpy
yea i did like this create new database CashShop and go to query

on CashShop
CREATE TABLE [ShopItems] (
[Id] [int] IDENTITY (1, 1) NOT NULL ,
[Name] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[Description] [varchar] (200) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[ItemIdx] [int] NOT NULL ,
[DurationIdx] [int] NOT NULL ,
[ItemOpt] [int] NOT NULL ,
[Image] [varchar] (200) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[Honour] [int] NULL ,
[Alz] [int] NULL ,
[Category] [int] NOT NULL ,
[Available] [int] NOT NULL
) ON [PRIMARY]
GO

something wrong?
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
Re: Chumpy's simple regpage and cash shop beta

Check the permissions on the database if you are not using your "sa" logon as the shop can't write to the tables.
 
Experienced Elementalist
Joined
Dec 16, 2007
Messages
227
Reaction score
0
Re: Chumpy's simple regpage and cash shop beta

@Chumpy

i have a static ip and all my ports are open and this is not my first time to config a reg page,

cause i already tried the reg page of rancp to the use of or no-ip.

so, i confuse what was wrong?
 
Newbie Spellweaver
Joined
May 25, 2005
Messages
77
Reaction score
1
Re: Chumpy's simple regpage and cash shop beta

another fix for available items:

"if you buy something from the item shop all of your items will be -1 available item. ALL OF THEM"

Replace this:

Code:
   if (mssql_num_rows($r)==0) {
	  error_box('Purchase failed','Not enough items left in the shop.');
  } else {
    $row = mssql_fetch_row($r);
    $itemidx=$row[3];
    $durationidx=$row[4];
    $itemopt=$row[5];
    $price=$row[8];
   
    if ($alz<$price) {
      error_box('Error','You do not have enough Alz to purchase the item');
    } else {
      $newalz=$alz-$price;
      $r=mssql_query("update ".DB_CSH.".dbo.ShopItems set Available=Available-1");
      $r=mssql_query("update ".DB_GAM.".dbo.cabal_warehouse_table set Alz='".$newalz."' where UserNum='".$v1."'");
      $r=mssql_query("exec ".DB_CCA.".dbo.up_addmycashitem '".$v1."','1','".SVR_IDX."','".$itemidx."','".$itemopt."','".$durationidx."'");
      error_box('Purchase successful','The item was successfully. You can claim the cash item by closing the cash shop.');
    }
  }

With this.

Code:
     if (mssql_num_rows($r)==0) {
	  error_box('Purchase failed','Not enough items left in the shop.');
  } else {
    $row = mssql_fetch_row($r);
    $itemidx=$row[3];
    $durationidx=$row[4];
    $itemopt=$row[5];
    $price=$row[8];
    $available=$row[10];
   
    if ($alz<$price) {
      error_box('Error','You do not have enough Alz to purchase the item');
    } else {
      $newalz=$alz-$price;
      $newavailable=$available-1;
      $r=mssql_query("update ".DB_CSH.".dbo.ShopItems set Available='".$newavailable."' where Id='".$row[0]."'");
      $r=mssql_query("update ".DB_GAM.".dbo.cabal_warehouse_table set Alz='".$newalz."' where UserNum='".$v1."'");
      $r=mssql_query("exec ".DB_CCA.".dbo.up_addmycashitem '".$v1."','1','".SVR_IDX."','".$itemidx."','".$itemopt."','".$durationidx."'");
      error_box('Purchase successful','The item was successfully. You can claim the cash item by closing the cash shop.');
    }
  }
 
Experienced Elementalist
Joined
Oct 26, 2007
Messages
296
Reaction score
0
Re: Chumpy's simple regpage and cash shop beta

i didn't try it lately, but now i try it and i encounter problem

when i browse is message appear on the page "HACK ATTEMPT"
so how should fix it?, do i need to RUN my server so that i can enter into "http://localhost/admin.php"?

thats what i need to know for now i want to fix this, all cabalshop trigger has been already
executed then i open all the possible files have in this share i try also "http://localhost/webshop.php"
and after that this message will appear....
Code:
User data=
v1=
v2=
IP address: 127.0.0.1
Hack attempt

also i try the "http://localhost/buy.php" then the message appear is
Code:
Hack attempt
 
Newbie Spellweaver
Joined
May 25, 2005
Messages
77
Reaction score
1
Re: Chumpy's simple regpage and cash shop beta

please read the guide carefully, hack attemp if you go direct to script but if you hex your client and enable the itemshop in your server will do the trick.

I attach my demo for alz and cash shop.

This cash shop is sync with john_d data base for easy to add items and edit.
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Sep 2, 2008
Messages
11
Reaction score
0
Re: Chumpy's simple regpage and cash shop beta

i cant the script to replace it, what file is it?
 
Back
Top