MDK666 Posted November 8, 2008 Author Share Posted November 8, 2008 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 Quote Link to comment Share on other sites More sharing options...
BARR3TT Posted December 1, 2008 Share Posted December 1, 2008 Re: [mccodes v2]New and improved inventory code sources for free! This is a realy nice mod Quote Link to comment Share on other sites More sharing options...
BARR3TT Posted December 1, 2008 Share Posted December 1, 2008 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 Quote Link to comment Share on other sites More sharing options...
Uridium Posted December 1, 2008 Share Posted December 1, 2008 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. Quote Link to comment Share on other sites More sharing options...
BARR3TT Posted December 1, 2008 Share Posted December 1, 2008 Re: [mccodes v2]New and improved inventory code sources for free! That did the trick. Thanks very much Quote Link to comment Share on other sites More sharing options...
BluntMan Posted December 1, 2008 Share Posted December 1, 2008 Re: [mccodes v2]New and improved inventory code sources for free! i found one error with ur code, u cant credit user items, if u have a fix for this it would be appreciated :-D Quote Link to comment Share on other sites More sharing options...
cruz Posted January 27, 2009 Share Posted January 27, 2009 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!! Quote Link to comment Share on other sites More sharing options...
DISTORTED Posted February 14, 2009 Share Posted February 14, 2009 Re: [mccodes v2]New and improved inventory code sources for free! im getting this error when i try to add items to shops QUERY ERROR: Column count doesn't match value count at row 1 Query was INSERT INTO shopitems VALUES('',32,4) Quote Link to comment Share on other sites More sharing options...
SpEcKs Posted February 15, 2009 Share Posted February 15, 2009 Re: [mccodes v2]New and improved inventory code sources for free! This is a good mod but i wont beusing this as i have a better inventory Quote Link to comment Share on other sites More sharing options...
Karlos Posted February 15, 2009 Share Posted February 15, 2009 Re: [mccodes v2]New and improved inventory code sources for free! Yea.... Everyone has a "better" everything nowadays... Quote Link to comment Share on other sites More sharing options...
SpEcKs Posted February 15, 2009 Share Posted February 15, 2009 Re: [mccodes v2]New and improved inventory code sources for free! Yeh but i actually have Where it has pictures and the more you use the weapons the worse the weapons look and you have to repair them :) Quote Link to comment Share on other sites More sharing options...
Dave Posted February 16, 2009 Share Posted February 16, 2009 Re: [mccodes v2]New and improved inventory code sources for free! Wouldn't it of been easier to put all the equip files into 1? Quote Link to comment Share on other sites More sharing options...
SpEcKs Posted February 16, 2009 Share Posted February 16, 2009 Re: [mccodes v2]New and improved inventory code sources for free! Good point iamwicked Quote Link to comment Share on other sites More sharing options...
p_T_s Posted March 2, 2009 Share Posted March 2, 2009 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. Quote Link to comment Share on other sites More sharing options...
Uridium Posted March 2, 2009 Share Posted March 2, 2009 Re: [mccodes v2]New and improved inventory code sources for free! adding {$_POST['itmname']} to the event will also tell the user what the name of the item is aswell as the items ID.. Quote Link to comment Share on other sites More sharing options...
REGGIE KRAY Posted March 9, 2009 Share Posted March 9, 2009 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 Quote Link to comment Share on other sites More sharing options...
Eternal Posted March 9, 2009 Share Posted March 9, 2009 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 Quote Link to comment Share on other sites More sharing options...
RazorBladerz Posted March 20, 2009 Share Posted March 20, 2009 Re: [mccodes v2]New and improved inventory code sources for free! good job mate Quote Link to comment Share on other sites More sharing options...
blade727 Posted March 28, 2009 Share Posted March 28, 2009 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. Quote Link to comment Share on other sites More sharing options...
mrmaxey Posted March 28, 2009 Share Posted March 28, 2009 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.. Quote Link to comment Share on other sites More sharing options...
Sparkz Posted March 28, 2009 Share Posted March 28, 2009 Re: [mccodes v2]New and improved inventory code sources for free! QUERY ERROR: Column count doesn't match value count at row 1 Query was INSERT INTO inventory VALUES('',1,1,1,0,0) When I Give Items That Comes Up o_O Quote Link to comment Share on other sites More sharing options...
blade727 Posted March 28, 2009 Share Posted March 28, 2009 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. Quote Link to comment Share on other sites More sharing options...
Sparkz Posted March 28, 2009 Share Posted March 28, 2009 Re: [mccodes v2]New and improved inventory code sources for free! MDK here is the link for my game www.fusioncrusades.ej.am please mail ID [1] ingame with problem or mail on here or email [email protected] Quote Link to comment Share on other sites More sharing options...
blade727 Posted March 29, 2009 Share Posted March 29, 2009 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.. Quote Link to comment Share on other sites More sharing options...
Sparkz Posted April 7, 2009 Share Posted April 7, 2009 Re: [mccodes v2]New and improved inventory code sources for free! someone post SQL for this inventory or the normal MCCODES V2 ONE thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.