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)

lokirj 09-26-2004 07:33 PM

Hi....
I installed all RPG system OK.
But when i called other member for battle...look

You are ineligible for battle at this time. Please try updating your stats in the User Control Panel.

Warlord 09-26-2004 09:56 PM

Quote:

Originally Posted by Revan
To pwn that error, simply open the battlefight.php and remove whats in between the coding
PHP Code:

if (!$size)
{


And about the midis, I got them to work just fine in IE.
I went to check out your forums but couldnt seem to find a battle with a midi in it, so meh :p


Well since you went to all the trouble of registerring at my forums, I don't want you to have done it for nothing.:p

Could you please contact me on MSN or AIM?

AIM : Nero the Warlord
MSN: scott.alan.williams1@us.army.mil

Many thanks,

-WL

lokirj 09-27-2004 02:00 AM

Revann :)
You have a great forum!

How can you put magics ?
I dont found this options ..
MA Cost
Attack
Heal

:)

deathemperor 09-27-2004 02:24 AM

Revan, I may suggest you to use .php files for skills as UCS does for their actions, this would be more customizable, easier to create skills.

korny 09-27-2004 03:47 AM

Revan..I just looked at your forum....you probably already answered this once before, but I don't want to look for it in all of these posts.. :D

Can you show me what you changed to make your postbit look like yours, a link and a drop down to show rpg stats?

Thanks again

Revan 09-27-2004 06:59 AM

Quote:

Originally Posted by Warlord
Well since you went to all the trouble of registerring at my forums, I don't want you to have done it for nothing.:p

Could you please contact me on MSN or AIM?

AIM : Nero the Warlord
MSN: scott.alan.williams1@us.army.mil

Many thanks,

-WL

Ill put you on MSN when I get home :)


Quote:

Originally Posted by lokirj
Revann :)
You have a great forum!

How can you put magics ?
I dont found this options ..
MA Cost
Attack
Heal

:)

You create spells through ACP.


Quote:

Originally Posted by deathemperor
Revan, I may suggest you to use .php files for skills as UCS does for their actions, this would be more customizable, easier to create skills.

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



Quote:

Originally Posted by korny
Revan..I just looked at your forum....you probably already answered this once before, but I don't want to look for it in all of these posts.. :D

Can you show me what you changed to make your postbit look like yours, a link and a drop down to show rpg stats?

Thanks again

I edited my sig, so perhaps you see your answer more clearly now ;)

Sanni 09-27-2004 09:04 AM

Quote:

Originally Posted by Mattius
Ive imported them twice and 90% of them work, i cant figure out why i cant seem to view or enter battles

PHP Code:

        $stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
    <!-- 
no cache headers -->
    <
meta http-equiv="Pragma" content="no-cache" />
    <
meta http-equiv="Expires" content="-1" />
    <
meta http-equiv="Cache-Control" content="no-cache" />
    <!-- 
end no cache headers -->
    <
title>$vboptions[bbtitle] - Battle</title>
    
$headinclude
</head>
<
body>
$header
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <
tr>
    <
td width="36" height="300" align="left" valign="top" nowrap background="images/misc/vborgmiddle_01.gif"><img src="images/misc/vborgmiddle_01.gif" width="36" height="57" alt=""></td>
    <
td width="100%" height="100%" valign="top">
$navbar
<form name="enterbattle" method="post" action="battlefight.php?action=enterbattle">
<
table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
  <
tr>
    <
td width="77%" valign="top">
    <
table border="1" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#000000" width="100%">
      <
tr>
        <
td width="100%">
        <
p align="center"><b>Welcome to the battle arena!</b></td>
      </
tr>
        <
td width="100%" valign="top">
        &
nbsp;
        <
table align="center" cellpadding="3" cellspacing="0" border="1" width="80%" bordercolor="#000000" style="border-collapse: collapse">
<
tr>
        <
td width="100%">
        <
p align="center"><b>Battle System Links</b></td>
</
tr>
        <
td width="100%">
        <
p align="center">
        <
a href="battle.php?action=newbattle"><strong>New Battle</strong></a>
        <
a href="battle.php?action=browse"><strong>Browse</strong></a>
        <
a href="battle.php?action=showbattlestats"><strong>Top 10</strong></a>
        <
a href="battle.php?action=showuserstats"><strong>Your Stats</strong></a>
        </
td>
</
tr>
</
table>
  </
center><br />
        <
table align="center" border="1" cellspacing="0" style="border-collapse: collapse" bordercolor="#000000" width="300" height="56" cellpadding="2">
      <
tr>
        <
td width="200%" height="19" colspan="2">
        <
p align="center"><b>Enter Battle</b></td>
      </
tr>
        <
td width="50%">
 
Battle Number:</td>
        <
td width="50%">
<
input type="text" class="input" name="battlenumber" size="12" maxlength="10"></td>
      </
tr>
        <
td width="50%">

Battle Password:</td>
        <
td width="50%"><input type="text" class="input" name="battlekey" size="12" maxlength="50"></td>
      </
tr>
        <
td width="100%" colspan="2">
 <
p align="center">
 <
input type="submit" class="input" name="Enter Battle" value="Enter Battle">
</
td>
      </
tr>
    </
table>
  </
td>
</
form>
</
td>
    <
td width="37" height="300" align="right" valign="top" nowrap background="images/misc/vborgmiddle_03.gif"><img src="images/misc/vborgmiddle_03.gif" width="37" height="57" alt=""></td>
  </
tr>
</
table>
$footer
</body>
</
html

Thats the main battle template, which should display it all...but alas..

or possibly battle arena template

PHP Code:

  $stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
    <!-- 
no cache headers -->
    <
meta http-equiv="Pragma" content="no-cache" />
    <
meta http-equiv="Expires" content="-1" />
    <
meta http-equiv="Cache-Control" content="no-cache" />
    <!-- 
end no cache headers -->
    <
title>$vboptions[bbtitle] - Battle</title>    
$headinclude
</head>
<
body>
$header
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <
tr>
    <
td width="36" height="300" align="left" valign="top" nowrap background="images/misc/vborgmiddle_01.gif"><img src="images/misc/vborgmiddle_01.gif" width="36" height="57" alt=""></td>
    <
td width="100%" height="100%" valign="top">

$navbar
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
  <
tr>
        <
td width="100%"><b>? <a href="battle.php">Battle</a> ? Battle # $battlenumber - $battle[battlename]</b> </td>
  
</tr>
</
table>
&
nbsp;
<
table border="1" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#000000" width="100%">
  <
tr>
    <
td width="25%">
    <
p align="center"><b>
    
$oppstats[username]</b></td>
    <
td width="50%">
    <
p align="center"><b>
    
$battle[battlename]</b></td>
    <
td width="25%">
    <
p align="center"><b>$ownerstats[username]
    </
b></td>
  </
tr>
  <
tr>
    <
td width="25%" valign="top">
    <
div align="left">
    <
table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
      <
tr>
        <
td width="1%" valign="top">$avatar2</td>
        <
td width="99%">
              <
b>HP:</b$oppstats[hp]/$oppstats[maxhp]<br />

                  <
table width="100" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" style="border-collapse: collapse">
                    <
tr
                      <
td><img src="images/bar/bhg.gif" width="$opphpbar%" height="5"><img src="images/bar/bxb.gif" width="1" height="5"></td>
                    </
tr>
                  </
table>
                     <
b>MA:</b$oppstats[ma]/$oppstats[maxma]<br />
 
                  <
table width="100" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" style="border-collapse: collapse">
                    <
tr
                      <
td><img src="images/bar/bxg.gif" width="$oppmabar%" height="5"><img src="images/bar/bxb.gif" width="1" height="5"></td>
                    </
tr>
                  </
table>
              <
b>PP:</b$oppstats[pp]/$oppstats[maxpp]<br />
               <
table width="100" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" style="border-collapse: collapse">
                    <
tr
                      <
td><img src="images/bar/bxg.gif" width="$oppppbar%" height="5"><img src="images/bar/bxb.gif" width="1" height="5"></td>
                    </
tr>
                  </
table>
              <
b>Limit: </b>$oppstats[ap]%<br />
               <
table width="100" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" style="border-collapse: collapse">
                    <
tr
                      <
td><img src="images/bar/bxg.gif" width="$oppapbar%" height="5"><img src="images/bar/bxb.gif" width="0" height="5"></td>
                    </
tr>
                  </
table><br />
Reg Att$oregatt<br />
Mag Att$omagicatt<br />
Reg Def$oregdef<br />
Mag Def$omagicdef<br />                
Speed$ospeed<br />
Evade$oevade<br /><br />
<
table width="100%" style="border-collapse: collapse" bordercolor="#000000" border="1"><td>
<
strong>Class:</strong$opponent[classname]<br />
<
strong>Race:</strong$opponent[racename]<br />
<
strong>Element:</strong$opponent[elename]<br />
</
td></table>
        </
td>
      </
tr>
    </
table>
      </
center>
    </
div>
    </
td>
    <
td width="50%" height="200" valign="bottom" background="images/$battle[icon]">&nbsp;
    <
table border="0" width="100%" height="10" cellspacing="0" cellpadding="2" style="border-collapse: collapse" bordercolor="#111111">
            <
tr>
          <
td width="1%"> <img src="images/style/classes/flip_$opponent[classfolder].gif" align="left" alt="Hp: $oppstats[hp]/$oppstats[maxhp]border="0"></td>
              <
td width="98%"></td>
              <
td width="1%">
              <
img src="images/style/classes/$owner[classfolder].gif" align="left" alt="HP: $ownerstats[hp]/$ownerstats[maxhp]border="0"></td>
            </
tr>
          </
table>
          </
td>
    <
td width="25%" valign="top">
    <
div align="left">
    <
table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
      <
tr>
        <
td width="50%">
                 <
b>HP:</b$ownerstats[hp]/$ownerstats[maxhp]<br />

                  <
table width="100" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" style="border-collapse: collapse">
                    <
tr
                      <
td><img src="images/bar/bhg.gif" width="$ownerhpbar%" height="5"><img src="images/bar/bxb.gif" width="1" height="5"></td>
                    </
tr>
                  </
table>
                 <
b>MA:</b$ownerstats[ma]/$ownerstats[maxma]<br />
                  <
table width="100" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" style="border-collapse: collapse">
                    <
tr
                      <
td><img src="images/bar/bxg.gif" width="$ownermabar%" height="5"><img src="images/bar/bxb.gif" width="1" height="5"></td>
                    </
tr>
                  </
table>
                 <
b>PP:</b$ownerstats[pp]/$ownerstats[maxpp]<br />
                  <
table width="100" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" style="border-collapse: collapse">
                    <
tr
                      <
td><img src="images/bar/bxg.gif" width="$ownerppbar%" height="5"><img src="images/bar/bxb.gif" width="1" height="5"></td>
                    </
tr>
                  </
table>
                 <
b>Limit:</b$ownerstats[ap]%<br />
                  <
table width="100" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" style="border-collapse: collapse">
                    <
tr
                      <
td><img src="images/bar/bxg.gif" width="$ownerapbar%" height="5"><img src="images/bar/bxb.gif" width="0" height="5"></td>
                    </
tr>
                  </
table><br />

Reg Att$uregatt<br /> 
Mag Att$umagicatt<br />
Reg Def$uregdef<br /> 
Mag Def$umagicdef<br />                        
Speed$uspeed<br /> 
Evade$uevade<br /><br />
<
table width="100%" style="border-collapse: collapse" bordercolor="#000000" border="1"><td>

<
strong>Class:</strong$owner[classname]<br />
<
strong>Race:</strong$owner[racename]<br />
<
strong>Element:</strong$owner[elename]<br />
</
td></table>
        </
td>
        <
td width="50%" valign="top">$avatar1</td>
      </
tr>
    </
table>
      </
center>
    </
div>
    </
td>
  </
tr>
  <
tr>
    <
td width="25%">
              
         
              <
b>Inventory:</b$oppitems</td>
    <
td width="50%">
    <
p align="center">
    <
b>Battle:</b$battlenumber</td>
    <
td width="25%">
                 <
b>Inventory: </b>$owneritems
                 
              
</td>
            </
tr>

  </
table>
<
tr><td>
<
br />
$battlemoves
<br />
$attackform
   
<br />
<
center><a href="battlefight.php?action=enterbattle&battlenumber=$battlenumber&username=$bbuserinfo[username]&userid=$bbuserinfo[userid]&battlekey=$battlekey"><strong>Refresh</strong><!-- <img src="refresh.gif" border="0" alt="Refresh"> --></a></center>
</
td>
    <
td width="37" height="300" align="right" valign="top" nowrap background="images/misc/vborgmiddle_03.gif"><img src="images/misc/vborgmiddle_03.gif" width="37" height="57" alt=""></td>
  </
tr>
</
table>
$refresh 
$footer
</td></tr></table>
</
body>
</
html


heya, I came across this problem as well (on a brand spanking new board running PHP 5.0.1 - and thats what the problem was - PHP 5 didnt like it for some reason. All the templates were installed fine but the hack couldnt find them.

The way it was fixed was by opening init.php and adding:

Code:

                    if (!is_array($specialtemplates)) {
                                $specialtemplates = array();
                        }

above:

Code:

                        $specialtemplates = array_merge(array(
                                'options',
                                'cron',
                                'forumcache',
                                'usergroupcache',                               
// ## <ucs>
                        'stylecache',
                        'utt_store_act',
// ## </ucs>

I can't take credit for the fix, i needed a collegue to help me because i was stumped as to what was casuing the problem :)

lokirj 09-27-2004 11:28 AM

But revan...
I dont find this options...
MA Cost
Attack
Heal

if i chose itemshop and add new category and add new item...dont appear this options.

Revan 09-27-2004 02:05 PM

They not supposed to, because the Add Items or Add Category cannot guess what type of item you wish to add, nor can it update its choices dynamically according to what Item Type you select.
To set Spell attributes, edit the Spells category and set them to Spells (yes the same), then you will see checkboxes that allows you to set spell attributes.

lokirj 09-27-2004 02:41 PM

OKKK ! :) Done .......thanks Revan!
You have a great site

Zantheus 09-27-2004 08:48 PM

Ok, I cant seem to find my original post, I got everything working (I think I missed something, somewhere). But I goto User CP and click on Edit Information for this hack, but when I click the link ,it jusy comes up blank, what templates do I need to edit?

Warlord 09-27-2004 10:07 PM

Quote:

Originally Posted by Revan
They not supposed to, because the Add Items or Add Category cannot guess what type of item you wish to add, nor can it update its choices dynamically according to what Item Type you select.
To set Spell attributes, edit the Spells category and set them to Spells (yes the same), then you will see checkboxes that allows you to set spell attributes.


I had no idea this stuff was possible. I don't think this is in the manual. ;)

Are all these items/potions/spells/armor, etc going to be standard, pre-installed (with attack/def levels/buff already input) in v3? That would rock.

And thanks for adding me to MSN.. look forward to seeing you online. :D

Warlord 09-27-2004 10:13 PM

P.S. There's so much stuff to add attributes for.. is there a master list somewhere we can go off of? Or a file that you use that we can overwrite our attributes with the ones you use?

starfantazy 09-27-2004 11:56 PM

how do i make a drop down link for everything included in the hack?

Warlord 09-28-2004 01:54 AM

Quote:

Originally Posted by starfantazy
how do i make a drop down link for everything included in the hack?


Add this to your navbar somewhere (swap out my hardcoded url for yours):

PHP Code:

<if condition="$show['member']">
<
td class="vbmenu_control2" id="rpg"><a href="http://www.neropolis.com/vb/#rpg">RPG</a> <script type="text/javascript"vbmenu_register("rpg"); </script></td>
</if> 

Find:

PHP Code:

<!-- / NAVBAR POPUP MENUS --> 


And then add this right BEFORE that:

PHP Code:

    <!-- RPG Menu -->
    <
div <if condition="!is_browser('ie')">style="width: 125px;"</if> class="vbmenu_popup" id="rpg_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">
        
                <
tr><td class="thead">RPG</td></tr>        
        <
tr><td class="vbmenu_option"><a href="rpgcp.php">RPG Main</a></td></tr>
        <
tr><td class="vbmenu_option"><a href="battle.php">Battle Arena</a></td></tr>
        <
tr><td class="vbmenu_option"><a href="itemshop.php">Itemshop</a></td></tr>
        <
tr><td class="vbmenu_option"><a href="profile.php?do=updaterpg">Edit Your Character</a></td></tr>
<
tr><td class="vbmenu_option"><a href="heal.php">Healing Center</a></td></tr>
<
tr><td class="vbmenu_option"><a href="battle.php?action=showbattlestats">RPG Top 10</a></td></tr>
<
tr><td class="vbmenu_option"><a href="battle.php?action=showuserstats">Check Your Stats</a></td></tr>
<
tr><td class="vbmenu_option"><a href="clancp.php">Clan CP</a></td></tr>
<
tr><td class="vbmenu_option"><a href="rpgmanual.php">RPG Manual</a></td></tr>



        </
table>
    </
div>
    <!-- / 
RPG Menu --> 

I have a custom skin and this works for me.. but I think it should work for you too.

rinkrat 09-28-2004 03:45 AM

My users are getting "Fighter used a potion but it had no effect" every time they use a potion. Is there something I have to tweak to get them working?

starfantazy 09-28-2004 05:50 AM

k, got it, now i did the database fix several times, went in and redid 6 hack installs and tried everything i could think of, yet i continue to get this error:

Quote:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/****/******/forums/includes/db_mysql.php on line 213

Fatal error: Maximum execution time of 30 seconds exceeded in Unknown on line 0
and the latest:
Quote:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/*****/*******/forums/includes/db_mysql.php on line 212

This happens when i go to
Quote:

profile.php?do=updaterpg
and try to edit my own character. My board is at the link in my siggie. it has taken me 5 hours to double check, reinstall and everything else. so, if the only way this is to be fixed is to check my file edits....well...

Revan 09-28-2004 11:33 AM

Quote:

Originally Posted by Warlord
I had no idea this stuff was possible. I don't think this is in the manual. ;)

Are all these items/potions/spells/armor, etc going to be standard, pre-installed (with attack/def levels/buff already input) in v3? That would rock.

And thanks for adding me to MSN.. look forward to seeing you online. :D

Yes that there IS in the Admin Manual, even the default one IIRC ;)

Nope, to have them more preinstalled than now is impossible.
Because the SQL NEEDS to be updated with the battle types, and buff levles is something each admin has to decide for himself.


Quote:

Originally Posted by rinkrat
My users are getting "Fighter used a potion but it had no effect" every time they use a potion. Is there something I have to tweak to get them working?

You have to do the same as for the spells, set the categories' battle type once again, then set attributes for MA and HP healing.



Quote:

Originally Posted by starfantazy
k, got it, now i did the database fix several times, went in and redid 6 hack installs and tried everything i could think of, yet i continue to get this error:


and the latest:



This happens when i go to and try to edit my own character. My board is at the link in my siggie. it has taken me 5 hours to double check, reinstall and everything else. so, if the only way this is to be fixed is to check my file edits....well...

As it has been stated multiple times in this thread, if you get dbase timeout errors, its because of the way PHP is compiled on the server.
In short, it sucks.
It causes some glitch with the Female class that only seems to happen to 20 % of the installs. It will probably be fixed in v3, once SquareUltima gets around to installing the v3 Alpha I sent to them (Alpha because the ACP isnt finished plus it hasnt been tested much) we'll see if it fixes itself.

rinkrat 09-28-2004 03:22 PM

Thanks for the tip. The settings in this thing are like a nuclear reactor. I suggest that you have it set up with a basic working configuration to start instead of having new users go in and tweak dozens of adjustments when they don't even know the way it works. At least if it worked out of the box you could just change things how you want them instead of having nothing activated or adjusted. Just a basic catch-all config to get the newbie going would be way better. It's been a week and I'm still discovering mandatory settings that are not correct.

Revan 09-28-2004 07:06 PM

I might write a build_rpg() that fixes the SQL so at least the battle types are correct.
But I will not set Buff levels on anything, because thats so individual from forum to forum what the admin wants. If there was a standard level, every newbie would use this and there would be distinctions between those that bother to configure it and those that dont bother.
In the updated RPG Manual, there will be a getting started section, so anyone comin whinin after that will be sent right back to detention in the manual ;)

Warlord 09-29-2004 12:27 AM

LOL.. As hard as some of those instructions are to follow, every newbie would definately not use this. :p But it is an awesome hack none the less. :)

rinkrat 09-29-2004 01:18 AM

Yeah, besides the fact that I just randomly flipped switches and set up the potions and all that, the users are so hooked on this that they are fighting 24/7 and the shoutbox is now the RPG chat! ;)


What the hack lacks in documentation is more than made up for with the first rate support so I have no complaints.

Dyntheos 09-29-2004 03:12 AM

heh a Week! Is that all? I've been configuring and working on this thing for about a month now, and I'm still not done yet importing all the Items I've setup.

Revan on that note. I'll be putting in a couple of hundred new items completely replacing what was there before, with new graphics aswell. Should I wait for the update to do this as I fear it'll grind the sql to a halt. i'm looking at getting this up and running in about 2 weeks. If you're roughyl a month away from putting up version 3 I can hold off, as I remember you said you were going to make the update items section a seperate page to reduce loads.

Revan 09-29-2004 07:27 AM

Quote:

Originally Posted by Dyntheos
heh a Week! Is that all? I've been configuring and working on this thing for about a month now, and I'm still not done yet importing all the Items I've setup.

Revan on that note. I'll be putting in a couple of hundred new items completely replacing what was there before, with new graphics aswell. Should I wait for the update to do this as I fear it'll grind the sql to a halt. i'm looking at getting this up and running in about 2 weeks. If you're roughyl a month away from putting up version 3 I can hold off, as I remember you said you were going to make the update items section a seperate page to reduce loads.

If you have hundreds of items with this setup, you can say byebye to everything called fast loading every time you load the Edit Items :p
I was told of a new way of doing the Edit Items, theres seperate categories where you edit all the Items of that one category like it is now. Also Ill add a conditional that tells the script to only show 50 items at a time, so theres a sorta "page 2" in case you have too many items in one category ;)

And the Final of v3 aint a month away, but once I finish the entire ACP I can send you an RC version ;)

Sanni 09-29-2004 11:43 AM

Hi revan, thanks for this hack btw it rocks :)

just a couple of questions

I noticed that if you seperate the weapons into 2 handed and single handed weapons that it still allows you to buy a shield even though you have a two handed weapon? Is there any way around this or am I missing something?

Also, for some reason after I buy a weapon/armour and then sell it my attack and defense stats dont seem to change? Nor do my stats increase when i buy weapons/armour.... is there some place that you are meant to equip these weapons/armour?

additionally when viewing the itemshop it says that the refund value for selling an item =0 even though I have the refund value set to 75% of the original purchase price.

any ideas?

P.S. yes i have set buffs for all items and equipment

Revan 09-29-2004 01:27 PM

Quote:

Originally Posted by Sanni
Hi revan, thanks for this hack btw it rocks :)

just a couple of questions

I noticed that if you seperate the weapons into 2 handed and single handed weapons that it still allows you to buy a shield even though you have a two handed weapon? Is there any way around this or am I missing something?

Also, for some reason after I buy a weapon/armour and then sell it my attack and defense stats dont seem to change? Nor do my stats increase when i buy weapons/armour.... is there some place that you are meant to equip these weapons/armour?

additionally when viewing the itemshop it says that the refund value for selling an item =0 even though I have the refund value set to 75% of the original purchase price.

any ideas?

P.S. yes i have set buffs for all items and equipment

1. I dont think 2 handed weapons disables shields atm. I might add this later tho.
2. Your attack does not change because the stats calculations does not take item buff into consideration, but when you actually USE the weapon, it does ;)
3. I haven't ever seen that error with the refund, you sure you used the correct number format (or perhaps the default)?

Sanni 09-29-2004 01:34 PM

thanks for the quick responses revan :D

i am currently using the default value for the refund, i'll try adjusting it and see what happens :)

thanks again for all your help :)

edit: the item shop refund is now working, the system didnt like it being set to .75 (without the zero) had to change it to 0.75 :)

Warlord 09-29-2004 03:20 PM

Thanks for coming to my forums Revan, hopefully we can get this bug with the midi's fixed soon.

Anyone else experiencing this problem with the midi's or is it just me?

Blam Forumz 09-29-2004 04:08 PM

I suggests that you make a support forum for this hack :D and have a modifications sections so some coders can add stuff ^_^ and modify stuff

Revan 09-29-2004 04:23 PM

Quote:

Originally Posted by Sanni
thanks for the quick responses revan :D

i am currently using the default value for the refund, i'll try adjusting it and see what happens :)

thanks again for all your help :)

edit: the item shop refund is now working, the system didnt like it being set to .75 (without the zero) had to change it to 0.75 :)

Cool that you got it working :D


Quote:

Originally Posted by Blam Forumz
I suggests that you make a support forum for this hack :D and have a modifications sections so some coders can add stuff ^_^ and modify stuff

Okay sure, just give me $160 for a new licence, then Ill set it up within moments :)
Seriously now, my licence is already spent on my forum, and I seriously dislike the idea of setting up subforums for this hack, as it would generate a splitted forum. Id gladly pay for a new licence to have a support board, but Im a 17 year old guy living at home, with unemployed mother and without a credit card.
So.....gutted. ;)

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:13 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.02796 seconds
  • Memory Usage 2,137KB
  • 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
  • (4)bbcode_code_printable
  • (6)bbcode_php_printable
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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