Jump to content
MakeWebGames

Recommended Posts

  • 2 weeks later...
Posted

Re: [mccode] Streets for v2.0

Can you help please :-D

I'm trying to get it to say the name of the item found when you search the streets...

So far i have added this...

 

You're unable to view this code.

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

 

It then says

You found a Resource id #14

I know its something simple i'm doing wrong but please help...

p.s. I am trying to learn this stuff :wink:

Posted

Re: [mccode] Streets for v2.0

 

Eracing69,

When something gets inserted into your inventory, it is a totally different insert than the others in your table... generally you wont have it so that it automatically groups together unless you build a mod for that.

You can, however, find the quantifier mod on here somewhere, which will allow you to click to quantify your items (group them together).

 

Hope that helped :)

 

I played around and found by changing 1 line in this streets script that the items would itemize by taking out a line and adding another were this line is in script

$db->query("INSERT INTO inventory VALUES('',$itemidexplore,$userid,1)",$c); print"

";

Replace with- item_add($ir['userid'], 40, 1);

and the item will go in 1 location in inventory 40 is what ever item number

 

  • 1 month later...
Posted

Re: [mccode] Streets for v2.0

Here's some code for adding stats to this kool mod. Of course you change the chance numbers and update $chance = rand(1,36);

 

You're unable to view this code.

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

 

hi can you post the page that tells the item name so i can use it thanks.

Only you can do that. Go look in your mySQL database. You'll see something like this..

--

-- Dumping data for table `items`

--

INSERT INTO items VALUES (1,5,'Energy Potion','Get your energy back.',

The first number is the item ID. The item name is after the second number.

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