vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   RPG Integration Hack /w Battle (BETA) (https://vborg.vbsupport.ru/showthread.php?t=46417)

Bitsys 01-30-2003 04:42 PM

Quote:

Originally posted by saint_seiya
I thought the error was in funtions php but that error appears when i post any code you put in install.php . That time i put the link to the battle results... but as i said it happens with any code :(
And you don't get the error when you don't paste any code from install.txt?

saint_seiya 01-30-2003 04:46 PM

I dont know, i am gonna test that. Ok, one more thing.

Quote:

xTooeyx: "There seems to have been a slight problem with the VGCity Forums database."
xTooeyx: I get that message
DAV N Y P D: when you do what
xTooeyx: click "submit" when I click what I wanna do
Man, i think its messed up :(

saint_seiya 01-30-2003 04:48 PM

that problem of the error is fixed.

The only erros i still have:

I cant put any rpg variables in my postbit or i get the error:

Parse error: parse error, unexpected T_CHARACTER, expecting ']' in /usr/local/psa/home/vhosts/vgcity.com/httpdocs/forum/admin/functions.php(452) : eval()'d code on line 32
Maybe this happens because i have the + - hack installed, the shrink hack. :alien:

Top 10 Battle Stats are not working well. It just shows the stats for 10 users.

Bitsys 01-30-2003 05:09 PM

Quote:

Originally posted by saint_seiya
that problem of the error is fixed.

The only erros i still have:

I cant put any rpg variables in my postbit or i get the error:

Parse error: parse error, unexpected T_CHARACTER, expecting ']' in /usr/local/psa/home/vhosts/vgcity.com/httpdocs/forum/admin/functions.php(452) : eval()'d code on line 32
Maybe this happens because i have the + - hack installed, the shrink hack. :alien:


Top 10 Battle Stats are not working well. It just shows the stats for 10 users.

The + - hack might have something to do with it. I will go check that hack out.

Your Battle Stats Top 10 page is not working because no one has one any battles yet. By default, the Top 10 page shows the users with the most wins. Since none of your members have one any battles, it appears like it is not working. However, after 10 of your users win a battle, it look fine.

saint_seiya 01-30-2003 05:12 PM

I see, so draws dont count eh :)

vdinh 01-30-2003 06:20 PM

Hi Bitsys,
Is there an easy way to let others bet on each battle with each other, not with the server?

For example, user A bet that Fighter 1 will win battle X; User B bets the other Fighter, Fighter 2 will win that battle ... so he took that bet. At the end of the battle, if Fighter 1 wins, user A was given the money he bets, and user B's money was taken away automatically.

Also, can we post the battle result in one post instead of separating each comment? Thanks.

Bitsys 01-30-2003 09:07 PM

After working with saint_seiya, we figured out the problem. If you are getting the error message

Parse error: parse error, unexpected T_CHARACTER, expecting ']' in /usr/local/psa/home/vhosts/vgcity.com/httpdocs/forum/admin/functions.php(452) : eval()'d code on line 32

or a slight variation of it (the exact line numbers may be different), then open your postbit template, and find:

<a href="battle.php?action=showuserstats&userid=$post[userid">Battle Record</a>

and replace it with

<a href="battle.php?action=showuserstats&userid=$post[userid]">Battle Record</a>

If you can't find this code, then you are probably getting some other error that may or may not be related to this hack.


Quote:

Originally posted by vdinh
Hi Bitsys,
Is there an easy way to let others bet on each battle with each other, not with the server?

For example, user A bet that Fighter 1 will win battle X; User B bets the other Fighter, Fighter 2 will win that battle ... so he took that bet. At the end of the battle, if Fighter 1 wins, user A was given the money he bets, and user B's money was taken away automatically.

Also, can we post the battle result in one post instead of separating each comment? Thanks.

Currently, there is not an easy way to do this. Some of the problems with doing it: When would people get to bet on the battle? When would betting stop? What kinds of bets could be made? Ex: bets on retreats, draws, wins, etc.

The battle results can be made into one post. This is a battleupdate.php edit.

VeoMorphine 01-30-2003 10:03 PM

RPG CP v2
Setup Time: 5 Minutes
Upgrade from v1 time: 5 Minutes
File Edits: None
File Uploads: 2
Template Edits: 1
Templates to Add: 2
Screen Shot: https://vborg.vbsupport.ru/attachmen...&postid=348021
Demo: http://www.neurofreeze.net/rpgcp.php

Basicly what this does is add a menu were all your RPG stuff can be accessed from. It also add's an in deph manual on how to use the RPG system for users. It also shows your RPG stats on the CP.

Update Changes from v1 to v2.
- RPG Stats added.
- No permission if your not logged in shows up now.

Mystic Gohan 01-30-2003 10:51 PM

thanx VeoMorphine, it worked perfect

mr e 01-31-2003 12:46 AM

ya bitsys you can use my stuff :D

btw did you read your email? tell me if i should continue to work on that hack or would it not be practical?


All times are GMT. The time now is 12:49 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.02835 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete