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)

Legendary Kid 08-02-2003 11:28 PM

I'll edit the txt file, gj Pricyber

Blackangel 08-02-2003 11:49 PM

well nice hack, but i can get icon for item in postbit.
he display nothing.

Legendary Kid 08-03-2003 01:51 AM

Can somebody make the files in the mod directory,bank.php, and points.php work with the store hack?

Pricyber 08-03-2003 04:23 AM

Just like to mention there are a few bugs with the following:

1. Putting no password in battles results in invalid password display.

2. Having the 'unknown' class allows users to open up the items via the unknown and purchase them whether they have permission to or not (i removed that field from my dbase for now).

3. The healer sometimes shows a bad value, such as intead of 18 it will show 8, then the user wonders why they can't heal because they have 10 gold.

Pricyber 08-03-2003 04:55 AM

Just an update on my removal of the unknown field from the rpg_types table.

If you do this to prevent users from buying items they shouldn't, then you are left with all of the categories upon first going to the itemshop, however they can't be expanded.

This looks messy... so I fixed it.

Simply open itemshop.php

Find (right at the end of the file):
Code:

eval("dooutput(\"".gettemplate("itemshop")."\");");
Replace with:
Code:

if($action=="" && $itemtype < 1) {
eval("dooutput(\"".gettemplate("itemshop_viewfirst")."\");");
} else {
eval("dooutput(\"".gettemplate("itemshop")."\");");
}

Then create a new template called itemshop_viewfirst and insert the following:

Code:

{htmldoctype}
<html>
<head>
$metarefresh
<title>$bbtitle - Itemshop</title>
$headinclude
</head>
<body>
$header

<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
        <td width="100%"><img src="{imagesfolder}/vb_bullet.gif" alt="" border="0" align="absmiddle">
        <normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> &gt; Itemshop</b></normalfont></td>
</tr>
</table>

<br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
        <td bgcolor="{tableheadbgcolor}" colspan="5"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td><smallfont color="{tableheadtextcolor}"><b>$bbuserinfo[username]'s Current Status</b></smallfont></td><td align="right"><smallfont color="{tableheadtextcolor}"><b>$points Gold</b></smallfont></td></tr></table></td>
</tr>
</tr>
<tr>
<td bgcolor="{categorybackcolor}" width="5%" align="center"><normalfont color="{categoryfontcolor}"><b>Icon</b></normalfont></td>
<td bgcolor="{categorybackcolor}" width="35%" align="center"><normalfont color="{categoryfontcolor}"><b>Name</b></normalfont></td>
<td bgcolor="{categorybackcolor}" width="50%" align="center"><normalfont color="{categoryfontcolor}"><b>Description</b></normalfont></td>
<td bgcolor="{categorybackcolor}" width="5%" align="center"><normalfont color="{categoryfontcolor}"><b>Cost</b></normalfont></td>
<td bgcolor="{categorybackcolor}" width="5%" align="center"><normalfont color="{categoryfontcolor}"><b>Refund</b></normalfont></td>
</tr>
$loop
$loopp
<tr id="cat">
        <td bgcolor="{tableheadbgcolor}" colspan="5"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td><smallfont color="{tableheadtextcolor}"><b>Bank Deposit: $bankuser[bankval]</b></smallfont></td><td align="right"><smallfont color="{tableheadtextcolor}"><b>Total Bank Property: $banktotal | Total Bank Clients: $clients</b></smallfont></td></tr></table></td>
</tr>
</table>
</td></tr></table>
<br>

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>

<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
        <td bgcolor="{tableheadbgcolor}" colspan="5" align="center" width="33%" align="center"><smallfont color="{tableheadtextcolor}"><b><a href="$PHP_SELF?action=bank">Visit The Bank</a></b></smallfont></td>
        <td bgcolor="{tableheadbgcolor}" colspan="5" align="center" width="34%" align="center"><smallfont color="{tableheadtextcolor}"><b>Total Profit: $options[profit]&nbsp;|&nbsp;Total Sold Items: $options[sold]</b></smallfont></td>
        <td bgcolor="{tableheadbgcolor}" colspan="5" align="center" width="33%" align="center"><smallfont color="{tableheadtextcolor}"><b><a href="$PHP_SELF?action=buypers">Buy Personal Itemshop</a></b></smallfont>
</td></tr>

<tr id="cat">
        <td bgcolor="{tableheadbgcolor}" colspan="5" align="center" width="33%" align="center"><smallfont color="{tableheadtextcolor}"><b><a href="$bburl/store.php">Visit The Traveller's Shop</a></b></smallfont></td>
        <td bgcolor="{tableheadbgcolor}" colspan="5" align="center" width="34%" align="center"><smallfont color="{tableheadtextcolor}"><b><a href="$bburl/battle.php">Go To The Battle Arena</a></b></smallfont></td>
        <td bgcolor="{tableheadbgcolor}" colspan="5" align="center" width="33%" align="center"><smallfont color="{tableheadtextcolor}"><b><a href="$bburl/heal.php">Visit The Healer</a></b></smallfont>
</td></tr></table>

</td></tr></table>
<br>
<center>$typelinks
<br>
<normalfont>Please choose a class to view the items...</normalfont>
</center>
<br>
<br>
<br>
<br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
        <td bgcolor="{tableheadbgcolor}" colspan="5" align="center" width="100%"><smallfont color="{tableheadtextcolor}"><b>Copyright 2002 <a href="mailto:gheghe@rnc.ro">Mewtwo</a>. <a href="http://ffd.ffrepublic.com">FFDiscovery</a></b></smallfont></td>
</tr>
</table>
</td></tr></table>
<br>

$footer

</body>
</html>

That way the user must select a class before being able to see any items :)

Bitsys 08-03-2003 07:33 PM

Wow, gone for 2 days and I miss a page and a half of posts.

Quote:

08-01-03 at 09:09 AM Wedge said this in Post #2055
Yep. And when I did vbhacker, it didn't require any manual changes... maybe it is because I'm using 2.2.6? If I used 2.3.0 instead, would it work?

-Wedge

Do you have phpmyadmin? If so, do the following:

Go to your forums database. Find the rpg_type, rpg_race, rpg_classf, and rpg_classm tables. Click "Browse" on each of these. Verfiy that there is dat in these tables. If there isn't any data, then clicking "Browse" will return an empty set.


Quote:

08-01-03 at 05:30 PM Triade said this in Post #2056
Hmmm the people in this case didn't have any armour...
Only weapons.
one with buff 2 the other with buff 0...

Any suggestion about how to put buffs on items and, the average number to give HP in Elements?


Generally, Buffs should be between 10 and 1000. HP on elements should be between 30 and 100.

Quote:

08-01-03 at 09:28 PM Legendary Kid said this in Post #2059
You have to install them seperatly, btw, is the anyway to use spells yet? Because I haven't found a way :-/

Please try the following:

ADmin CP -> Edit Items. Find the "[Edit]" link next to a category name (the one for spells). Click the link. On the next menu, select "Spells" as the battle type and save changes. Back at the Edit Items screen, make sure that you have given the spell a buff value and an MA cost. Additionally, either the "Attack" or "Heal" checkbox (or both) must be checked.

Quote:

Yesterday at 03:27 AM Triade said this in Post #2060
Legendary Kid, what do you mean? I use them... No problems in there.

Another question (sorry but i'm n00b in this hack):
i read in the faq, a user can have a guild, having a own alignment with 5 classes.
Can the user do it by himself, or the Admin have to do it by Admin CP?

That admin must do it. That part of the FAQ was written by a user who made up that rule for his forums.

Quote:

Yesterday at 03:52 AM Pricyber said this in Post #2061
Ok there's alot of stuff there to pick through so I figure it'd just be easier to ask my questions and see if they were answered already (though I'm sure they weren't..)

1. I would like to maintain my use of Lesane's Store Hack, however at this time it does not allow me to use the bank feature. Is there a way to make it work?

If not, would it be possible just to install the bank hack, and then the bank to store integration for Lesane's?

I think you fixed that one on your own ;)

Quote:

Yesterday at 03:52 AM Pricyber said this in Post #2061
2. When you are in usercp and you select your gender & alignment, you must submit that information before the ability to choose a race comes up, etc. Is there a way to make those combo boxes auto-fill upon choosing without having to submit and reload?
It is supposed to automatically change the drop-down options based on which gender and alignment you select. If this is not the case, then can you send me a copy of the HTML source (In IE, go to View -> Source) of member.php when you are modifying your profile?

Quote:

Yesterday at 03:52 AM Pricyber said this in Post #2061
3. I would really like to be able to make it possible for users to not change their characters once they have been created (unless maybe purchasing the ability to do so at Lesane's Store). Is there a way to block a character from being eligable for battle or from buying items until the forum user clicks on 'Finalize Character' and it locks it from being edited?
Not currently.

Quote:

Yesterday at 03:52 AM Pricyber said this in Post #2061
4. Is there a way you could adapt this so an admin may edit characters through the admin cp?
There is an "Edit Users" Link in teh admin cp that lets you edit RPG Users. Does this not work for you? Or are you looking for a different way to edit RPG Users?


Quote:

Yesterday at 03:52 AM Pricyber said this in Post #2061
Also, many thanks for your time and effort, this is a great hack and has given my forum users so much more to do!!!
:)

Quote:

Yesterday at 10:39 AM Triade said this in Post #2064
Another question: Personal shop

No way to add icons in user items...
No way to add buff in user items...

So... what's the personal shop for?
Am i missing some step or it's in this way?


Personal shops allow a little more user interaction. The items they add are novelty items only. Allowing users to assign buff values for items would jeapardize the integrity and balance of battles.

Quote:

Yesterday at 01:44 PM Jimmy011991 said this in Post #2066
I installed this hack this morning and found a bug in the battle system. Even though i have an item the bubble thing at the bottom says that i don't and will only let me use my fists. Is there any way this can be fixed? My VB version is 2.3.0. Thanks in advance!

See my above response to Legendary Kid's post.

Quote:

Yesterday at 07:49 PM Blackangel said this in Post #2070
well nice hack, but i can get icon for item in postbit.
he display nothing.

Did you purchase an item? Do you see the item when you go to the itemshop?

Quote:

Today at 12:23 AM Pricyber said this in Post #2072
Just like to mention there are a few bugs with the following:

1. Putting no password in battles results in invalid password display.

Will be fixed in next version.

Quote:

Today at 12:23 AM Pricyber said this in Post #2072
2. Having the 'unknown' class allows users to open up the items via the unknown and purchase them whether they have permission to or not (i removed that field from my dbase for now).
Are they allowed to purchase an item for a different class, or only items that are in the Generic class?

Quote:

Today at 12:23 AM Pricyber said this in Post #2072
3. The healer sometimes shows a bad value, such as intead of 18 it will show 8, then the user wonders why they can't heal because they have 10 gold.
Which option does this happen with? All of them, or just the 25% option, etc.?

Moreliator 08-03-2003 08:18 PM

Quote:

Yesterday at 09:52 AM Pricyber said this in Post #2061

3. I would really like to be able to make it possible for users to not change their characters once they have been created (unless maybe purchasing the ability to do so at Lesane's Store). Is there a way to block a character from being eligable for battle or from buying items until the forum user clicks on 'Finalize Character' and it locks it from being edited?


I made an addon that is really close to this... it locks a user's RPG stats when they reach a certain level. I have mine set to level 5, that way my members can examine all characters, but once they get to level 5 they have to make a permanant decision because it locks and users can't change stats anymore.

Bitsys, would you mind adding this addon to the front page, I have had a few people ask me for it. Its been working on my board for over a month now. Heres the link: CLICK HERE for Auto-Lock Stats Addon

Dras 08-04-2003 03:13 AM

I just installed your hack and I am having some problems with member.php

http://69.57.156.44/~dras/1.jpg
http://69.57.156.44/~dras/2.jpg

The addtional info is shown twice! I tried to edit modifyprofile but no luck. I also looked at member.php but TOO long to look at. Any help would be nice.

Triade 08-04-2003 06:28 AM

Quote:

Yesterday at 09:33 PM Bitsys said this in Post #2074

Personal shops allow a little more user interaction. The items they add are novelty items only. Allowing users to assign buff values for items would jeapardize the integrity and balance of battles.


I thought this:

Allow users to put buff in items... but... with a certain range, and with a cost. I think we can put also an image library for the user items.

Example: in the add item shop, put a select box with buff
+10 +20 +30 +100 +1000 ecc.
Another box with Att, Def, Att+Def

if someone choose a buff in another window will display the price.

if i made an armour with +10 in Att. i'll pay 1000
if it's +50 i'll pay 5000
if it's +50 Add+Def i'll pay 10000
If i make 2 of this i'll pay 20000

This will influence also the sell price, so nobody can make a +1000 item sold for 20 gil.


i'm not a php programmer (but i want to study for it), so someone think it's possible and easy to do?

Moreliator 08-04-2003 11:40 AM

Quote:

Today at 05:13 AM Dras said this in Post #2076
I just installed your hack and I am having some problems with member.php

http://69.57.156.44/~dras/1.jpg
http://69.57.156.44/~dras/2.jpg

The addtional info is shown twice! I tried to edit modifyprofile but no luck. I also looked at member.php but TOO long to look at. Any help would be nice.



Hey,
it is simple template error that has been known to happen with this RPG Hack. In the modifyprofile template, simply delete the first instance of:
Quote:

<tr><td bgcolor="$bgcolor"><normalfont><b>Element Type:</b></normalfont><br>
<smallfont>The Element type you want to be at the boards.</smallfont></td>
<td bgcolor="$bgcolor"><normalfont>

<select name="element">
$elementoptions
</select>

</normalfont></td>
</tr>
<tr>
<td bgcolor="$bgcolor"><normalfont><b>RPG Alignment:</b></normalfont><br>
<smallfont>The side you want your character to be on the RPG.</smallfont></td>
<td bgcolor="$bgcolor"><normalfont>
<select name="alignment" onchange="updateRaces()">
$alignmentoptions
</select></normalfont></td>
</tr>
<tr>
<td bgcolor="$bgcolor"><normalfont><b>RPG Race:</b></normalfont><br>
<smallfont>The Race you want your character to be on the RPG.</smallfont></td>
<td bgcolor="$bgcolor"><normalfont>
<select name="rpgrace">
$raceoptions
</select></normalfont></td>
</tr>
<tr>
<td bgcolor="$bgcolor"><normalfont><b>RPG Gender:</b></normalfont><br>
<smallfont>This would be your RPG Character's Gender, not your gender in real life.</smallfont></td>
<td bgcolor="$bgcolor"><normalfont>
<select name="rpggender" onchange="updateClasses()">
$genderoptions
</select></normalfont></td>
</tr>

<tr>
<td bgcolor="$bgcolor"><normalfont><b>RPG Class:</b></normalfont><br>
<smallfont>The Class you want your character to be on the RPG.</td>
<td bgcolor="$bgcolor"><smallfont>
<select name="rpgclass" onchange="updateType()">
$classoptions
</select></smallfont>

</td>
</tr>
<tr>
<td bgcolor="$bgcolor"><normalfont><b>RPG Type:</b></normalfont><br><smallfont>Your type is automatically determined by your class.</smallfont></td>

<td bgcolor="$bgcolor" >
<input type="text" class="bginput" name="rpgtypename" value="$rpgtypename" length="30" READONLY><input type="hidden" name="rpgtypeid" value="$rpgtypeid">
</td>
</tr>
<tr>
<td bgcolor="$bgcolor"><normalfont><b>Build Stats</b></normalfont><br>
<smallfont>Click here if you want to have stats shown on the board.</smallfont></td>
<td bgcolor="$bgcolor"><normalfont>
<input type="checkbox" name="updatestats">Update stats
</normalfont></td>
</tr>


-mor


All times are GMT. The time now is 10:51 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.02927 seconds
  • Memory Usage 1,831KB
  • 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
  • (3)bbcode_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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