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)

legendarysk8er 08-16-2003 03:25 AM

87 currently, and I still want to know how to decrease the AP%.

legendarysk8er 08-16-2003 03:27 AM

WHOA, I just updated my stats and it dropped 2000 again! This is ridiculious!

Bitsys 08-16-2003 03:52 AM

Quote:

Today at 11:25 PM legendarysk8er said this in Post #2139
87 currently, and I still want to know how to decrease the AP%.
Oops, I told you wrong about Anger. I was thinking of elemental bonus. It will be rather difficult to change the anger %. However, if you really want to change it, 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]'");
                        } else {
                                
$anger 1;
                        } 

and change it to:
PHP Code:

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

If you want it to do more damage, then change the 1.5 to 2.0 or something. 1.5 = 1.5 times the normal damage.

Triade 08-16-2003 08:20 AM

Here is my first try to modify a hack.

I tested a lot, and i think it works.

In the txt you find all the instructions.

What this do?

The original personal shop, allows to have an item the don't do nothing in battle. With this hack, you can build items with bonus in battle (the bonus is in the attack now).

to prevent a user make an item with bonus 9999 selling it at 1 gil, the hack put a cost on the item.
a user spent X gil for 1 point of bonus (the x, is now 10 gil, but it can be modifyed in the admin CP in itemshop options)

to prevent a lvl 1 user, use an item with bonus +1000, the hack set a level for the item (level to use= bonus damage/X) where X is set by the admin by admin CP. Now i set this to 100.


I hope this help you to make more fun your rpg :D

P.S: If you have trouble, message me. It' s the first time, i modify a hack (really is the first time i program in php :D) so be gentle :P

legendarysk8er 08-16-2003 12:17 PM

Ok bitsys, my AP problem is fixed, but I still want my original HP back. I don't understand why it has to be on posts per day..

Bitsys 08-16-2003 02:56 PM

Quote:

Today at 08:17 AM legendarysk8er said this in Post #2143
Ok bitsys, my AP problem is fixed, but I still want my original HP back. I don't understand why it has to be on posts per day..

If you deleted hpmulti from the equation, then your HP is no longer based on posts per day. However, it won't go back to the way it was because you most likely were getting a bonus from the post per day variable (hpmulti). Once everyone updates their stats, then you will probably see their HP go down as well.

legendarysk8er 08-16-2003 03:05 PM

Damn...That sucks..Maybe if I increase the number of HP added in the Admin CP, then do an update...

Oh, and on me and my friends forums, we installed this cool lil mini-hack called the RPG Map plus we made our own Clan hack, www.infinite-forums.com Just wondering if anyone wanted to see it, but I doubt we'll be giving those away.

legendarysk8er 08-16-2003 03:07 PM

Hmmm...hey Bitsys, I updated my stats and my friend updated his and he still has 2000 more HP than me...I have 1000 more posts than him too..I know its not my class becase I checked to see what the best was.. Do you know why this is?

Bitsys 08-16-2003 03:18 PM

Quote:

Today at 11:07 AM legendarysk8er said this in Post #2146
Hmmm...hey Bitsys, I updated my stats and my friend updated his and he still has 2000 more HP than me...I have 1000 more posts than him too..I know its not my class becase I checked to see what the best was.. Do you know why this is?

What level is he? What level are you?

Xyphen 08-16-2003 03:22 PM

I see alot of posts have been made, I think a mod or something should kinda empty this thread a little by deleting posts that don't matter, also, all the addons that have been made, I think someone should make a list and give it to Bitsys so he can post the list on the first post, just my 0.02$.

Nice work Bitsys, im wondering if this works with vB2.3.2 because i plan on upgrading soon.


All times are GMT. The time now is 09:31 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.02592 seconds
  • Memory Usage 1,773KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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