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


All times are GMT. The time now is 12:53 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.02329 seconds
  • Memory Usage 1,961KB
  • 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
  • (3)bbcode_php_printable
  • (6)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