Jump to content
MakeWebGames

Recommended Posts

Posted

I don't know if this was made already, but here it is. I made this mostly from scratch, taking a bit of code from the inventory. But mostly I made it. I know you can tweak it to make it better, but It is good for our needs. So here it goes.

First make a file called display.php

 

You're unable to view this code.

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

 

Make a file called displayadd.php

 

You're unable to view this code.

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

 

Make a file called displayrem.php

 

You're unable to view this code.

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

 

**Find inventory.php**

You're unable to view this code.

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

 

and add underneath

 

You're unable to view this code.

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

 

**Find in viewuser.php**

 

You're unable to view this code.

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

 

and replace with

 

You're unable to view this code.

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

 

SQL query

 

You're unable to view this code.

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

 

Hope you like it. I have added itmpics from another mod I use. I don't remember who made it, but it is available here as well. Enjoy it!

Posted

Re: [mccode v2] Display Cabinet

 

what dose this do

It moves items from your inventory to your display cabinet for others to see what you have. So you can just keep in your inventory the items you need.

Posted

Re: [mccode v2] Display Cabinet

at a quick reminder about my scripts. I do not use crystals, instead they are called credits, so you will have to modify the code accordingly.

Posted

Re: [mccode v2] Display Cabinet

Yes this was a paid mod by Cronus Tezza,

I'm not sure i think he later released it free check his website,

either way it should be removed especially if it is still a paid mod.

Posted

Re: [mccode v2] Display Cabinet

 

Yes this was a paid mod by Cronus Tezza,

I'm not sure i think he later released it free check his website,

either way it should be removed especially if it is still a paid mod.

Can't get on his website atm, ill have to wait till he comes on msn, to confirm.

Posted

Re: [mccode v2] Display Cabinet

I must admit I still do not understand much about what I can post or not. I made this from scratch, just took some code from the inventory, but that is it.

hehe np Tezza.

Posted

Re: [mccode v2] Display Cabinet

 

`*` bad... how many times do i have to post this to people before they get it into their heads...

yeah i forgot to take em out, but i will do that now.

Posted

Re: [mccode v2] Display Cabinet

 

`*` bad... how many times do i have to post this to people before they get it into their heads...

Your like me Zero :P, you hate them.... and i dont stop banging on about tables :P

Posted

Re: [mccode v2] Display Cabinet

 

`*` bad... how many times do i have to post this to people before they get it into their heads...

Your like me Zero :P, you hate them.... and i dont stop banging on about tables :P

lol. how can i edit if my ip is different. It won't let me edit it out :(

Posted

Re: [mccode v2] Display Cabinet

 

`*` bad... how many times do i have to post this to people before they get it into their heads...

Your like me Zero :P, you hate them.... and i dont stop banging on about tables :P

like i stated in previous posts Tezza TABLES CAN LOOK NICE...

just repost the mod Kix

Posted

Re: [mccode v2] Display Cabinet

Only thing I noticed was it lets a player go negative. So a little snippet needs to be added to tell them they dont have enough crystals.

Posted

Re: [mccode v2] Display Cabinet

 

Only thing I noticed was it lets a player go negative. So a little snippet needs to be added to tell them they dont have enough crystals.

Good point. Here is the fix for that.

find this code in display.php

 

You're unable to view this code.

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

 

and replace with

 

You're unable to view this code.

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

 

Remember that you need to change credits for crystals for it to work for you.

Posted

Re: [mccode v2] Display Cabinet

 

Parse error: syntax error, unexpected T_ELSE in /home/ml/public_html/display.php on line 77

 

I will just paste the entire code, because I am not getting any errors

display.php

 

You're unable to view this code.

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

Posted

Re: [mccode v2] Display Cabinet

Hi can anyone help me with this please.

When I go onto viewuser then click on Diplay Cabnet, I get an error on the display.php

This error is on the page:

QUERY ERROR: Table 'admindb.display' doesn't exist

Query was SELECT * FROM display WHERE disp_userid=1

If anyone can help then Thank you!

Posted

Re: [mccode v2] Display Cabinet

 

Hi can anyone help me with this please.

When I go onto viewuser then click on Diplay Cabnet, I get an error on the display.php

This error is on the page:

QUERY ERROR: Table 'admindb.display' doesn't exist

Query was SELECT * FROM display WHERE disp_userid=1

If anyone can help then Thank you!

Well apparently you did not create the table. did u run the SQL info I put in the post?

  • 3 weeks later...
Posted

Re: [mccode v2] Display Cabinet

if you just paste this with any item id in the game it will add it to the display even if you dont have it in ur inventory :(

displayadd.php?ID=$userid&action=addit&itm=ITEMID

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...