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)

Darkwaltz4 02-21-2003 10:06 PM

well....ive added innumeral things to this hack, in little bits, and in large noticeable bits. one thing i did was have 'defaut' gil you could recieve when you registered. it was originally set to 500. a few weeks later, a giant wave of registrations came, and suddenly, i realized why none were posting, and why those members never had any gil left......without buying anything...

they were fake members donating the default gil to the original members....so what do i to combat this? ive created a very nice addon, useable to see who is donating to who, and allows you to check identities and such--and accept/cancel donations

use it to do that, or track all donations in general. there is one query, 2 major edits (additions) and 1 minor edit, and one optional minor edit. (you can allow your mods to use the script)

Instructions are in the attachment, and if u have any questions, direct them towards me in a pm

i hereby call this addon the Donation Queue ^_^

Darkwaltz4 02-21-2003 10:08 PM

to easily update all template sets in a few clicks--i suggest this _marvelous_ hack by FireFly, the Template Backup System--this did for me more than i ever dreamed possible to update all my 8 styles...

https://vborg.vbsupport.ru/showthrea...+backup+system

DaPro 02-21-2003 10:42 PM

Hey, I got another problem, I installed everything good, but when I go to my user cp area, the fields are empty! I ran all the install files, and ther still are empty drop downs even though the admin area says they are there, can anyone help me?

Mystic Gohan 02-21-2003 10:48 PM

I dont mean that (or so I think anyway) I mean lets say I battle you in a battle. We are the same level and same stats.

I punch you and take away 4 HP
You punch me and take away 8 HP
I punch you and take away 7 HP
You punch me and take away 5 HP

Like that even though the same levels and stats more or less damage is recieved so it isnt a battle on who has more HP

Moreliator 02-21-2003 11:23 PM

Bitsy, yeah that worked fine with the templates, thanks.

Heh, well I have one more thing to ask (sorry) - I've installed your hack about 10 times now. Every once in a while, when I install it and begin editing the default weapons, once I press save changes, and it brings me back to the editing page, all of the weapon names and descriptions are cut off... its really weird. Like one of the items becomes "d Sword" instead of Broad Sword... and the tables start getting really screwy. Would this be a template problem?

Vivi Ornitier 02-22-2003 01:47 AM

Bitsys, do u have any updated screenshots, or are the oens in the beginning of thread the most updated.

Bitsys 02-22-2003 02:10 AM

Quote:

Originally posted by DaPro
Hey, I got another problem, I installed everything good, but when I go to my user cp area, the fields are empty! I ran all the install files, and ther still are empty drop downs even though the admin area says they are there, can anyone help me?
Try clicking on the DB Fix link in the admin cp. Run the script. Let me know what happens.

Quote:

Originally posted by Mystic Gohan
dont mean that (or so I think anyway) I mean lets say I battle you in a battle. We are the same level and same stats.

I punch you and take away 4 HP
You punch me and take away 8 HP
I punch you and take away 7 HP
You punch me and take away 5 HP

Like that even though the same levels and stats more or less damage is recieved so it isnt a battle on who has more HP

I told you wrong last time. What I meant to say was that the total damage is +-25% for weapons. That is after everything is factored into the equation, including extra attack for you, extra defense for the defender, etc. This makes the damage vary between hits. Also, fists will do a minimum of 5 damage because it isn't fun doing 1 HP of damage for 60 turns. Here is an example:

The formula for fist damage is
PHP Code:

floor(log10($level) * 30 rand(-(int)($level .15), (int)($level .15))) + 1

Let's say that my level is 20. Then:
Fist damage = log10(20) * 30 + rand(-(int)(20 *.15), (int) (20 *.15))
Assuming the random function generates the number 2:
Fist damage = 1.301 * 30 + 2
Fist damage = 41.03
Fist damage = 41

Now, if rand had been -2, then the fist damage would have been 37. This is a difference of 4 (41 - 37). 4 is approximately 10% of the average of the two numbers. Since the maximum value that can be returned by the random function is 3, and the lowest is -3, this means that on average, there will be a 7-10% difference between each hit with one's fists.

Of course, this effect only kicks in at the higher levels. At lower levels, +-15% of 5 won't matter, since the values are rounded down by the floor function.

If you want to make it more random, then change the .15 to a higher number, say .60. The fist damage function is located near the top of battleupdate.php and is clearly labeled.


Quote:

Originally posted by Moreliator
Bitsy, yeah that worked fine with the templates, thanks.

Heh, well I have one more thing to ask (sorry) - I've installed your hack about 10 times now. Every once in a while, when I install it and begin editing the default weapons, once I press save changes, and it brings me back to the editing page, all of the weapon names and descriptions are cut off... its really weird. Like one of the items becomes "d Sword" instead of Broad Sword... and the tables start getting really screwy. Would this be a template problem?

Hmm, I don't think it is a template problem. Did you undo the database queries before re-installing each time? If you refresh the items page, do the names and descriptions go back to normal?

Quote:

Originally posted by Vivi Ornitier
Bitsys, do u have any updated screenshots, or are the oens in the beginning of thread the most updated.
The ones at the beginning are all I have right now. Unfortunately, they are 3 months old. When I release the final version, I will also release some final screenshots. Until then, I won't be making new ones since some things may still change slightly.

Moreliator 02-22-2003 02:46 AM

Thanks bitsy!

Say, is there an easy way to import your RPG settings to another board (excuse me for my ignorance)... Like a template upload or something?

Also, just a quick question regarding a user's character... are there any penalties for switching characters (like XP loss or level loss) or can users constantly change characters without any consequences? If this is the case, is there anything stopping a user from buying an item with an allowable RPG type and then switching types, illegaly using an item with an RPG type he shouldn't be? Hopefully thats clear enough, if not I'll expand on the question.
Thanks for your quick and thorough answers bitsy.

chrisz 02-22-2003 02:56 AM

Hey how can I close my itemshop?
I am adding a idea and closed the battle but how do I do the same to the Itemshop???

xxskullxx 02-22-2003 01:06 PM

Quote:

Originally posted by Moreliator
Bitsy, yeah that worked fine with the templates, thanks.

Heh, well I have one more thing to ask (sorry) - I've installed your hack about 10 times now. Every once in a while, when I install it and begin editing the default weapons, once I press save changes, and it brings me back to the editing page, all of the weapon names and descriptions are cut off... its really weird. Like one of the items becomes "d Sword" instead of Broad Sword... and the tables start getting really screwy. Would this be a template problem?

Are you using PHP 4.3.0? That's a known problem with it. Try updating it.


All times are GMT. The time now is 04:03 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.03217 seconds
  • Memory Usage 1,758KB
  • 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_php_printable
  • (5)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