View Full Version : How do I create dummy items?
Chaotican
03-07-2006, 09:40 PM
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 ...
ALTER TABLE (TABLE_PREFIX)user ADD COLUMN yourfield INT UNSIGNED NOT NULL DEFAULT '0'
-CMX
Xtrato
05-03-2006, 10: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, 03:33 AM
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, 03:56 PM
The query works like this basically..
UPDATE tablename SET setname = setvalue WHERE wherename = wherevalue
-CMX
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.