vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   The ultimate HP MP Hack (https://vborg.vbsupport.ru/showthread.php?t=37720)

zajako 04-20-2002 10:00 PM

The ultimate HP MP Hack
 
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

John 04-21-2002 09:53 PM

I don't get it :confused: :p

DemiNeo0101 04-21-2002 10:02 PM

this rocks , this will be awsome for a new forum thats going on cheatlist.

afterlab 04-21-2002 10:15 PM

heh.. I completed this earlier for a friend's board.

Velocd 04-22-2002 03:57 AM

whaa?

This hack doesn't deserve "ULTIMATE" in its name, giving mp/hp to each person is time consuming and would take forever!

We need a battle system :(
That way HP/MP can be affected more realisticly, by battle.

ExAvIoUr 04-22-2002 07:11 PM

hahahahah ;)

i think there is one already around here somewhere...

GOD-Dblade 04-23-2002 01:35 AM

dont see anyone else installed this....but i did and got this error
Parse error: parse error, expecting `']'' in /home/virtual/site16/fst/var/www/html/forums/admin/functions.php on line 254

Fatal error: Call to undefined function: getuserinfo() in /home/virtual/site16/fst/var/www/html/forums/admin/sessions.php on line 108
then i restored the original functions.php and got this error
Parse error: parse error, expecting `']'' in /home/virtual/site16/fst/var/www/html/forums/admin/functions.php(275) : eval()'d code on line 18

Parse error: parse error, expecting `']'' in /home/virtual/site16/fst/var/www/html/forums/admin/functions.php(275) : eval()'d code on line 18
but when i changed the template that we edited back to normal and uploaded the modator it was all back to normal.

zajako 04-26-2002 12:19 AM

sorry, guys i don't know why you got that error. I made this one for my allies board and it workked their but I threw the instructions togther rather rapidlyt so there may be some mistakes. I will redo this file later.

also abouyt a battle hack. This is not amde for a battle hack but can be easily used for it. What I am making for my 4.0 site will be a battle system that will play like a snes rpg battle system with many advanced options. It is in devo and will be finished in 3-6 months. If you want to participate in this game im making i would recomend going to my board and getting your gold up because gold will transfer over to tfo4. Gold is earned by posts.

(for further info I will not be giving out my battle system because it will be far too complex for someone to just copy it onto their server.)

DarkDraco07 04-27-2002 05:11 AM

im a bit new to php and i have a question. i use php3 and if i want to install these hacks do i have to change the file name to .php3 or do i just upload them?

Orlandu 04-27-2002 05:40 AM

Well, I think it's a fine hack but not one I prefer to use. Velocd is right, giving HP and all to every member can be time consuming. I would much rather use the automatic one, but I plan on writing one myself. Just in case I decide to make some sort of battle hack down the road, I want it all to work without me having to intervine everytime.

Wildthinks 05-03-2002 09:22 AM

Hi,
looks like pretty...but i'm a newbie on VB and I have any question to your hack:

How calculate
1. HP
2. MP
3. Experiences?

What mean HP, MP, Experiences out of your rpg-world?

I'm interested an a Levelsystem, but I don't know what can I do to increase the MP, HP, EXP...

THX for your help...

s o r o k a 05-06-2002 04:26 AM

Can this be used on the Forum Home? If so how?

Wildthinks 05-12-2002 10:35 AM

ok. nobody have a answer for my question? Why has so many people installed? They don't know what they do?
*irregeularbrainerror*---
please explain me the values ...see 2 post above

zajako 05-17-2002 02:05 PM

to use for forum home just use bbuserinfo[field5]

except use what field you got from the step 4 i do belive.

if you need help with that let me know.

Wildthinks 05-17-2002 02:12 PM

everybody ignore me.... huhu you are only a part of my imagine? I dont speak with myself? Or my Ask soooo stupid, that nobody will going down to my IQ?
Or nobody knows that, but all people use the hack?

zajako 05-17-2002 02:55 PM

hp = health points
mp = magic points
exp = experince that makes your max hp and max mp go up
levels thes go up by exp and represend an amount of experince so you can compare to other people of similar exp.

tfo(my board) uses a diff sys than that though

here are the new things at my site

MA = mystic Aura
PP = Power points
AP = anger percent

there are many more at my site, but thats only because my site is a site for a game im developing for the PS3 or computer.

I did not answer this sooner because i did not see it. I apologize. It has nothing to do with you or your request.

Khaybel 05-17-2002 11:42 PM

Great hack thank you :) I just posted a small fix, on a support forum for someone that had table issues, so to kill two birds with one stone ;)

https://vborg.vbsupport.ru/showthrea...threadid=38669

other than that, install was perfect, please let me know if I missed something.

Rob

critical 05-18-2002 03:22 AM

got big problem.. when i click the hp or mp.. the pop up doesn't seems to work to let my user change their points..anyone can help me out here.. million thanks to you.. my site is www.justkool.com

zajako 05-20-2002 02:19 AM

users can't change their own points. Only admins and mods can change hp and mp. This is so people can't cheat.

if you as an admin can't change the members hp and mp, then pm me and i will help you out. You can also aim me at zajako2.

mediafuzion 05-21-2002 03:14 PM

please help...

1) my HP and MP stats dont go up
2) the links on my HP and MP links dont work?!

any idea? u can check my forum at http://www.mediafuzion.com/forums

zajako 05-21-2002 11:17 PM

i fixed mediafuzions problem, if anyone is having problems where the page is not loading when hp or mp is clicke doncheck a few things....
1.) In the post bit edit make sure the links do not say moderate.php3 unless you are using a php3 extention. This was the solution to the above problem.

2.) Make sure the link in the post bit displays action=hp for hp and action=mp for mp.

other than that i have found no other issues except the table issue found earlier by khaybel. that issue was a simple html issuse that happened due to the fact that i have edited mine and did not test with the instructions given. I am sorry for that.

I am working on an update for this hack. It fixes everything else as well as including pp and ap like my former tfo stats hack did. It also replaces mp with ma. The update also has some other features that you will make filling up life easier as well as a upgrade for the lesane store hack to add an inn to fill up hp and ma. This also seperates the stats from the rest of the board so that it can be called from every page, including your forums home page. This hack will include the famos welcome panel hack edited to display your bars. This is a big hack making it a little more fitting of the ultimate Stats hack. not to mention it is set up so people can make a battle system to deal damage through database addings and subtractings.

Please let me know what you think of these updates and wheaterh or not you think this makes it woth the title ultimate stats hack.

also i almost forgot, critical, if you still need help aim me. mediafuzion did and his problem is solved. this goes for any one else having this problem. Aim me because leaving a site url does not get me to fix it.

zajako 05-22-2002 12:50 AM

ehh, i dislike to double post but I will anyway...

I have decided to also infuse the element hack into this one. depending on the elment you choose your hp, ma, pp, and ap will be effected and modified.

ex
light element will give +50 to max hp
and so on. Plus the element hack will be mde better with all errors fixed and better integration.

plus another shop item for the shop hack made by lesane

Christoff 06-01-2002 08:35 AM

Zajko I'm sorry, I've posted in wrong thread... ;)
I've got 1022923927 / 40 HP after posting 18 posts!
Why is that?
What should I do...
All my members have something like that.

Please help!

zajako 06-02-2002 10:31 AM

Aim me at zajako2 and i will look into it and help you fix your problem.

Winnie 06-10-2002 03:04 AM

Hi.

On vb 2.2.6, everything goes ok till step #5 when customizing the functions.php file.

Then, it gives the Parse error and both admin and main forums page show that error.

Code:

Parse error: parse error in /home/user/public_html/forums/admin/functions.php on line 856

Fatal error: Call to undefined function: vbsetcookie() in /home/user/public_html/forums/admin/sessions.php on line 183


Any ideas?

zajako 06-11-2002 08:10 AM

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

GuruXL 06-11-2002 10:03 AM

nice hack, I like it ALOT

zajako 06-11-2002 02:29 PM

thank you

DemiNeo0101 06-22-2002 12:04 AM

Im using 2.2.6, its all fine untill i go to edit the hp, mp and all, and i get this error:

Parse error: parse error, unexpected T_STRING in /home/unitedad/public_html/forums/moderator.php on line 65

Can anyone help, thx.

JaZz0r 06-22-2002 07:51 AM

zajako, I was browsing your forums and absolutely loved how you've done this. Can't wait to test it out for myself - nor can my users! :)

CloudSlash 06-22-2002 06:12 PM

Hey is their anyway to make it where you can use Konmans, and be able to change it??????

JaZz0r 06-24-2002 09:04 AM

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!

mei 07-18-2002 07:50 PM

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

Brianna 07-25-2002 04:02 AM

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 :D 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 ^_^

assassingod 08-11-2002 02:23 PM

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

DarkDraco07 08-13-2002 11:27 AM

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

zajako 08-24-2002 11:32 AM

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.

Gohan 08-27-2002 11:05 AM

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?

Gohan 08-27-2002 01:05 PM

wierd.. why must i change below? still same as code :confused:
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]'");

zajako 08-31-2002 05:54 PM

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]'");


All times are GMT. The time now is 03:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01391 seconds
  • Memory Usage 1,851KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete