vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   RPG Integration Hack (https://vborg.vbsupport.ru/forumdisplay.php?f=102)
-   -   RPG Integration Hack - Old Support Thread (https://vborg.vbsupport.ru/showthread.php?t=73868)

Dyntheos 09-29-2004 11:55 PM

Revan you mentioned that weapons buffs only come into play when you attack, which I understand, yet "non battle" items, as I understood things added to your reg att score in combat. This is correct right?

Dyntheos 09-30-2004 12:12 AM

I think I am reading this correctly.

These lines from the the battleupdate.php..

Code:

$damagedone = @floor(($weapon[damage] + $regattbonus) * $uelemod * $anger + $bonusattack - $armor - $regdefminus);


----------

$bonusattack = $bonusattack + $attackitem['damage'];

$attackitem = $DB_site->query_first("SELECT damage FROM ".TABLE_PREFIX."rpg_items WHERE itemid='$userattbonus[id]'");

So read from the above:

Damage done = (weapon buff + regattbonus) X Class Mod X Anger Points + bonus to attack - (Armor - regdefminus)


Bonus to attack = bonus attack + Attack items

Attack items = items with a user attack bonus id


Now I am assuming that "Attack Items" are "non battle items" in the edit item options, because you mentioned that non battle items only add to regatt.


Weapon buffs then appear to multiply the damage and non battle items appear to only add to the damage making weapon buffs more potent than any other battle mod.

I remember that I looked at your shop and said your best sword only had a +100 buff on it, which as I understood it would only add +100 damage to the attack. However it looks as if this number multplies in the equation making that number much more significant.

Anyone else care to look at the calculations inthe battleupdate.php file to verify this because i am kinda grasping at things here, but need some solid numbers to be able to set buffs. I'd hate to be giving a +2000 score to a weapon thinking it's addative when in fact it's a multiplier..

RMS 09-30-2004 12:47 AM

Great, I have it up and running now. :)

I was wondering though, is something supposed to appear in profiles now?
I noticed that there was a bit edit to profile.php and there's no screenshot for the page. My profile looks the same as it did before.
If there isn't then well I suppose that's fine. Just wanted to be sure :lick:

Warlord 09-30-2004 02:33 AM

Ok Revan.. I got a few users who said the midi worked for them and one who said it doesn't work for him (as well as mysefl). Personally, the only time I've ever heard the midi was when I was testing it in the admin cp.

Any ideas?

deathemperor 09-30-2004 01:20 PM

Quote:

Originally Posted by Revan
What you mean, putting weapons\spells\shield\etc in .php files instead of inside the battleupdate file?

no, I meant the weapons have skills which are attached in, and those skills are written in separate files, I think that way it's easier to add skils to weapons you want, or even skills for a specific level/job.

Blam Forumz 09-30-2004 01:50 PM

Is it possible to make it so members cant choose between drop down and long postbit? so its just drop down?

Revan 09-30-2004 02:33 PM

Quote:

Originally Posted by Dyntheos
Revan you mentioned that weapons buffs only come into play when you attack, which I understand, yet "non battle" items, as I understood things added to your reg att score in combat. This is correct right?

I believe you can set both RegAtk and RegDef for Non-battle items, and they do act like a permanent RegAtk or RegDef buff in battle, regardless of your battle action.

Quote:

Originally Posted by Dyntheos
I think I am reading this correctly.

These lines from the the battleupdate.php..

Code:

$damagedone = @floor(($weapon[damage] + $regattbonus) * $uelemod * $anger + $bonusattack - $armor - $regdefminus);


----------

$bonusattack = $bonusattack + $attackitem['damage'];

$attackitem = $DB_site->query_first("SELECT damage FROM ".TABLE_PREFIX."rpg_items WHERE itemid='$userattbonus[id]'");

So read from the above:

Damage done = (weapon buff + regattbonus) X Class Mod X Anger Points + bonus to attack - (Armor - regdefminus)


Bonus to attack = bonus attack + Attack items

Attack items = items with a user attack bonus id


Now I am assuming that "Attack Items" are "non battle items" in the edit item options, because you mentioned that non battle items only add to regatt.


Weapon buffs then appear to multiply the damage and non battle items appear to only add to the damage making weapon buffs more potent than any other battle mod.

I remember that I looked at your shop and said your best sword only had a +100 buff on it, which as I understood it would only add +100 damage to the attack. However it looks as if this number multplies in the equation making that number much more significant.

Anyone else care to look at the calculations inthe battleupdate.php file to verify this because i am kinda grasping at things here, but need some solid numbers to be able to set buffs. I'd hate to be giving a +2000 score to a weapon thinking it's addative when in fact it's a multiplier..

I have seriously no fecking clue if the buff is a modifier or a multiplier.
Tell you what: I will turn on Battle Debug Mode on my localhost, and if it lacks the info I need to answer this, I will add it so it shows more clearly ;)


Quote:

Originally Posted by RMS
Great, I have it up and running now. :)

I was wondering though, is something supposed to appear in profiles now?
I noticed that there was a bit edit to profile.php and there's no screenshot for the page. My profile looks the same as it did before.
If there isn't then well I suppose that's fine. Just wanted to be sure :lick:

You have to edit the USERCP_SHELL template to get the link to profile.php?do=updaterpg :)


Quote:

Originally Posted by Warlord
Ok Revan.. I got a few users who said the midi worked for them and one who said it doesn't work for him (as well as mysefl). Personally, the only time I've ever heard the midi was when I was testing it in the admin cp.

Any ideas?

Um I got the same amount of ideas as I had on msn ;)



Quote:

Originally Posted by deathemperor
no, I meant the weapons have skills which are attached in, and those skills are written in separate files, I think that way it's easier to add skils to weapons you want, or even skills for a specific level/job.

Hm ok, new feature request.
Ill flag it for later, right now I wanna sort out the issues with this current build and get the ACP ready lol.

Revan 09-30-2004 05:18 PM

Quote:

Originally Posted by Blam Forumz
Is it possible to make it so members cant choose between drop down and long postbit? so its just drop down?

Just alter the SQL to have Dropdown as default, and then remove the Choose stuff from the template AND the php

Warlord 09-30-2004 06:10 PM

Hmmm I can't hear it here at work either. I was hoping it was just my computer. :(

RMS 09-30-2004 06:59 PM

1 Attachment(s)
Ah, this isn't a big deal but what I meant was is there a way to get a link to display stats in the profile that anyone can see of a certain person? I have the link in the usercp but currently the only way to see another person's character is to find a thread he posted in and then look it up there.

Sorry if this has been asked before but is there a reason that classes are based upon gender? Maybe I'm just not clear on it but it seems that this isn't very useful. Races are based on alignment so in turn it would be nice to have classes that are exclusive to certain races. Is this possible?

What I would like to do is for example do something like make a race of dwarves where if you choose them you can then only choose a class that is proficient in melee and not magic. The way I see it now is that no matter your alignment or race, you can be pretty much any class that is availalable. This way I can't even divide it so that only the default race of orcs can only be black mages. Personally I find it a bit contradictory to allow good people to be a black mage.

At the very least is there any real purpose to creating more class types other than to organize things better?

Is this just the way it is, am I mistaken or is there a way to fix this?

Also I seem to have a problem. After battles (and maybe something else) it seems that some or all characters have their max MP and PP calculated incorrectly, making it become some huge number. When I was level one I could go to my character edit screen and update it which would fix it. Now even when I do that nothing happens. :surprised:


All times are GMT. The time now is 03:04 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.01787 seconds
  • Memory Usage 1,759KB
  • 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_code_printable
  • (7)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