The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
The ultimate HP MP Hack Details »» | |||||||||||||||||||||||||
This hack looks just like knomans hp/mp/exp/level hack but it has new features for it. Instead of having set hp/mp amounts that you can't change unless you are posting. It allows mods, supermods, and admins change the hp and mp.
this makes it great for forums rpgs that use a d&d type system and want their bars to tell what the charaters hp and mp really are. THe exp, level, max hp, max mp all go by the old system. But no the hp and mp can be changed. If you want to se this in action goto this board called RPG Palace http://www.planetstorm.net/rpgpalace/index.php They have a very cool battle system and a lot of posting going on, a great board if you want to join. also the hp and mp updates are easy. Just click the letters hp or mp and it pops up a window. Then just type a number or a - number to take away . THE UPDATE::: I finaly got around to updating this... actualy i updated it a while agon and it got ruined because of a hard drive crash..... well here is the run down... This hack allows users to update thir max stats after they have posted for a while. Instead of them going up by them self. Also it makes it so that there is a handy total refil button so you don't have to do math to fill up someones life. There is one slight problem. When this gets started everyone will be 0/0 for all thier stats. They must hit update to gain there max stats then a mod or admin must fill up thier life.From thier you can set up a battle system with text and have a mod or admin ref and deal the damage.The more that a member posts the more his/her hp max goes up, the longer a member has ben there the more thier ma goes up and pp is similar. A quick run down of the stats HP -> life MA -> mystic aura or magic PP -> Power Points when an attack is done weak to reserve power for a stronger hit Ap -> Anger Percentage it goes up as you are delt damage Show Your Support
|
Comments |
#32
|
|||
|
|||
Hey is their anyway to make it where you can use Konmans, and be able to change it??????
|
#33
|
|||
|
|||
Few questions.
I can take a gander at the fact that having the stats update on each post would put a rather heavy burden on the server. However, is there some sort of check I could implement that would monitor when a user levels up, then runs an automatic update? Also, I'm still a little lost as far as what exactly the PP and AP do. How do I calculate these into actual battles? What do they affect, and how are they supposed to be distributed? I'm not looking for a very straight-forward answer for the calculation part, just an idea as to how I oughta work with 'em. Oh, and thanks again for the AIM help, zajako. BTW, I downloaded (once again) the .zip file from both your posts (although the file is probably the same) and neither had the updates you were telling me about. Still no ADDs! |
#34
|
|||
|
|||
Hey! I just installed the updated version: ush
anyway, i can't seem to update my elements XD every time i go into profile to update it doesn't work and i was wondering.. what's the difference between these two? Open member.php Find $DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',cust omtitle='".intval($customtitle)."',usertitle='".ad dslashes($customtext)."',email ='".addslashes(htmlspecialchars($email))."',parent email='".addslashes(htmlspecia lchars($parentemail))."',coppauser='$coppauser',ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'"); replace with $DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',cust omtitle='".intval($customtitle)."',usertitle='".ad dslashes($customtext)."',email ='".addslashes(htmlspecialchars($email))."',parent email='".addslashes(htmlspecia lchars($parentemail))."',coppauser='$coppauser',ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'"); i might be blind though XP |
#35
|
|||
|
|||
mei, you are right it is the same thing in both lines: replace it with this instead
Code:
$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='".addslashes($signature)."',customtitle='".intval($customtitle)."',usertitle='".addslashes($customtext)."',email='".addslashes(htmlspecialchars($email))."',parentemail='".addslashes(htmlspecialchars($parentemail))."',coppauser='$coppauser',homepage='".addslashes(htmlspecialchars($homepage))."',icq='".addslashes(htmlspecialchars($icq))."',aim='".addslashes(htmlspecialchars($aim))."',yahoo='".addslashes(htmlspecialchars($yahoo))."',element='".addslashes(htmlspecialchars($element))."',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'"); Also, I added something small, but it makes the hack look better to users: Instead of "None" being selected for the Element everytime a user goes to update their profile, I added some simple javascript to determine which Element the user currently has in their profile first off add this into the head tag of the modifyprofile template: Code:
<script language="Javascript" type="text/javascript"> function isselected(elemental, elementsinprofile) { if (elementsinprofile == elemental ) { document.write("<option value='"+elemental+"' selected>") }else{ document.write("<option value='"+elemental+"'>") } } </script> Code:
<select name="element"> <option value="0" selected>None</option> <option value="1" >Light</option> <option value="2" >Water</option> <option value="3" >Wind</option> <option value="4" >Lightning</option> <option value="5" >Earth</option> <option value="6" >Fire</option> <option value="7" >Dark</option> </select> Code:
<select name="element"> <script>isselected("0", $bbuserinfo[element])</script>None</option> <script>isselected("1", $bbuserinfo[element])</script>Light</option> <script>isselected("2", $bbuserinfo[element])</script>Water</option> <script>isselected("3", $bbuserinfo[element])</script>Wind</option> <script>isselected("4", $bbuserinfo[element])</script>Lightning</option> <script>isselected("5", $bbuserinfo[element])</script>Earth</option> <script>isselected("6", $bbuserinfo[element])</script>Fire</option> <script>isselected("7", $bbuserinfo[element])</script>Dark</option> </select> |
#36
|
||||
|
||||
Im stuck >.<
Everytime I try to run this query, I keep getting this error: You have an error in your SQL syntax near 'maxhp` INT(6) DEFAULT '0' NOT NULL, `ma` INT(6) DEFAULT '0' NOT NULL, `maxma` IN' at line 1 |
#37
|
||||
|
||||
i have knomans level hack installed. i dont knwo whats new with this one but can someone tell me if the leveling up and stuff is automatic yet? i dont want to edit everything 1 by 1. i jsut want to install it and leave it alone
|
#38
|
||||
|
||||
im working on making things more automatic. but i have been really busy. if you hare having errors with the sql scripts redownload the hack from the first post rather than the db file.
|
#39
|
||||
|
||||
i got error messgae
Code:
Error SQL-query : ALTER TABLE `forum`.`user` ADD `hp` INT(6) DEFAULT '0' NOT NULL, ADD `maxhp` INT(6) DEFAULT '0' NOT NULL, ADD `ma` INT(6) DEFAULT '0' NOT NULL, ADD `maxma` INT(6) DEFAULT '0' NOT NULL, ADD `pp` INT(6) DEFAULT '0' NOT NULL, ADD `maxpp` INT(6) DEFAULT '0' NOT NULL, ADD `ap` INT(6) DEFAULT '0' NOT NULL, ADD `element` INT(3) DEFAULT '0' NOT NULL; MySQL retourneerde: alter command denied to user: 'saxxon@localhost' for table 'user' Done fix = Code:
ALTER TABLE user ADD hp INT(6) NOT NULL default '0', ADD maxhp INT(6) NOT NULL default '0', ADD ma INT(6) NOT NULL default '0', ADD maxma INT(6) NOT NULL default '0', ADD pp INT(6) NOT NULL default '0', ADD maxpp INT(6) NOT NULL default '0', ADD ap INT(6) NOT NULL default '0', ADD element INT(3) NOT NULL default '0'; |
#40
|
||||
|
||||
wierd.. why must i change below? still same as code
Quote:
|
#41
|
||||
|
||||
agg i have now fixed that file around 8 times.....Some how the old ones keep coming back
the mysql error your getting is because you are supposed to chane it so forum says your dbname. i will fix the download again.. and you replace with : $DB_site->query("UPDATE user SET element='$element', birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',cust omtitle='".intval($customtitle)."',usertitle='".ad dslashes($customtext)."',email ='".addslashes(htmlspecialchars($email))."',parent email='".addslashes(htmlspecia lchars($parentemail))."',coppauser='$coppauser',ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'"); |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|