Jump to content
MakeWebGames

New and improved inventory code sources for free!


MDK666

Recommended Posts

Re: [mccodes v2]New and improved inventory code sources for free!

 

Very Nice, I just have a couple of questions. Pretty noobish questions so please forgive me.

1.) How does one go about offering more other then strength and defense for the items, like iq and agility.

2.) Say you make an item that offers 12 in defense, does that mean 12% or just 12 in general, if its just 12 in general how would I change it to %?

Thanks for the help and thank you for sharing with us :)

you can use any stat by selecting it in the effect area.. and u supply the info on if u want 12% or 12 which 12 percent is 12% and 12 value is just 12

Link to comment
Share on other sites

  • 4 weeks later...
  • Replies 83
  • Created
  • Last Reply

Top Posters In This Topic

Re: [mccodes v2]New and improved inventory code sources for free!

Hey i dunno whats wrong but when trying to give out a weapon im getting this proberlem

QUERY ERROR: Column count doesn't match value count at row 1

Query was INSERT INTO inventory VALUES('',10,1,1,0,0)

Any solutions

Link to comment
Share on other sites

Re: [mccodes v2]New and improved inventory code sources for free!

there should only be 4 VALUES on the inventory dbase you have 5 which is causing the count error

inv_id

inv_itemid

inv_userid

inv_qty

taken from staff_items.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

  • 1 month later...

Re: [mccodes v2]New and improved inventory code sources for free!

 

there should only be 4 VALUES on the inventory dbase you have 5 which is causing the count error

 

inv_id

inv_itemid

inv_userid

inv_qty

taken from staff_items.php

 

You're unable to view this code.

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

 

ummm... I have five in my inventory table. The 5th id for the armory lent items, so if anyone else has this problem it may be that for you too. Just add ,'' to the statement to complete for 5 columns inventory tables with the lent armory feature.

Oh and thanks for the awsome free mod!!

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

Re: [mccodes v2]New and improved inventory code sources for free!

So it sends an event to the user you are giving an item to...

Find function give_item_submit in staff_items.php

find

You're unable to view this code.

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

 

add under

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: [mccodes v2]New and improved inventory code sources for free!

Whenever I unequip items now i get

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/s4man1/public_html/unequip.php:2) in /home/s4man1/public_html/globals.php on line 6

 

Everything will unequip except the primary weapon

Link to comment
Share on other sites

Re: [mccodes v2]New and improved inventory code sources for free!

 

Whenever I unequip items now i get

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/s4man1/public_html/unequip.php:2) in /home/s4man1/public_html/globals.php on line 6

 

Everything will unequip except the primary weapon

Possibly you added a space in that page you trying to call before the <?PHP tag

It would be the best answer

Link to comment
Share on other sites

  • 2 weeks later...

Re: [mccodes v2]New and improved inventory code sources for free!

 

Just to mention a small note :)

When your adding your types to the database make sure that your staff_items.php is laid out the same way as your tables.....

example

if your tables are

 

You're unable to view this code.

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

Then when adding these to the staff_items.php make sure they are in the same order as above.

 

You're unable to view this code.

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

 

same also applies for your SQL queries......

 

You're unable to view this code.

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

 

Or you may find when Editing or adding your new Selections they may be added to the wrong place.

yeah found that out when i wanted to use this script THNX btw.

that the sql queries where wrong placed so this one below will fix the odd difference with the boots and helmet:

 

You're unable to view this code.

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

 

tested but the other items you equip except for weapons and armor dont add attack damage/defence.

dude they work unless you edited the core..

Link to comment
Share on other sites

Re: [mccodes v2]New and improved inventory code sources for free!

 

tested but the other items you equip except for weapons and armor dont add attack damage/defence.

dude they work unless you edited the core..

they dont..because the attack script dont use those other equips and i dont know how to modify it.

Link to comment
Share on other sites

Re: [mccodes v2]New and improved inventory code sources for free!

 

there should only be 4 VALUES on the inventory dbase you have 5 which is causing the count error

inv_id

inv_itemid

inv_userid

inv_qty

taken from staff_items.php

 

You're unable to view this code.

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

 

use this..

Link to comment
Share on other sites

  • 2 weeks 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...