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

Reply
 
Thread Tools
The ultimate HP MP Hack Details »»
The ultimate HP MP Hack
Version: 1.00, by zajako zajako is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-20-2002 Last Update: Never Installs: 234
 
No support by the author.

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

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

Comments
  #32  
Old 06-22-2002, 06:12 PM
CloudSlash CloudSlash is offline
 
Join Date: Jun 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey is their anyway to make it where you can use Konmans, and be able to change it??????
Reply With Quote
  #33  
Old 06-24-2002, 09:04 AM
JaZz0r JaZz0r is offline
 
Join Date: Oct 2001
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #34  
Old 07-18-2002, 07:50 PM
mei mei is offline
 
Join Date: Jul 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #35  
Old 07-25-2002, 04:02 AM
Brianna Brianna is offline
 
Join Date: Mar 2002
Location: home
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
then replace this code (at the bottom of the same template):
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>
with:
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>
Feel free to add that into the original guys ^_^ Sweet hack! Better than the last HP/MP/Exp hack I had before I had to redo everything and import hackless tables I like the idea of mods/admins being able to adjust the stats to use them better in leiu of the Battle Square forum XD This is gonna be great! Thanks guys ^_^
Reply With Quote
  #36  
Old 08-11-2002, 02:23 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #37  
Old 08-13-2002, 11:27 AM
DarkDraco07's Avatar
DarkDraco07 DarkDraco07 is offline
 
Join Date: Apr 2002
Posts: 414
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #38  
Old 08-24-2002, 11:32 AM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #39  
Old 08-27-2002, 11:05 AM
Gohan's Avatar
Gohan Gohan is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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';
but also need to forum table?
Reply With Quote
  #40  
Old 08-27-2002, 01:05 PM
Gohan's Avatar
Gohan Gohan is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wierd.. why must i change below? still same as code
Quote:
Open member.php

Find
$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',customtitle='".intval($c ustomtitle)."',usertitle='".addslashes($customtext )."',email='".addslashes(htmlspecialchars($email)) ."',parentemail='".addslashes(htmlspecialchars($pa rentemail))."',coppauser='$coppauser',homepage='". addslashes(htmlspecialchars($homepage))."',icq='". addslashes(htmlspecialchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))."',usergroupid='$bbus erinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'");

replace with

$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',customtitle='".intval($c ustomtitle)."',usertitle='".addslashes($customtext )."',email='".addslashes(htmlspecialchars($email)) ."',parentemail='".addslashes(htmlspecialchars($pa rentemail))."',coppauser='$coppauser',homepage='". addslashes(htmlspecialchars($homepage))."',icq='". addslashes(htmlspecialchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))."',usergroupid='$bbus erinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'");
Reply With Quote
  #41  
Old 08-31-2002, 05:54 PM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]'");
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 03:11 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.10720 seconds
  • Memory Usage 2,325KB
  • Queries Executed 25 (?)
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
  • (6)bbcode_code
  • (1)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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