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)

Bitsys 07-01-2003 02:02 PM

Quote:

06-29-03 at 10:51 PM chrisz said this in Post #1934
Well make it so when you hit armour it still does damage instead of hurting yourself.
Or if not just how do I edit the damage (where) and where I edit the % you hit.


At the top of battleupdate.php, you will see:
PHP Code:

// formula for calculating the amount of damage done by fists
function cal_fists($level) {
        return 
floor(log10($level) * 30 rand(-(int)($level .15), (int)($level .15))) + 1;


You can change that formula to adjust the amount of damage done by fists.

There is a 50% chance that you will hurt yourself if the opponent is wearing armor.


I am out of town for 10 days starting tomorrow. If you have any questions or problems, post them here and someone will probably be able to help you. If not, I will do my best to answer questions when I get back.

See you when I get back :)

Ciufs 07-01-2003 05:47 PM

Hi all... i want to try to dev this hack in D&D version... with its rules

anyone want help me?

PS: sorry for my bad english

Airs 07-01-2003 07:28 PM

Not sure if this has been asked already but figured id give it a shot. Is it possible to add more stats or change the current ones? also is it possible to add a unique character or a person lets say a admin has one and another admin has a diffrent one etc. and normal players cant choose it if this was posted already sorry ><.

Darkwaltz4 07-02-2003 05:55 AM

umm...well i posted an attempted fix which i never tried, but supposedly it didnt work, as for the 'default' view in the itemshop, you can do two things:

first, set all links to the itemshop as itemshop.php?itemtype=$bbuserinfo[rpgtype]

and then first find the TYPE ID of your generic items that you have, and then find in itemshop.php (i dont have the file but i know it is in there)

something like $itemtype = 0;

it should be in the code which checks if itemtype is set...change the 0 to the generic type id.

i myself did a added a new rpg type to which NO classes were applied to, and called it 'Certain Type'

then i applied all the items to show up in this type....so basically, i now had an itemshop which had all the items in it to view, a combination itemshop, for everyone to see :-p and then it would say in the purchase area, 'You must be a Certain Type to purchase' catch my drift? well that type happened to have an id of 5, which i applied to itemshop.php, and now....even if you are not registered, you will see my combination itemshop :-p check it out::

http://forums.ffgon.com/itemshop.php

chrisz 07-02-2003 06:09 AM

I dont get the formula can someone explain >_<"

kaotic 07-02-2003 08:53 PM

Wow... so what exactly did you do to put up the 'specific type' warning when purchasing an item? Or is that private information? :p

Mijae 07-03-2003 02:46 AM

HUGE Money bug:

Quote:

Alright, after thorough testing with ****** you'll notice our bank accounts are extremely high? why? We/I found the bug. I wouldn't have been on the right track if it weren't for him.

Basically when you challenge a person for a battle you can bet all the money you have.

Then you go back and cancel the battle. At this point the BANK account will add the account money on hand for some reason. This happens to both players. Doubling the amount on hand for the original battler. And adding the equiv to the opponent. And there ya go.
Anyone want to release a quick fix? My members are having way too much fun with this :P

Darkwaltz4 07-03-2003 06:50 AM

Quote:

Yesterday at 04:53 PM kaotic said this in Post #1948
Wow... so what exactly did you do to put up the 'specific type' warning when purchasing an item? Or is that private information? :p

i just said what i did :-p i created a type to which i put no classes on, and called it 'Certain Type' mainly so that i could create a nice illusion. if ur in a 'wrong' itemshop, it would normally give you this (say you were a magician type and was in the warrior itemshop): You need to be a Warrior Type to purchase

see? so if i wanted a combo intemshop, then i needed something which nobody could *be*, and i could have it display for EVERYONE that a certain type was needed :-p i cant think of a better way to explain it...

lol, you alone shoul dbe able to experience my tinkering firsthand :-p

kaotic 07-03-2003 11:53 AM

Ohh, my bad. I didn't understand it at first, I suppose. I'll work with it now. :)

Spark 07-03-2003 05:55 PM

hm here is a bad bug

I was challenged by a user
I was in trouble so i cancel the battle
The user , has lost his wager...and i win the wager...without a fight, only the challenge PM.

What´s that?


All times are GMT. The time now is 04:36 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.03200 seconds
  • Memory Usage 1,748KB
  • 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
  • (3)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