Jump to content
MakeWebGames

Recommended Posts

Posted

This is a simple search the streets mod I created. Im on the verge of making this into a more advanced one, which I may post later on.

Add the fallowing sql:

You're unable to view this code.

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

 

Add this to cronday.php:

You're unable to view this code.

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

 

Create a page called streets.php:

You're unable to view this code.

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

 

Create a page called searchstreets.php:

You're unable to view this code.

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

 

Screenshot:

1eukaw.jpg

Posted

Re: [mccode v2]My Simple Search Streets

Thanks, in this one you can only find money. But in the advanced one that im on the verge of finishing, you can find items, money, crystals...etc depending on where you search.

Posted

Re: [mccode v2]My Simple Search Streets

can you not add items yourself... it's pretty basic, just add anothing think instead of updating the users money in the db update there inventory with what ever item id you want,

here,

You're unable to view this code.

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

 

I think that will work...

Posted

Re: [mccode v2]My Simple Search Streets

Yeh that works...im sure $db->query("INSERT INTO inventory VALUES('',ITEM ID,$userid,ITEM QUANTITY)"); would work allot better and less code to.

 

You're unable to view this code.

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

 

Im debating on if I want to post the advanced version as a free mod or not....

Posted

Re: [mccode v2]My Simple Search Streets

Just ask yourself, 1) Would you pay for it, 2) is there better free scripts and 3)Could it easily be sold on.. (if you make any mod you shold email the code to yourself so that the date on the email will prove you created it.)

Posted

Re: [mccode v2]My Simple Search Streets

im not knocking this, as i think it is quite good, but isnt it practically the same as others? oh and yeah the insert into will work, but im not sure about making a streets mod a paid mod, i would keep it as free ^^

Posted

Re: [mccode v2]My Simple Search Streets

 

can you not add items yourself... it's pretty basic, just add anothing think instead of updating the users money in the db update there inventory with what ever item id you want,

here,

You're unable to view this code.

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

 

I think that will work...

 

I can try lol

Posted

Re: [mccode v2]My Simple Search Streets

There are a few street scripts on here and some are able to place items into your inventory. have a browse about or even look at how your own items are placed into your inventory. on the staff_items.php theres a insert in the script that will help do what your looking for.

But bare in mind when you do this with the above script the chances of finding the item will be far greater so make a small uncostly item.

print"BLAH BLAH BLAH you found an hidden item check your inventory";

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

}

Change the 1 value to that of one of your own inventory item

VALUES('',1,$userid,1)",$c);

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