View Single Post
  #2181  
Old 09-04-2003, 05:41 PM
Bitsys's Avatar
Bitsys Bitsys is offline
 
Join Date: Oct 2002
Posts: 444
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 10:36 PM lioncool1589 said this in Post #2217
bitsys help me out why my angry still do alot dmg after i updated lastest version

http://www.clan-ice.com/showthread.p...4129#post44129


Debug Variables:
Anger ($anger): 15.2
Hit Chance ($hitchance): 0.9
Random Number ($randnum): 8
Regular Attack Bonus ($regattbonus): 8630.4900154444
Regular Defense Minus ($regdefminus): 3794.7144049102
Damage Done ($damagedone): 159575 == [floor((2350 + 8630.4900154444) * 1 * 15.2 + 2450 - 7400 - 3794.7144049102)]
Dodge Chance ($dodgechance): 1100
New HP ($newhp): -156442

Anger is still based on a user's level. To restrict anger damage, do the following:

In battleupdate.php, find:
PHP Code:
$debugvariables .= "Anger (\$anger): $anger\n"
and ABOVE it, add:
PHP Code:
if ($anger XX)
{
    
$anger XX;

Where XX is a number greater than 1. If XX is 3.0, then the user will do a maximum of 3 times as much damage.

Quote:
Today at 01:26 PM Telchar said this in Post #2219
It worked! :laugh: Thanks!

But now i got another problem..
I get this each time someone attacks:

It happens with all weapons, though not the when using the shields.. Where do i edit so it dissapears?
The shields don't work on my character, but it works for another admin.

In battleupdate.php, find:

PHP Code:
$battledebug 1
and change it to:

PHP Code:
$battledebug 0
What is the buff for the shield? Are you both using the same shield? How does it not work?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01152 seconds
  • Memory Usage 1,778KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete