vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vbBux / vbPlaza (https://vborg.vbsupport.ru/forumdisplay.php?f=171)
-   -   How do I create dummy items? (https://vborg.vbsupport.ru/showthread.php?t=109758)

Chaotican 03-07-2006 09:40 PM

How do I create dummy items?
 
Im running a website for a custom game server, and im trying to intergrate the website to the game.

I cant seem to figure out how to create a dummy item that does *nothing* on the site aside from being able to be purchased and shown that it was purchased.


After getting around one bug, I seem to be hung on the setname. It gives the error when I try to purchase a dummy item:

The eStore option you are trying to purchase has an invalid Set Name.

Thats with the setname blank, when It ry to put something in it, it causes an IE crash on purchase heh.

CMX_CMGSCCC 03-08-2006 12:10 AM

First off you need to add a field to your "user" table.

Whatever field name you use there, thats what you enter for the "setname".

Then for the Set Value, put a 1, and use the Set Type Bitfield.

And that should do it for you.

To add a field to your user table run a query something like ...

Code:

ALTER TABLE (TABLE_PREFIX)user ADD COLUMN yourfield INT UNSIGNED NOT NULL DEFAULT '0'
-CMX

Xtrato 05-03-2006 09:43 PM

im wondering if you could explain the whole thing abit better because i would like to also use this but alot and knowing how to use it would help.

Umm the Set Name : how do i know what to put in that field.

The query: will i be adding the name i made in the Set Name to "yourfield" part of the query.

Sorry & Thanks

Kungfu 05-05-2006 02:33 AM

Quote:

Originally Posted by Xtrato
im wondering if you could explain the whole thing abit better because i would like to also use this but alot and knowing how to use it would help.

Umm the Set Name : how do i know what to put in that field.

The query: will i be adding the name i made in the Set Name to "yourfield" part of the query.

Sorry & Thanks


the query yes you need to change what you want it to be where it says yourfield. Like customitem or dummyitem. Whatever you want or what it is. As far as the other thing im not too sure of.

CMX_CMGSCCC 05-07-2006 02:56 PM

The query works like this basically..

UPDATE tablename SET setname = setvalue WHERE wherename = wherevalue

-CMX


All times are GMT. The time now is 02:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01477 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete