Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[PetzVB v2] Improving PetzVB v2... (battle options and more!) Details »»
[PetzVB v2] Improving PetzVB v2... (battle options and more!)
Version: 1.00, by xmorpher xmorpher is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 05-26-2005 Last Update: Never Installs: 5
 
No support by the author.

IMPROVING BATTLES

I modified my petzVB to not increase the stats (HP, MHP, STR, DEF, AGI)
when you level up....
That way, your pet changes "phisically" (graphically)
but the stats stays fixed.

I did that change, because i had many users complaining about:
- Petz with higher levels killing weaker petz in just one attack
- Stronger Petz accepting challenges of weaker petz
- Stronger pets does not have opponents to challenge
(because with a small difference of 2-3 levels the battle is unbalanced)

Now,
- the new users can battle old users,
- the battles are more balanced and the number of
- active battles grew up a lot...
- the batlles resides on strategy and not on your level

FIXED STATS TO BALANCE BATTLES

If you want to make this change, find in petz.php:
Code:
// Level Up Petz Stats
	 $pet1[MHP]=$pet1[MHP]+$increase[MHP];
	 $pet1[STR]=$pet1[STR]+$increase[STR];
	 $pet1[DEF]=$pet1[DEF]+$increase[DEF];
	 $pet1[AGI]=$pet1[AGI]+$increase[AGI];
	 $pet1[EXP]=0;
	 // Store The Changes
	 $DB_site->query("
	 UPDATE " . TABLE_PREFIX . "petz_petz SET MHP='$pet1[MHP]' WHERE ID='$pet1[ID]'
	 ");
	 $DB_site->query("
	 UPDATE " . TABLE_PREFIX . "petz_petz SET STR='$pet1[STR]' WHERE ID='$pet1[ID]'
	 ");
	 $DB_site->query("
	 UPDATE " . TABLE_PREFIX . "petz_petz SET DEF='$pet1[DEF]' WHERE ID='$pet1[ID]'
	 ");
	 $DB_site->query("
	 UPDATE " . TABLE_PREFIX . "petz_petz SET AGI='$pet1[AGI]' WHERE ID='$pet1[ID]'
	 ");
and replace it with:
Code:
// Level Up Petz Stats
	 //$pet1[MHP]=$pet1[MHP]+$increase[MHP];
	 //$pet1[STR]=$pet1[STR]+$increase[STR];
	 //$pet1[DEF]=$pet1[DEF]+$increase[DEF];
	 //$pet1[AGI]=$pet1[AGI]+$increase[AGI];
	 $pet1[EXP]=0;
	 // Store The Changes
	 //$DB_site->query("
	 //UPDATE " . TABLE_PREFIX . "petz_petz SET MHP='$pet1[MHP]' WHERE ID='$pet1[ID]'
	 //");
	 //$DB_site->query("
	 //UPDATE " . TABLE_PREFIX . "petz_petz SET STR='$pet1[STR]' WHERE ID='$pet1[ID]'
	 //");
	 //$DB_site->query("
	 //UPDATE " . TABLE_PREFIX . "petz_petz SET DEF='$pet1[DEF]' WHERE ID='$pet1[ID]'
	 //");
	 //$DB_site->query("
	 //UPDATE " . TABLE_PREFIX . "petz_petz SET AGI='$pet1[AGI]' WHERE ID='$pet1[ID]'
	 //");
Then find:
Code:
// Level Up Petz Stats
	 $pet2[MHP]=$pet2[MHP]+$increase[MHP];
	 $pet2[STR]=$pet2[STR]+$increase[STR];
	 $pet2[DEF]=$pet2[DEF]+$increase[DEF];
	 $pet2[AGI]=$pet2[AGI]+$increase[AGI];
	 $pet2[EXP]=0;
	 // Store The Changes
	 $DB_site->query("
	 UPDATE " . TABLE_PREFIX . "petz_petz SET MHP='$pet2[MHP]' WHERE ID='$pet2[ID]'
	 ");
	 $DB_site->query("
	 UPDATE " . TABLE_PREFIX . "petz_petz SET STR='$pet2[STR]' WHERE ID='$pet2[ID]'
	 ");
	 $DB_site->query("
	 UPDATE " . TABLE_PREFIX . "petz_petz SET DEF='$pet2[DEF]' WHERE ID='$pet2[ID]'
	 ");
	 $DB_site->query("
	 UPDATE " . TABLE_PREFIX . "petz_petz SET AGI='$pet2[AGI]' WHERE ID='$pet2[ID]'
	 ");
and replace it with:
Code:
// Level Up Petz Stats
	 //$pet2[MHP]=$pet2[MHP]+$increase[MHP];
	 //$pet2[STR]=$pet2[STR]+$increase[STR];
	 //$pet2[DEF]=$pet2[DEF]+$increase[DEF];
	 //$pet2[AGI]=$pet2[AGI]+$increase[AGI];
	 $pet2[EXP]=0;
	 // Store The Changes
	 //$DB_site->query("
	 //UPDATE " . TABLE_PREFIX . "petz_petz SET MHP='$pet2[MHP]' WHERE ID='$pet2[ID]'
	 //");
	 //$DB_site->query("
	 //UPDATE " . TABLE_PREFIX . "petz_petz SET STR='$pet2[STR]' WHERE ID='$pet2[ID]'
	 //");
	 //$DB_site->query("
	 //UPDATE " . TABLE_PREFIX . "petz_petz SET DEF='$pet2[DEF]' WHERE ID='$pet2[ID]'
	 //");
	 //$DB_site->query("
	 //UPDATE " . TABLE_PREFIX . "petz_petz SET AGI='$pet2[AGI]' WHERE ID='$pet2[ID]'
	 //");
i also made the following changes:
- Set the default max HP = 150
Run the following Sql query in your database:
Code:
UPDATE `petz_petz` SET HP='150' WHERE 1;
UPDATE `petz_petz` SET MHP='150' WHERE 1;
- Balance better the pets, this way: STR+DEF+AGI=100
Dog-> (STR:40) + (DEF:30) + (AGI:30) = 100
Cat-> (STR:40) + (DEF:20) + (AGI:40) = 100
Snail-> (STR:15) + (DEF:60) + (AGI:25) = 100
Turtle-> (STR:20) + (DEF:70) + (AGI:10) = 100
Spider-> (STR:50) + (DEF:10) + (AGI:40) = 100
Run the following Sql queries in your database to reset the pet's stats:
Code:
UPDATE `petz_petz` SET STR='40' WHERE type='1';
UPDATE `petz_petz` SET DEF='30' WHERE type='1';
UPDATE `petz_petz` SET AGI='30' WHERE type='1';
 
UPDATE `petz_petz` SET STR='40' WHERE type='2';
UPDATE `petz_petz` SET DEF='20' WHERE type='2';
UPDATE `petz_petz` SET AGI='40' WHERE type='2';
 
UPDATE `petz_petz` SET STR='35' WHERE type='3';
UPDATE `petz_petz` SET DEF='40' WHERE type='3';
UPDATE `petz_petz` SET AGI='25' WHERE type='3';
 
UPDATE `petz_petz` SET STR='40' WHERE type='4';
UPDATE `petz_petz` SET DEF='40' WHERE type='4';
UPDATE `petz_petz` SET AGI='20' WHERE type='4';
 
UPDATE `petz_petz` SET STR='50' WHERE type='5';
UPDATE `petz_petz` SET DEF='10' WHERE type='5';
UPDATE `petz_petz` SET AGI='40' WHERE type='5';
RESET WIN/LOSS STATS
If you want to Reset the Win/Loss Stats, run this sql query:
Code:
UPDATE `petz_petz` SET LOSS='0' WHERE 1;
UPDATE `petz_petz` SET WIMPS='0' WHERE 1;
UPDATE `petz_petz` SET WINS='0' WHERE 1;
UNEQUIP ITEMS
If you modified the 'Str,Def,Agi' Stats, then you need to unequip
the items so they can change the new stats correctly.
just run this sql query:
Code:
UPDATE `petz_inventory` SET EQUIP='0' WHERE 1;
Finally, i would advise you, to not selling items that change
the 'MHP, Str, Def, Agi' Stats permanently,
but making those items equipmentables

That's it. The battles are now more balanced
and resides more on strategy than your level

Good Luck

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-05-2005, 05:15 PM
angelicGrace angelicGrace is offline
 
Join Date: Jun 2004
Location: Up in the clouds
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dude you so totaly rock. I have lots of members that are loyal pet owners, but would never dream of battleing them. The ablity to gain experience by just taking care of them loyaly rocks. Gonna have to add this one when i have a few moment to get on my server.
Reply With Quote
  #13  
Old 08-27-2005, 03:57 PM
xmorpher's Avatar
xmorpher xmorpher is offline
 
Join Date: Feb 2004
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ADD A SOUND EFFECT WHEN IS YOUR TURN
This is a small modification to add a background sound
that indicates when is YOUR TURN TO ATTACK

It's useful because sometimes you are in a battle
but you are browsing other web pages too,
and you can forget that you are in a battle or you won't have to
constantly check if it's your turn or not...

so, here is the modification:
edit the template: petz_battle
find the code:
PHP Code:
<if condition="$player1==182"
replace it with:
PHP Code:
 <if condition="$player1==182">
<
EMBED SRC=$vboptions[bburl]/turn_01.mp3 width=0 height=0 autostart=true loop=0
then find the code:
PHP Code:
 <if condition="$player2==182"
and replace it with:
PHP Code:
 <if condition="$player2==182">
<
EMBED SRC=$vboptions[bburl]/turn_01.mp3 width=0 height=0 autostart=true loop=0
That's all

Download the sound file from this post, you have 3 available sound options,
rename to "turn_01.mp3" the file you want to use...

upload the sound "turn_01.mp3" to your forum root directory
(where is stored the petz.php file)

Enjoy it!


Reply With Quote
  #14  
Old 08-31-2005, 08:57 AM
tuanluu tuanluu is offline
 
Join Date: Aug 2005
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much I love this site
Reply With Quote
  #15  
Old 06-30-2008, 01:29 AM
maggymagus maggymagus is offline
 
Join Date: Jun 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey! this is great! ill try it now!, thx
Reply With Quote
  #16  
Old 06-30-2008, 05:52 AM
maggymagus maggymagus is offline
 
Join Date: Jun 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx a lot!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:04 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04576 seconds
  • Memory Usage 2,273KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete