Jump to content
MakeWebGames

[mccode v1] Buy Items with Crystals


oxidati0n

Recommended Posts

This doesn't work for V2 since V2 has a totally modified Item database!

Now i have been generous enough to do this, So enjoy!

Here it is..The mod you all have been waiting for!

This modification makes sure your items can be bought for crystals instead of cash

Execute Query

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

find in shops.php where it says

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

replace with

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

next find in itembuy.php where it says

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

replace with

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Next open up in admin.php and find where it says

If you know this it is in function new_item_form()

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

add above

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

find later in the admin.php where it says

This should be the function new_item_submit()

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

replace with

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

There your done! It should function now.

Any force you give will be very appreciated.

Nick.

Link to comment
Share on other sites

Re: !FREE ****Buy Items with Crystals****** FREE!

open shops.php, replace with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

replace itembuy.php with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

new file called itemcbuy.php.

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: !FREE ****Buy Items with Crystals****** FREE!

LOL

the difference between itembuy.php and itemcbuy.php that you've posted is

 

mysql_query("UPDATE users SET money=money-$price WHERE userid=$userid",$c);

and in itemcbuy.php

mysql_query("UPDATE users SET crystals=crystals-$price WHERE userid=$userid",$c);

you can just do

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

i dont get the need in a whole new script for a few lines of code :|

Link to comment
Share on other sites

Re: !FREE ****Buy Items with Crystals****** FREE!

 

LOL

the difference between itembuy.php and itemcbuy.php that you've posted is

 

mysql_query("UPDATE users SET money=money-$price WHERE userid=$userid",$c);

and in itemcbuy.php

mysql_query("UPDATE users SET crystals=crystals-$price WHERE userid=$userid",$c);

That didnt work for me it kept coming as crystals so i changed it

you can just do

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

i dont get the need in a whole new script for a few lines of code :|

Link to comment
Share on other sites

  • 3 months later...

Re: !FREE ****Buy Items with Crystals****** FREE!

 

open shops.php, replace with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

replace itembuy.php with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

new file called itemcbuy.php.

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

i did this but nuffing changed y

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...