[PetzVB v2] Improving PetzVB v2... (battle options and more!)
This modification is in the archives.
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 Download No files for download. |
Similar Mods
[PetzVB v2] Custom PETZ!! | vBulletin 3.0 Full Releases |