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)

Darkwaltz4 06-28-2003 06:53 AM

why not just

PHP Code:

if($showlevel >=and $showlevel <= 10){ 
                
$DB_site->query("UPDATE user SET hp=maxhp WHERE userid='$bbuserinfo[userid]'"); 
        } 


kaotic 06-28-2003 07:00 AM

So...

PHP Code:

$healuser $DB_site->query_first("SELECT * FROM user WHERE userid='$bbuserinfo[userid]'"); 
            
$level getlevel($healuser['xp'], $healuser['exprate'], 1); 
            
$ep floor (100 * ($level floor ($level))); 
            
$showlevel floor ($level 1);
if(
$showlevel >=and $showlevel <= 10){ 
                
$DB_site->query("UPDATE user SET hp=maxhp WHERE userid='$bbuserinfo[userid]'"); 
        } 

...would automatically heal users that are level 10 (and under) after a battle ends?

SmEdD 06-28-2003 04:23 PM

I'm still a n00b to php but thanks.

And yes it would kaotic

SmEdD 06-28-2003 04:57 PM

Actually better yet a admin area on to set the level.

This is not tested but it should work. And I am working on the healing center to so if they some how are hurt before battle they may heal up there to.

Also you edit it in the Edit Options under battle

kaotic 06-28-2003 05:51 PM

Another add-on. :D Thanks. I'll test it out now.

Question: Is there an easy way to remove the forced confirmation at the end of battles? Sometimes when a member loses, he or she likes to ignore the ending confirmation to upset or agitate the winner.

Bitsys 06-28-2003 10:02 PM

Quote:

Today at 01:51 PM kaotic said this in Post #1924
Another add-on. :D Thanks. I'll test it out now.

Question: Is there an easy way to remove the forced confirmation at the end of battles? Sometimes when a member loses, he or she likes to ignore the ending confirmation to upset or agitate the winner.


The winner should be able to join another battle as long as they have confirmed the end of the last one, regardless of the confirmation of the other combatants.

kaotic 06-28-2003 10:25 PM

Strange. One of them was telling me that he couldn't join another battle because it was invalid. I just assumed it was because of his opponent not confirming.

Bitsys 06-28-2003 11:32 PM

Quote:

Today at 06:25 PM kaotic said this in Post #1926
Strange. One of them was telling me that he couldn't join another battle because it was invalid. I just assumed it was because of his opponent not confirming.

If he tries to join another battle after completing a previous one and gets the "You are already in battle." message, then that is not supposed to happen. However, the invalid battle message is displayed when a battle has not started or already ended. So, I am not sure what to make of it.

PixelFx 06-29-2003 06:09 AM

anyone thought much of what it would take to make a PvM / PvT(player versions monster / tom bot) systems for the battle system?

Maybe use a version of the tom bot AI as a monster AI or other :P just some throughts, I can also help with monster art other.

I'm also working on a items shop addon, it's coming along nice :)

chrisz 06-29-2003 08:32 AM

When using fists can you miss?
And can you make the damage dealt vary?


All times are GMT. The time now is 12:01 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.03619 seconds
  • Memory Usage 1,750KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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