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 06-20-2003 10:38 PM

sonic what happens in battle? what does the shield option row say for you?

Moreliator 06-20-2003 11:33 PM

Quote:

Yesterday at 11:24 PM Me! said this in Post #1882
Moreliator and Darkwaltz4... THANK YOU!!! Great job :D Alot of people are going to be happy to have those add-ons

Sonic3d you may want to check your classes and race stats, you may have their strength too high.

thanks, and BTW, I just added something to my addon post a few minutes ago...if you tried to install it before, it should have all worked, except the $rpgtypeid returned nothing... all you have to do is add 'rpgtype' to the initial $user query... if you haven't installed it yet, and you are reading this message, than don't worry about it because it has been fixed in my original post with the addon :)

This addon works 100% for me now. I just had overlooked the $rpgtypeid thing... sorry about that.

SmEdD 06-21-2003 02:22 AM

Ummm ya something got messed. All my users are gone but me. There all listed in the database but they can't sign in nor they listed in the member list or admin member list.

lioncool1589 06-21-2003 06:26 PM

only some ppl

quote:
Today at 12:35 AM lioncool1589 said this in Post #1862
maxhp goes down when they posts

quote:
Yesterday at 02:35 PM lioncool1589 said this in Post #1849
yah i installed Auto-Update stats add-on

Can you verify that they are actually losing HP. Sometimes your maxhp goes up and it makes it look liek you are losing HP, when actually all that is happening is your HP is staying the same and your machp is going up. I am pretty sure this is related to the update stats code.

I think I know what it is. One more thing though, does this happen to everyone every single time, or only some people and not every single time?

lioncool1589 06-22-2003 12:52 AM

can someone make addon for this rpg each refer friends get 100 gils or more etc..

Bitsys 06-23-2003 02:16 AM

Quote:

06-19-03 at 10:42 PM Moreliator said this in Post #1875
Alright bitsy, the donation thing has been fixed.

My other problem is with user records. We have so many people on the boards since the RPG opened up that our database goes down for about 5 minutes at various times during the day. Now if the timing is just right, and a user is finishing the battle just as the databse is going down, their record can get messed up. For example, one guy had listed games played: 1 but then 8 wins.... it appears to happen only when the databse has been down, but I dunno if it can be fixed. Also, when I have to prune battles, the user's record does not update, because as soon as a user enters a battle, it adds one to their "battles fought" category. If I have to prune it before it is finished, the "battles fought" stays the same, making their records off.


-More

I don't really know what to say about the database thing. However, I will look in to the problem with pruning battles.

Quote:

06-20-03 at 12:44 PM kaotic said this in Post #1877
Does anybody know how the anger system works?Whenever they get angry on my site, they pull off way too much damage. Is there any way that I could lower the attack increase some?


in battleupdate.php, find:
PHP Code:

if($user[ap] >= 100) {
                                If(
$userlevel 11) {
                                        
$anger 1.1;
                                } else {
                                        
$anger $userlevel .1;
                                }
                                
$battleaction .= "Uh-oh, looks like someone got mad.  ";
                                
$DB_site->query("UPDATE user SET ap=0 WHERE userid='$bbuserinfo[userid]'");
                        } elseif(
$mad == 1) {
                                If(
$userlevel 11) {
                                        
$anger 1.1;
                                } else {
                                        
$anger $userlevel .1 * ($user[ap] / 100);
                                        if(
$anger 1.1)
                                                
$anger 1.1;
                                }
                                
$battleaction .= "Uh-oh, looks like someone got mad.  ";
                                
$DB_site->query("UPDATE user SET ap=0 WHERE userid='$bbuserinfo[userid]'"); 

the $anger variable controls how much the user's damage is multiplied by. So, if $anger = 1, then the user's damage will stay the same. If $anger = 1.1, then the user will do 10% extra damage. If $anger = 2, then the user will do 200% extra damage, etc... You can adjust the above setting to your liking. If you want, you can just multiply $anger by .5 when it is above a certain number (like 2.2, since 2.2 * .5 = 1.1 or 10% extra damage).

Quote:

06-20-03 at 10:22 PM SmEdD said this in Post #1886
Ummm ya something got messed. All my users are gone but me. There all listed in the database but they can't sign in nor they listed in the member list or admin member list.

Are you sure it was my hack that did that?

Quote:

Yesterday at 02:26 PM lioncool1589 said this in Post #1887
only some ppl


quote:
Today at 12:35 AM lioncool1589 said this in Post #1862
maxhp goes down when they posts


quote:
Yesterday at 02:35 PM lioncool1589 said this in Post #1849
yah i installed Auto-Update stats add-on




Can you verify that they are actually losing HP. Sometimes your maxhp goes up and it makes it look liek you are losing HP, when actually all that is happening is your HP is staying the same and your machp is going up. I am pretty sure this is related to the update stats code.



I think I know what it is. One more thing though, does this happen to everyone every single time, or only some people and not every single time?


In the Auto-Update Stats add-on (newthread.php, newpost.php), and member.php, find:
PHP Code:

$maxhpupdate = ( $level $extrastats[hpmodifier] * $hpmulti) + $hpmodifier

and REPLACE it with:
PHP Code:

$maxhpupdate = ( $level $extrastats[hpmodifier]) + $hpmodifier

Please note that this will reduce some users' HP, but it should remain constant after that initial decrease. If you want to do the same for MA and PP, then let me know.

Quote:

Today at 08:50 PM Me! said this in Post #1889
Thank you for the update Moreliator ^^

I had to move my files to a new server over the weekend. I took all my files moved them to new servers then filled my new database with the dump file I made from mysql.

Things work fine but the only thing is the items in the itemshop don't show. The items users have show fine but the items in the itemshop don't. Does anyone know why this is? I've checked the database and the table is full of the items. I am just at a loss as of what to do :/


You will probably need to go in to phpmyadmin and change the IDs of several rows in your tables. The tables are rpg_element, rpg_race, rpg_classf, rpg_classm, and rpg_type. You should be looking for the row whose name is "Generic" or "Default". Change the ID of this row to 0 (it should be at 1).

JGM007 06-23-2003 06:11 PM

Hey Bitsys,

Just incase no one has said it in a while.
You da coder!! :)

Thank you and keep up the good work! :banana:

JGM007 06-23-2003 06:12 PM

Hey Bitsys,

Just incase no one has said it in a while.
You da coder!! :)

Thank you and keep up the good work! :banana:

JGM007 06-23-2003 06:12 PM

Hey Bitsys,

Just incase no one has said it in a while.
You da coder!! :)

Thank you and keep up the good work! :banana:

JGM007 06-23-2003 06:20 PM

I did not mean for that to post three times :(

Sorry.


All times are GMT. The time now is 06:45 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.02684 seconds
  • Memory Usage 1,777KB
  • 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
  • (3)bbcode_php_printable
  • (6)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