vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   RPG Integration Hack /w Battle (BETA) (https://vborg.vbsupport.ru/showthread.php?t=46417)

Velocd 12-07-2002 04:20 AM

Looks great bitsys, I might consider an installation on my localhost forum just for fun :p The design looks great, and I can tell you're an experienced coder. From most other battle-hack designs I've seen, this is so far the best. ;)

By the way, how query efficient is this hack?

geniuscrew 12-07-2002 04:37 AM

Sorry to bother you again Bitsys, I don't know if it's a bug, but it looks like one.

I cannot "wager" anything, not even 0

Bitsys 12-07-2002 05:57 AM

Velocd:
I have optomised the queries as best I can, including re-doing parts of the itemshop to make it more query efficient. For example, if you look at the picture title "itemshop_generic.jpg", you will notice that there is only one item category displayed. For each item category, there is one query that must be made. In order to save queries, I made it so that you have to click the "expand" link next to the Category name (in the picture, the link is yellow). When you click the link, the page refreshes with the selected category appearing in an "expanded" view at the top of the other categories, and the category that was expanded before becomes "compressed". The reason I did this is because the Generic Item Type page is the default page whenever someone visits itemshop.php. Some people were noticing that itemshop.php eats up quite a few queries. My solution was to have the Generic Items get contracted and all other item types (see itemshop_warrior.jpg) to be automatically all-expanded.

Also, the files that I made (the battle hack files) have been optimised as compared to earlier version. I believe I eventually got battlefight.php down to 18 and battle.php to 7 or 8. Battle browse is 9 I think. I don't know about battleupdate.php though, since there are so many combinations of things that it could do based on how a user attacks. Also, whenever you view the bank, there are now around 8 queries, whereas before there were 21, I think. Overall, there may be some more places for improvement and I will be looking into that a little more.

geniuscrew:
Could you post the exact error message you are getting?

Goldknight 12-07-2002 07:18 AM

Bitsys

So far your .53 verison work great. Several members and I test your hack and will let you know more. Anyway There are three things that I d like to bring up about..

First of all..

What is Ma, PP, and AP? I always like old classic rpg stats anyway I need to know what are these so I can change to old classic rpg stats. Thanks

Second, Check Stats and Donate link (javascript) it s bit annoy me whenever I click these link and bump me to top of the thread. I wonder is there any way for me to stay where I am when I click the link? Thanks

Third, One member want me to ask you, will it affect the queries if I add text and graphic stats both in postbit? Again, it is old classic rpg looks. I like it but I m not sure if it ll increase more queries or not. Pls lemme know.

Many thanks! I ll come again if I have some QQ or suggestions.

Bitsys 12-07-2002 07:51 AM

Quote:

Originally posted by Goldknight
Bitsys

So far your .53 verison work great. Several members and I test your hack and will let you know more. Anyway There are three things that I d like to bring up about..

First of all..

What is Ma, PP, and AP? I always like old classic rpg stats anyway I need to know what are these so I can change to old classic rpg stats. Thanks

MA = Magic Aura. This is similar to mana in traditional RPGs. MA is used up when you use spells.

PP = Power Percentage/Points. Currently, this does not affet the battle, because I have not implemented any kind of special moves for characters. However, in the future, this will act like a sort of "special attack" pool from which the character can draw upon for special attacks. This is subject to change.

AP = Anger Percentage. This is how mad your character is. When it reaches 100, your character does 10%-X% extra damage, based on your level. Your character gets mad when he/she misses the opponent in battle, or when the opponent dodges, or when he/she fails to do any damage to the opponent.

Quote:

Originally posted by Goldknight

Second, Check Stats and Donate link (javascript) it s bit annoy me whenever I click these link and bump me to top of the thread. I wonder is there any way for me to stay where I am when I click the link? Thanks

I think I can make a fix for this. I am not sure though. i understand your frustration. If anyone out there knows any easy fix, then please let us know!

Quote:

Originally posted by Goldknight

Third, One member want me to ask you, will it affect the queries if I add text and graphic stats both in postbit? Again, it is old classic rpg looks. I like it but I m not sure if it ll increase more queries or not. Pls lemme know.

Many thanks! I ll come again if I have some QQ or suggestions.

Whether or not you add text and graphical stats to the postbit will in no way affect the queries. The number of queries is determined by which installation option you choose during the install. If you choose to edit showthread.php, then all of the variables will be available, at the expense of ONE additional query that takes about .001 seconds to execute (it is a SELECT COUNT(*) query). If you choose not to edit showthread.php, then you cannot use any of the variables, and there will be no additional query. Remember this is one additional query for showthread.php, NOT the getpostbit function (which is a looping function inside of showthread.php).

Let me know if you have any more questions. :)

Goldknight 12-07-2002 08:03 AM

Many thanks for answer these questions =)

About Javascript, I ll check it out tmw to find a solution to see if I can solve and will let you know.

Anyway I wonder is there any way for me to edit php or whatever to change the percent of increase hp, ma, pp, and ap? To slow these down I guess =D I just want to play with these a bit more.

In any way, it is great hack and excellent work! Thanks!

Bitsys 12-07-2002 02:20 PM

Quote:

Originally posted by Goldknight
Anyway I wonder is there any way for me to edit php or whatever to change the percent of increase hp, ma, pp, and ap? To slow these down I guess =D I just want to play with these a bit more.

In any way, it is great hack and excellent work! Thanks!

If you are looking to slow them down, then I assume that you want to make them go up less every time someone updates their stats, correct? There is any easy way to adjust how high they go up:

In update.php find:
PHP Code:

$maxhpupdate = ( $level 75 $hpmulti) + $hpmodifier;
$maxhpupdatefloor ($maxhpupdate);

$maxmaupdate $mamodifier + ($jointime $level) / 5;
$maxmaupdate floor ($maxmaupdate);

$maxppupdate $ppmodifier + ($jointime $level) / 3;
$maxppupdate floor ($maxppupdate); 

Those formulas determine the maximum about of hp, ma, and pp that a person has. AP is determined strictly by their element (see the "+ to ap" field of elements in the admin control panel).

To adjust the amount that HP goes up, change the "75" to a number of your choice (a smaller number will make it go up less, since you are multiplying).

To adjust the amount that MA goes up, change the "5" to a number of your choice (a greater number will make it go up less, since you are dividing).

To adjust the amount that PP goes up, change the "3" to a number of your choice (once again, a greater number equals less PP).

This change should apply retroactively once a user update's their stats. So, you shouldn't have to make a new character to test your changes; just keep updating your stats and notice the difference each time.

Is that what you wanted to do?

Mijae 12-07-2002 03:31 PM

Excellent, finally a working battle script, even if its beta. Ill get a test board up later tonight and test this ;)

Link14716 12-07-2002 03:43 PM

I'll probably install it, but I better be sure and change MA to MP :) MP just looks better and more FFish lol

EDIT: And yes, I am crazy enough to install this on a production board. :D

Goldknight 12-07-2002 03:57 PM

Bitsys , yes thats what I want =D Sorry for not clear. I post these by appox 3 am.

Many thanks!


All times are GMT. The time now is 06:28 AM.

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.02703 seconds
  • Memory Usage 1,758KB
  • 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
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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