Jump to content
MakeWebGames

New and improved inventory code sources for free!


MDK666

Recommended Posts

  • Replies 83
  • Created
  • Last Reply

Top Posters In This Topic

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

you now will need to make the following files

equip_amulet.php

 

You're unable to view this code.

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

 

equip_boots.php

 

You're unable to view this code.

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

 

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

equip_helmet.php

 

You're unable to view this code.

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

 

equip_ring.php

 

You're unable to view this code.

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

 

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

ok could someone help me now im trying to get a right side menu on my side with the following stats

Name: $gn{$u} [{$ir['userid']}] $d

Level: {$ir['level']}

Turns: {$ir['turns']}

Money: {$fm}

Crystals: {$ir['crystals']}

Diamonds: {$ir['diamonds']}

TOC Credits: {$ir['credits']}

[<font color=red>Emergency Logout</font>]</font>

and a few others im useing shavadas template could anyone help me out on this because im confused as hell

Link to comment
Share on other sites

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

 

shavadabravas template is one of the most awkward to edit and btw when you create items for boots and helmet the boots equip as helmet and the helmet equips as boots

not sure why thats happening, maybe you mixed the file names up when making them because i justed tested the same codes i posted and its working fine, as for the template do u know of a template thats probaly a dark and black on to use to add the right menu on my site.

Link to comment
Share on other sites

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

 

what is ur site m8

http://thedarkone.pcriot.com

 

also could you tell us what do each item give you

right now nothing unless u put a effect into the item that u make, say u put a effect on a ring called will ring with a increase of say 50 when u equip the right and dont quote me on this but it should give that use 50 extra will while it equiped, and it should remove the 50 will after he/she takes it off

Link to comment
Share on other sites

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

ALTER TABLE `items` ADD `head` int(11) NOT NULL default '0';

ALTER TABLE `items` ADD `legs` int(11) NOT NULL default '0';

ALTER TABLE `items` ADD `feet` int(11) NOT NULL default '0';

ALTER TABLE `items` ADD `mask` int(11) NOT NULL default '0';

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

$itmname=$_POST['itmname'];

$itmdesc=$_POST['itmdesc'];

$weapon=abs((int) $_POST['weapon']);

$armor=abs((int) $_POST['armor']);

$head=abs((int) $_post['head']);

$legs=abs((int) $_POST['legs']);

$feet=abs((int) $_POST['feet']);

$mask=abs((int) $_POST['mask']);

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

$m=$db->query("INSERT INTO items VALUES('{$_POST['itmid']}',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor, $head, $legs, $feet, $mask)");

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

Link to comment
Share on other sites

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

ALTER TABLE `items` ADD `head` int(11) NOT NULL default '0';

ALTER TABLE `items` ADD `legs` int(11) NOT NULL default '0';

ALTER TABLE `items` ADD `feet` int(11) NOT NULL default '0';

ALTER TABLE `items` ADD `mask` int(11) NOT NULL default '0';

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

$itmname=$_POST['itmname'];

$itmdesc=$_POST['itmdesc'];

$weapon=abs((int) $_POST['weapon']);

$armor=abs((int) $_POST['armor']);

$head=abs((int) $_post['head']);

$legs=abs((int) $_POST['legs']);

$feet=abs((int) $_POST['feet']);

$mask=abs((int) $_POST['mask']);

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

$m=$db->query("INSERT INTO items VALUES('{$_POST['itmid']}',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor, $head, $legs, $feet, $mask)");

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

thanks illusions for pointing this out i think this is some of the errors everyone is haveing on the mod.

for everyone who wants to know what my site is at its at: http://www.the-dark-one.co.cc

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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