The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[PetzVB v2] Improving PetzVB v2... (battle options and more!) Details »» | |||||||||||||||||||||||||||
[PetzVB v2] Improving PetzVB v2... (battle options and more!)
Developer Last Online: Nov 2023
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]' "); 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]' //"); 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]' "); 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]' //"); - 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; 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'; 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; 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; 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
|
Comments |
#12
|
|||
|
|||
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.
|
#13
|
||||
|
||||
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:
PHP Code:
PHP Code:
PHP Code:
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! |
#14
|
|||
|
|||
Thanks very much I love this site
|
#15
|
|||
|
|||
hey! this is great! ill try it now!, thx
|
#16
|
|||
|
|||
thx a lot!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|