vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   RPG Integration Hack (https://vborg.vbsupport.ru/forumdisplay.php?f=102)
-   -   Cash Question (https://vborg.vbsupport.ru/showthread.php?t=75074)

trackpads 01-25-2005 10:54 AM

Cash Question
 
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

Quote:

Originally Posted by Revan
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


All times are GMT. The time now is 11:46 PM.

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.01371 seconds
  • Memory Usage 1,716KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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