Jump to content
MakeWebGames

quantify items automatically


seanybob

Recommended Posts

Re: [mccode] quantify items automatically

Um Excuse me, but why are you using such a script on 2.0? Mc Codes 2.0 does not need auto-grouping.

Use the built in item_add() and item_remove() functions.

But if you insist for god knows what random reason, you cannot use V1.1 queries such as mysql_query in a V 2.0 environment.

Link to comment
Share on other sites

Re: [mccode] quantify items automatically

 

Um Excuse me, but why are you using such a script on 2.0? Mc Codes 2.0 does not need auto-grouping.

Use the built in item_add() and item_remove() functions.

But if you insist for god knows what random reason, you cannot use V1.1 queries such as mysql_query in a V 2.0 environment.

The above post said it worked on v2, thats why :?

Is there a v2 quantifier(paid or free, if paid where do I purchase it from)?

Link to comment
Share on other sites

Re: [mccode] quantify items automatically

You're not understanding. There is absolutely no need for a quantifier for Version 2.0. The engine has a built in item_add and item_remove functions. Look at any of the item-related source codes if you cant figure out how to use them. itemsend.php will show you how its done

Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...
  • 1 month later...

Re: [mccode] quantify items automatically

 

You're not understanding. There is absolutely no need for a quantifier for Version 2.0. The engine has a built in item_add and item_remove functions. Look at any of the item-related source codes if you cant figure out how to use them. itemsend.php will show you how its done

Incase you're new and searching the forums trying to find the answer ... This is what worked for me (I'm not an experienced coder, so hopefully a polite one will fix any problems with it).

 

You're unable to view this code.

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

 

5 corresponds to your item ID. The easiest way for me to find this would be to click on the item's Info link and take a look at the address in my address bar. After your website name will be "/iteminfo.php?ID=5". Whatever the ID= is, will be your item id.

1 corresponds to the quantity of items you want the player to recieve.

Link to comment
Share on other sites

Guest Anonymous

Re: [mccode] quantify items automatically

And you don't want to use item_send....

Look at the documentation for INSERT .... ON DUPLICATE KEY UPDATE ... in the MySQL manual

Link to comment
Share on other sites

  • 7 months later...
  • 6 months later...
  • 4 years 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...