vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   RPG Integration Hack (https://vborg.vbsupport.ru/forumdisplay.php?f=102)
-   -   Another small "bug" or oversight :P (https://vborg.vbsupport.ru/showthread.php?t=78634)

Dorign 03-23-2005 04:33 PM

Another small "bug" or oversight :P
 
In the options, you're able to name the currency the itemshop uses. However, in the templates, they're all hardcoded for "Gil." :P

Revan 03-23-2005 05:15 PM

Yeah yeah... but changing that takes bloody ages! :p
Nah jk I will get around to it for Final, I promise :)

Dorign 03-23-2005 06:53 PM

Take your time, I know changing it takes bloody ages.. I was going through changing "Gil" to "GP," but it took so long I just settled for "Gil." :P

Revan 03-23-2005 07:34 PM

If you are feeling lucky and want to test something out for me, you could try using the search and replace in vB Styles and Templates, replacing "Gil" by "$vboptions[rpg_currency]"

hang on... all I have to do is use this search and replace in my xml file
Why didnt I think of this.... d'oh!

First step: Open postbit_legacy and find both instances of "Gil" replacing with $vboptions[rpg_currency]

Okay I made revision1 of the rpg_templates.xml, upload and run the Repair -> Templates in rpg_install.php :)
You tell me where else that phrase is hardcoded and I'll fix, but I think that there shaved the major bits off ;)

Dorign 03-24-2005 07:49 PM

Did that.. still saw "Gil" in a few places.. might have been something I did, though.

rpgcp.php
lottery.php

Two of the places I saw "Gil." Also, though it wasn't tested, I noticed when I retreated from a monster once, it said the monster gained 4 gil; not sure if that one was hardcoded or set to the variable.

I'll leave it as Gil, though, for now.. if someone else wants to test this.. :P
(my users like "Gil")

Revan 03-24-2005 08:38 PM

Monster gained 4 gil? What the hell do monsters want with money? :p
And Im sure I fixed both those scripts, might be summit you did then ;)

Dorign 03-25-2005 11:07 PM

All I know is it said the monster got 4 gil when I ran.. :P

Revan 03-26-2005 12:42 AM

That was a non-harmful bug, pwned.

Dorign 03-26-2005 02:26 AM

Yeah, I thought it was funny, reminded me of fleeing in FFIV and VI. :P Still, just figured I'd mention that it was naming "gil" there, in case you ever were searching things down in the future.


All times are GMT. The time now is 08: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.01537 seconds
  • Memory Usage 1,714KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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