PDA

View Full Version : Cash Question


trackpads
01-25-2005, 10:54 AM
Hey!

Great hack but I have a question. Does it use the $vboptions[uttpoints_pointtable] variable or is it coded to access the uttpoints field directly?

The reason is that I am thinking of renaming my points field to something else (namely 'money') and I worried it will effect the RPG. Since Ucash supports different names it just depends on the settings of each hack that supports Ucash.

If it does use the uttpoints table could I just search and replace it with the name of my new 'money' field?

Thanks in advance for you help,

-Jason

PolyMarauder
01-25-2005, 11:24 PM
Not sure how much help I can be but from what I understand of what you plan on doing (which is very similar to what I plan on doing) I noticed in the RPG manual the following variables.

$rpgcash - Display the amount of money a user has in his/her pocket (not in the bank) Cash: $$rpgcash Cash: $1200

$rpgbank - Display the amount of money a user has in the bank
Bank: $$rpgbank Bank: $1500

$rpgmoney - Display the total amount of money a user has between the bank and his/her pocket

So it looks like they are pulling off the points table to me. Now I am not sure if the name variable has anything to do with the points variables, but then again I am a noob with all of this stuff so no clue really but I am curious as well.

Revan
01-26-2005, 11:22 AM
As of v2, it is hardcoded to use the ´uttpoints´ field from the ´user´ table, but for v3 I plan to use the $vboptions for fetching the same points table as the uCS does.

To do this yourself, you would need to open almost every single RPG .php file and manually weed out every place that this is set - I myself do not even know as I haven't started on doing this yet.

//peace

trackpads
01-26-2005, 01:57 PM
As of v2, it is hardcoded to use the ?uttpoints? field from the ?user? table, but for v3 I plan to use the $vboptions for fetching the same points table as the uCS does.

To do this yourself, you would need to open almost every single RPG .php file and manually weed out every place that this is set - I myself do not even know as I haven't started on doing this yet.


//peace

Thanks!

I ended up actually just making Pets work with Ucash. Now I am happy :) :)

Thanks again!

-Jason