Log in

View Full Version : RPG Integration Hack /w Battle (BETA)


Pages : 1 2 3 [4] 5 6 7 8 9 10 11

Bitsys
01-31-2003, 02:24 AM
Originally posted by mr e
ya bitsys you can use my stuff :D

btw did you read your email? tell me if i should continue to work on that hack or would it not be practical?

I sent you a reply via e-mail. If you can answer the questions I asked, then I think it is possible.

Mijae
01-31-2003, 04:29 AM
Bitsys, did you get my PM?

Bitsys
01-31-2003, 10:47 AM
Originally posted by v0id
Bitsys, did you get my PM?

Hmm...nope. I only see the old ones. When did you send it?

Mijae
01-31-2003, 02:29 PM
After you went into my CP and told me you got no error. Then I went in myself and took a screenshot of the error.

VeoMorphine
01-31-2003, 04:54 PM
A small bug i found.

In the item shop, when your one level lower then the level thats required to use the item you can buy that item. You dont get the item though, yet you spend the money. Its anoying people on my board :P

http://www.neurofreeze.net/forums/rpgcp.php

saint_seiya
01-31-2003, 07:32 PM
Bytsis, how does the Bank 10% work. I told my users that it gives them 10% daily interest on the money they have deposited. Was I right :(

Bitsys
02-01-2003, 12:31 AM
Originally posted by v0id
After you went into my CP and told me you got no error. Then I went in myself and took a screenshot of the error.

Ok, I found the PM, sorry about that. That is the same error as last time, correct? Tell me, does this happen every time you try to do the same thing? Also, maybe I attempted to reproduce it incorectly, so, can you give me the exact steps you took to cause the error? Maybe a screenshot of the screen before the error?

VeoMorphine:
What version are you running? This should have been fixed in version 0.61.

saint_seiya:
Well, that is how it is supposed to work, with 10% being the default amount of interest (this is adjustable in itemshop.php, search this thread to find out how). However, there are a few quirks. One of the members of my board noted that if you visit the bank, then the timer is reset. So, let's say you deposit $200 at 8:00am. Then, you deposit $600 at 6:00pm. You won't gain interest until 6:00pm on the next day. Every time you visit the bank, the timer restarts. I might be able to fix this, but I am not sure, since it is a bug with the original itemshop code that I didn't write. If I didn't explain it well here, then I will try to get my member to explain it, since he recognized what was going on.

VeoMorphine
02-01-2003, 12:43 AM
im running 61 :)

go on AOL.

Mrpolish
02-01-2003, 02:43 AM
Any signs of the final version or update Bitsys ?

saint_seiya
02-01-2003, 03:47 AM
Bitsys, about the bank problem, i think you could just make it give interest at midnight or something, that would fix the problem. Right?

Graphics
02-01-2003, 02:23 PM
Is there any way I can reste the RPG so everyone is back to nothing?
I go to do it and it says test.

Graphics
02-01-2003, 03:06 PM
Can you add a new item category in the next version?
Items that add to the characters anger in battle?

Xyphen
02-01-2003, 04:19 PM
The next version is going to be cool..

Bitsys
02-01-2003, 05:32 PM
Mrpolish:
Not yet. however, I am always getting closer.

saint_seiya:
That would be the ideal solution, however, there isn't an easy way to make the server call a script at a given time. It is possible, but I don't know the specifics of it.

Graphics:
Wait for the next version.

(second post):
I don't think I can add that in the next version.

Colon33
02-01-2003, 11:47 PM
So is the latest beta safe to use on a public board? Anyone? Are there any major errors still?

mr e
02-02-2003, 12:38 AM
i wouldn't use any beta on a production board, but if you are make a backup first or you could be screwed

Solice
02-02-2003, 07:53 AM
I installed this, and now all the posts appear as if they're created by guests...

Bitsys
02-02-2003, 12:07 PM
Colon33:
Generally, it won't nuke your board or anything like that. However, the RPG is still changing and there have been some recent bugs and exploits that people have found that could make them extremely rich or invincible, etc. I would wait until at least the next version so that you don't have to keep restarting the RPG every time someone finds a new exploit and uses it.


Originally posted by Solice
I installed this, and now all the posts appear as if they're created by guests...

In the admin cp, click on the "DB Fix" link and run the script.

Solice
02-03-2003, 01:07 PM
thnx

only other problem is, the battle page doesn't load, i go into battle and it doesn't load at all..

Bitsys
02-03-2003, 01:21 PM
Originally posted by Solice
thnx

only other problem is, the battle page doesn't load, i go into battle and it doesn't load at all..

I assume you mean battleupdate.php? What page are you at before you try join the battle? Is the page just blank? No error message? What are your battle options set to?

Solice
02-03-2003, 11:42 PM
I assume you mean battleupdate.php
no, battlefight.php, and im at battle.php

No error message
after a while it just comes up with server timeout message

What are your battle options set to
everything at default.


another thing;
in the itemshop main page everything is repeated, it isn't the templates because Ive checked 20 times already, and deleted any multiple ones.

PSI|Dr-X
02-04-2003, 06:25 PM
I think i will wait for the full version :)

Gohan
02-05-2003, 12:30 AM
When will release final version?

mr e
02-05-2003, 01:25 AM
he's working on integrating other peoples hacks and testing the install file now

Dribbles
02-05-2003, 02:07 AM
Database error in vBulletin 2.2.9:

Invalid SQL:
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter,
user.ma AS uma,user.hp AS uhp,user.pp AS upp,user.ap AS uap,items_options.pointfield,items_options.lesanes tore,battle_options.namefield, battle_options.exprate,battle_options.privacy AS battleprivacy,items_user.*,battle_stats.*,rpg_race .name AS rpgracename,rpg_race.alignment AS rpgalignmentname,rpg_classf.name AS fclassname,
rpg_classf.folder AS fclassfolder,rpg_classm.name AS mclassname,rpg_classm.folder AS mclassfolder,rpg_element.name AS elename

FROM post

LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN items_user ON items_user.userid=user.userid
LEFT JOIN battle_stats ON battle_stats.userid=user.userid
LEFT JOIN rpg_classf ON rpg_classf.id=user.rpgclass
LEFT JOIN rpg_classm ON rpg_classm.id=user.rpgclass
LEFT JOIN rpg_element ON rpg_element.elementid=user.element
LEFT JOIN rpg_race ON rpg_race.raceid=user.rpgrace AND rpg_race.alignmentid=user.alignment

LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid IN (0,722,920,968,1242,1249,1252,1261,1262,1539,2212, 2236,7019,7438,8427)
ORDER BY dateline

mysql error: Unknown table 'items_options' in field list

mysql error number: 1109

Date: Tuesday 04th of February 2003 11:05:10 PM
Script: /showthread.php?s=&threadid=237
Referer: /forumdisplay.php?s=&forumid=4

mr e
02-05-2003, 02:11 AM
you dont have the table item_options in your db, run install_itemshop_items.php and it should fix it

Dribbles
02-05-2003, 02:58 AM
Originally posted by mr e
you dont have the table item_options in your db, run install_itemshop_items.php and it should fix it

admin/install_itemshop_items.php

There seems to have been a slight problem with the database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: ALTER TABLE items_user
ADD item1 char(250) NOT NULL default 'No Item',
ADD points1 int(5) NOT NULL default '0',
ADD description1 char(250) NOT NULL default 'No Description Available',
ADD icon1 char(250) NOT NULL default '',
ADD itid1 int(11) NOT NULL default '0',
ADD item2 char(250) NOT NULL default 'No Item',
ADD points2 int(5) NOT NULL default '0',
ADD description2 char(250) NOT NULL default 'No Description Available',
ADD icon2 char(250) NOT NULL default '',
ADD itid2 int(11) NOT NULL default '0',
ADD item3 char(250) NOT NULL default 'No Item',
ADD points3 int(5) NOT NULL default '0',
ADD description3 char(250) NOT NULL default 'No Description Available',
ADD icon3 char(250) NOT NULL default '',
ADD itid3 int(11) NOT NULL default '0'
mysql error: Duplicate column name 'item1'

mysql error number: 1060

mr e
02-05-2003, 03:19 AM
run this query

CREATE TABLE `items_options` (
`pointfield` varchar(8) NOT NULL default '0',
`refund` varchar(5) NOT NULL default '0',
`stockdate` varchar(250) NOT NULL default '',
`onofforder` smallint(6) NOT NULL default '0',
`sold` int(11) NOT NULL default '0',
`profit` int(11) NOT NULL default '0',
`minstock` int(11) NOT NULL default '0',
`maxstock` int(11) NOT NULL default '0',
`stockreset` varchar(250) NOT NULL default '0',
`pcost` int(11) NOT NULL default '0',
`padd` tinyint(4) NOT NULL default '0',
`hidelevel` tinyint(4) NOT NULL default '0',
`lesanestore` tinyint(4) NOT NULL default '0'
) TYPE=MyISAM;

then run this one

INSERT INTO `items_options` (`pointfield`, `refund`, `stockdate`, `onofforder`, `sold`, `profit`, `minstock`, `maxstock`, `stockreset`, `pcost`, `padd`, `hidelevel`, `lesanestore`) VALUES ('field5', '.75', '', '0', '0', '0', '4', '7', '604800', '2000', '10','0','0');

Colon33
02-05-2003, 03:27 AM
We need like a mailing list. I used all these hacks on my previous board. ANd i requested numerous times this type of hack... and bitsys looks like he did a good job. I cnat wait until its ironed out.

Bitsys
02-05-2003, 06:37 PM
Originally posted by Solice

no, battlefight.php, and im at battle.php


after a while it just comes up with server timeout message


everything at default.


another thing;
in the itemshop main page everything is repeated, it isn't the templates because Ive checked 20 times already, and deleted any multiple ones.

What version are you running? Have you tried re-uploading another copy? What is your Max HP/MA/PP at? What background are you using for the battle?

If none of the above leads to a solution, then open battlefight.php and DELETE all '@' symbols. There should be 7 of them. Let me know if it shows an error message then and what it says.

What do you mean by everything is repeated? Are the actual items repeated, or are the item categories repeated? Or do you mean the page is repeated? How many times did you run the install script?


Gohan:
Hopefully soon.


Dribbles:
It appears that some of the file edits to showthread.php were not made. Have vbhacker generate a text file of the hack (this option is at the bottom of the vbhacker start screen), and manually re-apply all of the changes to showthread.php. In particular, the installer did not insert
, battle_options, items_options
after
FROM post
although it could have missed something else as well. The whole query should look something like (but not necessarily EXACTLY like):
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,".iif($forum[allowicons],'icon.title as icontitle,icon.iconpath,','')."
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter,
user.ma AS uma,user.hp AS uhp,user.pp AS upp,user.ap AS uap,items_options.pointfield,items_options.lesanes tore,battle_options.namefield,battle_options.expra te,battle_options.privacy AS battleprivacy,items_user.*,battle_stats.*,rpg_race .name AS rpgracename,rpg_race.alignment AS rpgalignmentname,rpg_classf.name AS fclassname,
rpg_classf.folder AS fclassfolder,rpg_classm.name AS mclassname,rpg_classm.folder AS mclassfolder,rpg_element.name AS elename
".iif($avatarenabled,",avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline","")."
FROM post, battle_options, items_options
".iif($forum[allowicons],'LEFT JOIN icon ON icon.iconid=post.iconid','')."
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN items_user ON items_user.userid=user.userid
LEFT JOIN battle_stats ON battle_stats.userid=user.userid
LEFT JOIN rpg_classf ON rpg_classf.id=user.rpgclass
LEFT JOIN rpg_classm ON rpg_classm.id=user.rpgclass
LEFT JOIN rpg_element ON rpg_element.elementid=user.element
LEFT JOIN rpg_race ON rpg_race.raceid=user.rpgrace AND rpg_race.alignmentid=user.alignment
".iif ($avatarenabled,"LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid","")."
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE $postids
ORDER BY dateline $postorder around line 420 of showthread.php.

Dan
02-05-2003, 11:20 PM
Hmm...... I installed this all correctly but I get a white screen everytime I goto battle any help out there?

mr e
02-05-2003, 11:29 PM
are the templates all there?

Solice
02-06-2003, 12:14 AM
thnx Bitsys, working now

it doesn't let u use weapons:(

Mijae
02-06-2003, 12:58 AM
Oricon, how many styles do you have?

Graphics
02-06-2003, 07:16 AM
Any date on the next release Bitsys? I cant open my forum till its out

Bitsys
02-06-2003, 12:27 PM
Oricon:
Try some of the things I listed on the previous page for Solice.

Solice:
Have you read https://vborg.vbsupport.ru/showthread.php?postid=329575#post329575 yet?

Graphics:
I'm hoping I can get the next version out this weekend. The next version will have 4 add-ons built in, an admin FAQ, lots of bug fixes, some adjusted battle formulas, and the reset stuff should be working. I have the installer and files ready to go, I am just testing the different changes I made.

PSI|Dr-X
02-06-2003, 01:16 PM
Bytsis any idea of the full version when it's out :) im waiting on it

Dribbles
02-06-2003, 05:06 PM
great work ... looking forward to the next version

Mystic Gohan
02-06-2003, 08:19 PM
edit: if fixed it.

Solice
02-06-2003, 09:28 PM
oh, thnx bistys...
lol

Solice
02-07-2003, 07:10 AM
i got anuther prob, my members have updated their rpg stats, but it keeps saying they are illegable for battle...:(

Graphics
02-07-2003, 07:28 AM
thnx bitsys thats great

Bitsys
02-07-2003, 10:33 AM
Originally posted by Solice
i got anuther prob, my members have updated their rpg stats, but it keeps saying they are illegable for battle...:(

Did you read https://vborg.vbsupport.ru/showthread.php?postid=328672#post328672 yet?

Solice
02-07-2003, 11:02 AM
my members have all of them...:(

Graphics
02-08-2003, 12:58 PM
Hey Bitsys is there any way you can make random battles and make the person who attacks first random?

Graphics
02-08-2003, 01:04 PM
Oh and can you add the limit break hack?
That would make it perfect ;)

Rufus69
02-08-2003, 04:23 PM
bah, why doesn't the weapons work?

I hate punching people >_<

Dribbles
02-08-2003, 08:32 PM
Can you make it so that the other person doesn't need you to accept the battle before fighting? That way people can jump each other with sneak attacks :) They'll need to form gangs for protection LOL!

Graphics
02-08-2003, 10:05 PM
Nah that would be kool Dribbles.

mr e
02-09-2003, 02:41 AM
what happens when a level 20 challenges a level 2?

Strider Xero
02-09-2003, 03:32 AM
The big thing i dont like about this hack is that you have to update your stats from the profile all the time. I got tired of it that's why i dont use it anymore. I dont understand why there cant be an option where it updates your bars automatically...it's so much more convenient. This is the only rpg hack that i know of you need to do this with(php&mysql boards in general, not just vB)

Dribbles
02-09-2003, 02:48 PM
Originally posted by mr e
what happens when a level 20 challenges a level 2?

Either the level two needs to join a group or become someone's prag, or he's dead meat :dead:

Bitsys
02-09-2003, 03:31 PM
Solice:
All I can suggest now is to wait for the next version. It will tell you specifically what you need to do in order to be eligible for battle.

Graphics (first post):
Random battles are not very feasible at this time.

Graphics (second post):
A long time ago (back when I was first working on this hack), I tried to add the limit break hack. I tried all sorts of things to add it in. Eventually, I realized that the limit break hack is not a very easy thing to implement using the mysql database and admin control panel. In fact, due to the large amounts of data involved, I was very enthusiastic about adding 5 separate limit breaks per class, since there are 30+ classes. Not to mention the balancing issues that span different classes. Maybe someone will make an add-on for it.

Rufus69:
Did you read https://vborg.vbsupport.ru/showthread.php?postid=329014#post329014 yet?

Dribbles:
That's how I originally had this hack, before I released it here. However, my members complained quite a bit. In short, allowing it would create too much griefing. That's why I made the confirmation part of the battle.

Strider Xero:
It takes a minimal amount of hacking to do what you want. However, it also adds to the server load. There is always a trade-off and I never felt like it was worth it.


I don't think the next version will be released today. I have decided to add some more features. These additions will delay the release. However, I think you will be pleased with the new additions.

Dribbles
02-09-2003, 03:33 PM
Originally posted by Bitsys
Dribbles:
That's how I originally had this hack, before I released it here. However, my members complained quite a bit. In short, allowing it would create too much griefing. That's why I made the confirmation part of the battle.

Thanks, it's a great hack either way. Would it be possible to make this an option you can turn on and off in the admin cp? (ie- "Turn on/off battle confirmation from both users before attacks are allowed")

Graphics
02-10-2003, 07:10 AM
So when is this version out I cant open my forum till the bugs are fixed :S

Dribbles
02-10-2003, 12:45 PM
Why not?

SHoeSTeR
02-10-2003, 03:46 PM
Database error in vBulletin 2.2.9:

Invalid SQL:
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter,
user.ma AS uma,user.hp AS uhp,user.pp AS upp,user.ap AS uap,items_options.pointfield,items_options.lesanes tore,battle_options.namefield,battle_options.expra te,battle_options.privacy AS battleprivacy,items_user.*,battle_stats.*,rpg_race .name AS rpgracename,rpg_race.alignment AS rpgalignmentname,rpg_classf.name AS fclassname,
rpg_classf.folder AS fclassfolder,rpg_classm.name AS mclassname,rpg_classm.folder AS mclassfolder,rpg_element.name AS elename,
user.ma AS uma,user.hp AS uhp,user.pp AS upp,user.ap AS uap,items_options.pointfield,battle_options.namefi eld,battle_options.usepostcount,battle_options.exp rate,battle_options.levelfield,battle_options.priv acy AS battleprivacy,items_user.*,rpg_race.name AS rpgracename,rpg_race.alignment AS rpgalignmentname,rpg_classf.name AS fclassname,
rpg_classf.folder AS fclassfolder,rpg_classm.name AS mclassname,rpg_classm.folder AS mclassfolder,rpg_element.name AS elename
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post, battle_options, items_options
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN items_user ON items_user.userid=user.userid
LEFT JOIN rpg_classf ON rpg_classf.id=user.rpgclass
LEFT JOIN rpg_classm ON rpg_classm.id=user.rpgclass
LEFT JOIN rpg_element ON rpg_element.elementid=user.element
LEFT JOIN rpg_race ON rpg_race.raceid=user.rpgrace AND rpg_race.alignmentid=user.alignment
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid IN (0,9689,9690,9691,9745,10038)
ORDER BY dateline

mysql error: Unknown table 'battle_stats'

mysql error number: 1051

Date: Monday 10th of February 2003 11:43:13 AM
Script: http://64.191.17.37/~gosuleet/forums//~gosuleet/forums/showthread.php?threadid=787
Referer:


Please help.

Bitsys
02-10-2003, 04:23 PM
Dribbles:
I am not sure if that is possible. There are several places that deal with the confirmation. I have to check and see if they can just be ignored and the battle continues.


Originally posted by SHoeSTeR
Database error in vBulletin 2.2.9:

Invalid SQL:
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter,
user.ma AS uma,user.hp AS uhp,user.pp AS upp,user.ap AS uap,items_options.pointfield,items_options.lesanes tore,battle_options.namefield,battle_options.expra te,battle_options.privacy AS battleprivacy,items_user.*,battle_stats.*,rpg_race .name AS rpgracename,rpg_race.alignment AS rpgalignmentname,rpg_classf.name AS fclassname,
rpg_classf.folder AS fclassfolder,rpg_classm.name AS mclassname,rpg_classm.folder AS mclassfolder,rpg_element.name AS elename,
user.ma AS uma,user.hp AS uhp,user.pp AS upp,user.ap AS uap,items_options.pointfield,battle_options.namefi eld,battle_options.usepostcount,battle_options.exp rate,battle_options.levelfield,battle_options.priv acy AS battleprivacy,items_user.*,rpg_race.name AS rpgracename,rpg_race.alignment AS rpgalignmentname,rpg_classf.name AS fclassname,
rpg_classf.folder AS fclassfolder,rpg_classm.name AS mclassname,rpg_classm.folder AS mclassfolder,rpg_element.name AS elename
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post, battle_options, items_options
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN items_user ON items_user.userid=user.userid
LEFT JOIN rpg_classf ON rpg_classf.id=user.rpgclass
LEFT JOIN rpg_classm ON rpg_classm.id=user.rpgclass
LEFT JOIN rpg_element ON rpg_element.elementid=user.element
LEFT JOIN rpg_race ON rpg_race.raceid=user.rpgrace AND rpg_race.alignmentid=user.alignment
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid IN (0,9689,9690,9691,9745,10038)
ORDER BY dateline

mysql error: Unknown table 'battle_stats'

mysql error number: 1051

Date: Monday 10th of February 2003 11:43:13 AM
Script: http://64.191.17.37/~gosuleet/forums//~gosuleet/forums/showthread.php?threadid=787
Referer:


Please help.

In showthread.php, find both instances of
LEFT JOIN items_user ON items_user.userid=user.userid
and after it, put:
LEFT JOIN battle_stats ON battle_stats.userid=user.userid

Let me know if that works.

Dribbles
02-10-2003, 05:54 PM
well, you're already doing a lot of great work for this hack ... so if it is a problem, don't worry about it man :) Just focus on the important stuff :) Will the next version be out soon?

Darkwaltz4
02-10-2003, 08:04 PM
bitsys i have two suggestions::

keep in mind real quick that you never post template changes in the manual update mode -_- (so im not sure if these have been done yet)

anyway:

whenever a person submits information about their character in their profile, it updates them automatically...

2,
whenever you set element stat increases, how about making decreases available as well? my other admin thought this would be cool, and i think so too--i think it would mainly just be signing the column in the database (to accept negatives) and _maybe_ a stat checking system which would include making sure stats stay above zero even if the element shoves it below (like 10 hp total if a element drops you below)

just some ideas-

Graphics
02-10-2003, 08:44 PM
Originally posted by Dribbles
Why not?
I promised my member to have the forums new version open with the bs bugs all fixed and updated withthe new version.
I have almost everything set up and thats the last hack (and most important) that I need.
I dont mean to rush you bitsys!

JGM007
02-11-2003, 02:54 PM
Originally posted by Graphics

I promised my member to have the forums new version open with the bs bugs all fixed and updated withthe new version.
I have almost everything set up and thats the last hack (and most important) that I need.
I dont mean to rush you bitsys!


Should not make promises like that ;)


Bitsys is being a very busy person yes. He has to have life outside of programming.

He does a good job and will get to it when it is done. :D

xxxsaint
02-11-2003, 04:48 PM
I promised my member to have the forums new version open with the bs bugs all fixed and updated withthe new version.
I have almost everything set up and thats the last hack (and most important) that I need.
I dont mean to rush you bitsys!

sounds like a personal problem to me.

Dribbles
02-11-2003, 05:35 PM
Originally posted by Graphics

I promised my member to have the forums new version open with the bs bugs all fixed and updated withthe new version.
I have almost everything set up and thats the last hack (and most important) that I need.
I dont mean to rush you bitsys!

Post #1:

WARNINGS:

Do not install this hack on a production board. Please keep this hack, while in the BETA stage, to a test board.

mr e
02-12-2003, 03:21 AM
you can enter negative values can't you? and keeping the hp above 10 would be a good idea, but im waiting till bitsys releases his next update before i do anymore work on the hack

Originally posted by Darkwaltz4
bitsys i have two suggestions::
2,
whenever you set element stat increases, how about making decreases available as well? my other admin thought this would be cool, and i think so too--i think it would mainly just be signing the column in the database (to accept negatives) and _maybe_ a stat checking system which would include making sure stats stay above zero even if the element shoves it below (like 10 hp total if a element drops you below)

just some ideas-

jazza
02-12-2003, 11:43 AM
sorry, this will probably sound dumb to you guys, but how do i "CHMOD the following files to 0777"

sonic3d
02-12-2003, 01:44 PM
i have a few questions to ask.

1.) during battle i quickly level up fast. i was at lv 6. after the battle was over i was back down to LV. 2.
what does that happen?

2) where do i go to chnage how much experience need to go to the next level.

thank you
sonic

Dribbles
02-12-2003, 01:45 PM
Did you press "update stats" in your usercp after the battle?

Mrpolish
02-12-2003, 02:29 PM
Most ftp programs have that option when you right click on a file and then select "Chmod" or "change attributes", and then select 777 or whatever you want it to be.

jazza
02-12-2003, 03:32 PM
cheers

Darkwaltz4
02-12-2003, 09:55 PM
aha. yes, i just noticed that version .61 allows for element negatives. that is very nice, and i retract my suggestion, which is now void, heh--i did warn that it was from the .55 system i was coming from. oh well

sonic3d
02-13-2003, 09:36 PM
can ne1 help me on this plz.

where do i go to change how much experience you need to go onto the next level. thanx

l8er
sonic

mr e
02-13-2003, 09:55 PM
in admin cp, go to Battle Options and there is a place to enter a number 1-5, higher number means you level faster

sonic3d
02-13-2003, 10:01 PM
mines is 1 but its still way too fast. is there a way too configure it through php?

l8er
sonic

Bitsys
02-14-2003, 10:42 AM
Originally posted by sonic3d
mines is 1 but its still way too fast. is there a way too configure it through php?

l8er
sonic

Unfortunately, the lowest number is 1 and the maximum number is 5 due to a php function limitation. If you are still leveling too fast, then I suggest you lower the amount of XP gained per win in battle and/or the amount of experience gained per turn in battle. Also, assuming you are giving experience for posts, you can lower that as well. If all of these values are at a minimum, then there is nothing else you can do except adjust the level function.

The level function is located in functions.php. It is called 'getlevel'. This function computes a user's level and returns either a float or an integer, depending on what is passed to it. If you want to lower everyone's level, than you can probably perform some division on the numbers before they are rounded off and this would give the allusion that they are at a lower level, for all practical purposes. In fact, if you are not happy with the way levels are gained and you want a linear leveling system, then you can change the function to do this as well. All changes done to the level function apply immediatley and will affect users who are in battle. However, it will not lower a user's stats to the correct setting until they update their stats.

PSI|Dr-X
02-14-2003, 11:39 AM
Bytisis When :P do you gonna release the full version/next version
:)

I am waiting for it :)

sonic3d
02-14-2003, 03:28 PM
Originally posted by Bitsys


Unfortunately, the lowest number is 1 and the maximum number is 5 due to a php function limitation. If you are still leveling too fast, then I suggest you lower the amount of XP gained per win in battle and/or the amount of experience gained per turn in battle. Also, assuming you are giving experience for posts, you can lower that as well. If all of these values are at a minimum, then there is nothing else you can do except adjust the level function.

The level function is located in functions.php. It is called 'getlevel'. This function computes a user's level and returns either a float or an integer, depending on what is passed to it. If you want to lower everyone's level, than you can probably perform some division on the numbers before they are rounded off and this would give the allusion that they are at a lower level, for all practical purposes. In fact, if you are not happy with the way levels are gained and you want a linear leveling system, then you can change the function to do this as well. All changes done to the level function apply immediatley and will affect users who are in battle. However, it will not lower a user's stats to the correct setting until they update their stats.

thanx will try it soon as i get home.

Bitsys
02-14-2003, 04:08 PM
Originally posted by PSI|Dr-X
Bytisis When :P do you gonna release the full version/next version
:)

I am waiting for it :)

I am still working out some bugs in it. There have been some major changes that are not wanting to work together properly ;)

Also, with 2.3.0 out now, that is one more thing I have to test ;)

sonic3d
02-15-2003, 03:04 AM
when some1 retreats from a battle the winner get the money and both opponents are refunded with the money?

can ne1 help me on this?

l8er
sonic

PSI|Dr-X
02-15-2003, 10:12 AM
Check Screenshot :pirate:

Mystic Gohan
02-15-2003, 01:27 PM
In the release version will you be able to buy more then 1 weapon, armor, and accessories. Also can you insert the Clan hack into this so you can buy a clan when you have enough money.

mr e
02-15-2003, 04:45 PM
to buy more than one weapon etc, just make another category and name it like second hand or something like that

Darkwaltz4
02-15-2003, 08:03 PM
yeah, a clan thing might be cool--but not have it do anything...

also--

could you make certain classes only available at certain levels? similar to the items--cause whod wanna ever be a black mage when they can go straight for archmage?

Xyphen
02-16-2003, 02:41 PM
People People, calm down with the requests. Bitsys is a human just like you he isn't a robot you know.., he cannot possibly do all this. Slow the requests down, let him rest a bit. I probably can do it, but maybe hes getting pissed now cuz all of you making so many requests, why not just try and make an addon yourself and then give it to Bitsys and he can add to the next version with a little mod? I am sure that will help him out more. Personally I wouldnt be able to do anything like this, and you guys shouldn't be so selfish, instead of thanking him, you keep on asking him to add and add and add more and more stuff... -_-

Kyrie
02-16-2003, 03:20 PM
Database error in vBulletin 2.2.9:

Invalid SQL: SELECT field5 FROM userfield WHERE userid='1'
mysql error: Unknown column 'field5' in 'field list'

mysql error number: 1054

Date: Sunday 16th of February 2003 12:16:47 PM
Script: http://forums.yuuna.net/newreply.php
Referer: http://forums.yuuna.net/newreply.php?s=&action=newreply&threadid=1581



I have nooo idea what this means... can someone please help me?

mr e
02-16-2003, 03:29 PM
go to User Profile Fields in your admin cp and check the number of the field for the RPG Name (hover over the link and at the very end there should be a number, remember it) then go to Edit Battle Options and at the top change it to "field#" where the number is the one you remembered

Originally posted by Kyrie
Database error in vBulletin 2.2.9:

Invalid SQL: SELECT field5 FROM userfield WHERE userid='1'
mysql error: Unknown column 'field5' in 'field list'

mysql error number: 1054

Date: Sunday 16th of February 2003 12:16:47 PM
Script: http://forums.yuuna.net/newreply.php
Referer: http://forums.yuuna.net/newreply.php?s=&action=newreply&threadid=1581



I have nooo idea what this means... can someone please help me?

mr e
02-16-2003, 03:31 PM
bitsys has redone and added a lot of features to the battle hack and he's trying to get them to work right now, i've seen it with the features, and it's not ready to give out right yet, but the new features will almost completely redo the way potions, spells and potentially other items work, so hold tight for now :D

Originally posted by AViO 07
People People, calm down with the requests. Bitsys is a human just like you he isn't a robot you know.., he cannot possibly do all this. Slow the requests down, let him rest a bit. I probably can do it, but maybe hes getting pissed now cuz all of you making so many requests, why not just try and make an addon yourself and then give it to Bitsys and he can add to the next version with a little mod? I am sure that will help him out more. Personally I wouldnt be able to do anything like this, and you guys shouldn't be so selfish, instead of thanking him, you keep on asking him to add and add and add more and more stuff... -_-

Bitsys
02-16-2003, 03:40 PM
Originally posted by sonic3d
when some1 retreats from a battle the winner get the money and both opponents are refunded with the money?

can ne1 help me on this?

l8er
sonic

Umm, I am not sure about what you are asking, could you clarify?

PSI|Dr-X:
What are the vertical lines?

Mystic Gohan:
Unfortunately, I do not have enough time to include the clan hack.

Darkwaltz4:
Although that would be interesting, I don't have any plans to do that at this time.

Kyrie:
In addition to what mr e said, you can try reading https://vborg.vbsupport.ru/showthread.php?postid=331664#post331664 .

Kyrie
02-16-2003, 03:45 PM
Hmm, I tried that, and the field was 8 if that information is needed.... but uhm... I still get this error message.....

Database error in vBulletin 2.2.9:

Invalid SQL: SELECT field5 FROM userfield WHERE userid='1'
mysql error: Unknown column 'field5' in 'field list'

mysql error number: 1054

Date: Sunday 16th of February 2003 12:41:59 PM
Script: http://forums.yuuna.net/newreply.php
Referer: http://forums.yuuna.net/newreply.php?s=&action=newreply&threadid=1582

Bitsys
02-16-2003, 03:50 PM
Originally posted by Kyrie
Hmm, I tried that, and the field was 8 if that information is needed.... but uhm... I still get this error message.....

Database error in vBulletin 2.2.9:

Invalid SQL: SELECT field5 FROM userfield WHERE userid='1'
mysql error: Unknown column 'field5' in 'field list'

mysql error number: 1054

Date: Sunday 16th of February 2003 12:41:59 PM
Script: http://forums.yuuna.net/newreply.php
Referer: http://forums.yuuna.net/newreply.php?s=&action=newreply&threadid=1582

Try this one too:

1. Go to your admin panel
2. Go to modify user profile fields
3. Find the Pointfield profile field
4. Right click over the edit link and go to copy shortcut
6. Copy it in your browser
7. Near the end there will be a number. Remember that number
8. Go to edit the itemshop options
9. In the Point Field option put in field# and replace number with the number you recorded in step 7.

Kyrie
02-16-2003, 03:53 PM
Thank you Bitsys! It worked! I guess I overlooked that step in the instructions or something on accident... Thanks for the help!

PSI|Dr-X
02-16-2003, 03:54 PM
Bytsis thats just an fighter (in ascci (like archer lol) )

Dribbles
02-16-2003, 04:20 PM
Once again, great job Bitsys .. don't worry about all the requests ... just work on what you have planned. You're doing a great job.

saint_seiya
02-16-2003, 05:55 PM
For those who have noticed that if you click Submit in the healing center a lot of times before the next page loads, you get a lot of health.

Well here is a small bug fix i put together.

Example of the healing center with bug fix is at:
http://www.vgcity.com/forum/heal.php

What does it do?

Once a user clicks the heal button its made unclickable. Only I.E. users are affected. Don't know about Opera, if someone could test it on Opera :). I do know that in Netscape they just get an alert saying Thanks!. That will kinda stop them too. :)

Instructions

Template Modifications: 1
Time: 3m>

Open the rpg_heal template.

Find:

<head>


Add After it:

<SCRIPT LANGUAGE="JavaScript">

function disableForm(theform) {
if (document.all || document.getElementById) {
for (i = 0; i < theform.length; i++) {
var tempobj = theform.elements[i];
if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
tempobj.disabled = true;
}
setTimeout('alert("Healing... Thank You!")', 2000);
return true;
}
else {
alert("Thanks!");
return false;
}
}
</script>



Find:

action="heal.php?action=doheal">


Replace with:

action="heal.php?action=doheal" onSubmit="return disableForm(this);">


That's it!

Mystic Gohan
02-16-2003, 06:14 PM
OK Bitsy The clan hack would have been cool but I can live without it. I think I read about a request of 2 vs 2 battling will that be possible?

mr e
02-16-2003, 06:26 PM
he should be releasing the next update soon, so lets wait for that and maybe somebody else will make an addon for it :D

Bitsys
02-16-2003, 08:42 PM
Version 0.62 is done. Upgrade instructions are located in the upgrade folder. There are approximately 4 database queries, 4 file edits, 2 template edits, and 2 new templates. The new .zip file is in the first post.

Bugs Fixed:
All the ones I mentioned previously as being fixed in the next version. Also, some templates were adjusted to fix some visual errors.
I also fixed the bug that saint_seiya just posted a fix for. You can still do his method, they will both work.

New features (the good stuff):

Added mr e's special classes for mods/admins.
Added mr e's easier labels.
Added mr e's Dual-Purpose Spell Add-On (not released before). This add-on allows you to explicitly say what a spell does. You can make a spell heal, attack, do both, or do neither.
Added VeoMorphine's RPG CP with a few modifications.
Added VeoMorhpine's Admin Manual. In addition, the admin manual now has a FAQ at the bottom. This FAQ should answer a lot of the most common questions.
The reset features should now be working. I tested most of them (I think) and they worked. Please be careful with this part of the hack. It has the ability to reset major parts of the RPG.
You can now determine the amount of MA a spell costs. You can set this to 0 or 1000, whatever you want.
You can now determine what actions a potion will do when used in battle. You can specify that it heals the user's Ma, or the user's HP, or that it heals one and/or both of the to the Max. The amount that a potion heals (if it doesn't do a full heal) is still determined by the buff column. This is controlled in the Edit Items screen. The additional options won't appear unless the item category's battle type is set to "Potion".
A new (and shorter) postbit is included in the RPG Manual in the Admin CP. All of the text is removed and you have to hover your cursor over different pictures in order to see what the words are. For example, when you hover over the HP bar, it says "HP: 120/130", or something like that.


If you are upgrading, then you may have to re-do the Battle Types for your Item Categories. Just click on the "Edit" link next to each category name and re-select its battle type, then click submit.

To accomodate the new features with spells and potions, the Itemshop table have been adjusted. There are now some extra columns that tell users what the spell/potion does in battle. The is also a column for spells that tells the user how much MA it costs in battle.

As always, let me know if you experience any problems.

EDIT: This hack works on version 2.3.0 as well as all the other versions previously listed.

Darkwaltz4
02-16-2003, 09:43 PM
hmmm....thats gunna be fun redoing all 356 items ive added to my itemshop......well mosta them

i just last night went and revised the system, but now thankfully, i can better set some of things ^_^

--are shields put to use yet? i searched through the php files but i never found anything asking about [battletype] == 2...

if they arent, maybe have the buff of shields be like the 'max' amount of damage it can deflect if you choose to defend in battle...so, if you have a buff of 300 on your sheild, and u defend with it, if the person attacks with 200 damage, nothing happens to u....

also, when will pp be incorporated (just curious) ?

Bitsys
02-16-2003, 09:51 PM
Originally posted by Darkwaltz4
hmmm....thats gunna be fun redoing all 356 items ive added to my itemshop......well mosta them

i just last night went and revised the system, but now thankfully, i can better set some of things ^_^

--are shields put to use yet? i searched through the php files but i never found anything asking about [battletype] == 2...

if they arent, maybe have the buff of shields be like the 'max' amount of damage it can deflect if you choose to defend in battle...so, if you have a buff of 300 on your sheild, and u defend with it, if the person attacks with 200 damage, nothing happens to u....

also, when will pp be incorporated (just curious) ?

When upgrading, you don't have to delete the items. Just follow the steps in the upgrade file.

Shields are not used yet and will probably never be used due to bugs. I tried them a little bit, but it was very buggy and I couldn't get it to work.

PP will not be incorporated in this hack. However, it would be relatively easy for someone to make an addon (like a limit break addon) that incorporates PP.

Darkwaltz4
02-16-2003, 11:26 PM
lol, i know all about rediting items...but still, there are just the sheer amount of them...

^_^ im into coding lately, so maybe i can do some addons? both the shields and pp would be cool....

also, i know of a way to incorpoate the certain 'monster arena' people have asked about (you pay to fight a monster) would just need a new table for monster stats, and a new php page, which would run the monster and your battle stats thorugh the battle/battleupdate files

one last thought:
like the battle arena can be 'turned off' how about the itemshop?

also, when you edit items, it doesnt update useritem info, like if you changed settings for an item, it rarely takes effect on the alreday-owned item

so in light of that, how about a 'repair user inventory' script?

Darkwaltz4
02-17-2003, 12:43 AM
okay...more suggestions ;)

move the bank interest update function to global.php......ive had far too many complaints on 'my gils been in there for a week and i havent gotten any interest!!!' (and they have to visit the bank at least once a day to get it...)

status effects? no? lol

ill find more, trust meh

ive also edited your hack so that hp is not based on posts per day, and mp/pp are not based on how long u been registered.....it helps put everyone on the same level (i randed it a little, so its not exact)
and weve added to the battle page to play randomly chosen midis of ff battle themes ^_^ seems to go over well with my members-

we are also considering editing elements so that they are multiplicatively additive (so....earth would give +20% hp to hp) and not be so static

Bitsys
02-17-2003, 01:29 AM
Originally posted by Darkwaltz4
lol, i know all about rediting items...but still, there are just the sheer amount of them...

^_^ im into coding lately, so maybe i can do some addons? both the shields and pp would be cool....

also, i know of a way to incorpoate the certain 'monster arena' people have asked about (you pay to fight a monster) would just need a new table for monster stats, and a new php page, which would run the monster and your battle stats thorugh the battle/battleupdate files
Yeah, I was just not too enthusiastic with having different monster types, each with different classes of weapons and stats, each with an AI routine (which could be as simple or cmplex as you want), and each with an image. Not to mention the issue of monster drops, and loot. Just too much work and testing for me.

Originally posted by Darkwaltz4
one last thought:
like the battle arena can be 'turned off' how about the itemshop?
Just take the battle check code from the top of the battle.php files and add it to the top of itemshop.php (making sure to query the database) and every time you turn off the battle, you also turn off the itemshop. Or, you could make a new option for the itemshop and query the database for it in itemshop.php (making sure to display an error message if it is indeed turned off, of course).

Originally posted by Darkwaltz4
also, when you edit items, it doesnt update useritem info, like if you changed settings for an item, it rarely takes effect on the alreday-owned item

so in light of that, how about a 'repair user inventory' script?
This version is supposed to fix that error (after updating the items once). Let me know if this is not the case.

Originally posted by Darkwaltz4
okay...more suggestions

move the bank interest update function to global.php......ive had far too many complaints on 'my gils been in there for a week and i havent gotten any interest!!!' (and they have to visit the bank at least once a day to get it...)
I am against modifying global.php for any reason, even if it is only to query the database once every 24 hours only for users who visit that often. However, I may be looking into fixing the itemshop script so that you don't have to visit the bank to get interest.

Originally posted by Darkwaltz4
status effects? no? lol

ill find more, trust meh

ive also edited your hack so that hp is not based on posts per day, and mp/pp are not based on how long u been registered.....it helps put everyone on the same level (i randed it a little, so its not exact)
Make sure that you edited the update user stats code in rpgadmin.php to reflect the changes you made in member.php. The update stats code in rpgadmin.php should be in a function near the top.

Originally posted by Darkwaltz4
and weve added to the battle page to play randomly chosen midis of ff battle themes ^_^ seems to go over well with my members-
Maybe you could release that as an add-on? I know some people would probably like it ;)

Red Blaze
02-17-2003, 03:04 AM
Ummm...Hi, I would like to know if there is a way to show the rpg info (class, hp, mp, etc.) in the user's profile. I have tried many ways but none worked. Thanks :)

EDIT: Oops!! Sorry, never saw the Member Profile Add-on inside the .zip! ^^;

chrisz
02-17-2003, 06:51 AM
Yeah Yeah Yeah!!!
Thnx Bitsys you rock dude!!!!
Now I can open my forum and it will be the best around!!
:p :p :p
Yes Yes YES!!!!

mr e
02-17-2003, 07:19 AM
ok i just installed a brand new version of vb and installed the latest version of this hack, but in my user cp i set all my stats and stuff then i refresh the page or come back to it later and my class's default setting is always "Archer" that is always selected when i return to the page...

Bitsys
02-17-2003, 10:30 AM
Originally posted by mr e
ok i just installed a brand new version of vb and installed the latest version of this hack, but in my user cp i set all my stats and stuff then i refresh the page or come back to it later and my class's default setting is always "Archer" that is always selected when i return to the page...

That is probably due to the Special classes add-on, I will re-check the code and see what is going on.

geniuscrew
02-17-2003, 04:17 PM
Mmmm can people use weapons in battles?

Bitsys
02-17-2003, 04:31 PM
Originally posted by geniuscrew
Mmmm can people use weapons in battles?

Yes.

geniuscrew
02-17-2003, 04:36 PM
Oh - coz some forums I've seen the hack on seem to be only using fists - or is that before this new version? Anywayz thanks for clarifying

PSI|Dr-X
02-17-2003, 04:37 PM
(offtopic)Bytsis don't you have an forum? :) (ontopic)

Once agaian great hack :) i think the full version is coming soon :D
keep up the good work ;)

Genuiscrew :
That are the people who don't know the hack good cuz they don't`switch the itemshop items as fighting too

Bitsys
02-17-2003, 06:58 PM
Version 0.63 is done. The only thing this version does is fix the bug mr e reported about class names not saving the next time you go to your profile. There is 1 file edit and that is it. No need to re-upload the .php files. If you have not upgraded to version 0.62 yet, then the upgrade.txt includes instruction for upgrading from 0.61 to 0.63, skipping 0.62 entirely. In this case, if you upgrade from 0.61 to 0.63, then you won't have to do the upgrade from 0.62 to 0.63. I hope that made sense ;)

Check the first post for the new .zip file, the upgrade instructions are included in the upgrade directory.

And for record keeping:

Bugs fixed:
Fixed bug reported by mr e that class names were not sticking in the user profile.


Also, if you have version 0.62/0.63 working on your server and you have tested the new features in battle and in the itemshop, and you have not found any bugs/problems then please let me know. Thanks.

PSI|Dr-X
02-17-2003, 07:02 PM
Whoo great damn i just installed 0.62 lol

Edit: i did not caughed any bugs yet bytsis :devious:

Red Blaze
02-18-2003, 03:20 AM
Alright..everything seems to work fine, but the bank.
The link redirects me to the itemshop. Maybe because im using lesane's store points..?
Is there any way to fix this? Thanks ^^

Bitsys
02-18-2003, 03:32 AM
Originally posted by Sonikku
Alright..everything seems to work fine, but the bank.
The link redirects me to the itemshop. Maybe because im using lesane's store points..?
Is there any way to fix this? Thanks ^^

Yeah, if you are using Lesane's Store Hack for the RPG Money system, then the bank won't work. Instead of giving an error message, I just made it refresh the itemshop page.

chrisz
02-18-2003, 09:30 AM
It works great my forum will be up soon and I will show everyone the masterpiece ;)
Im ur biggest Fan Bitsys

chrisz
02-18-2003, 09:36 AM
I got the v.63 where is the info to fix the bug in v.62??

Bitsys
02-18-2003, 11:30 AM
Originally posted by chrisz
I got the v.63 where is the info to fix the bug in v.62??

Upgrade information is in the upgrade directory. Look for a text file called "UPGRADE.txt". If you are not upgrading from a previous version, then you don't need to do anything.

PSI|Dr-X
02-18-2003, 01:38 PM
Heh the full version is in sight i think :) way to go bytsis :)

The best hack ever ever ever

geniuscrew
02-18-2003, 02:31 PM
Well done Bitsys. However the same thing's happening with the elements as it did with the Class [even if you change your class it will still show the first item in the list]

Also how do you get special classes etc or is it all in the manual?

Bitsys
02-18-2003, 02:46 PM
Originally posted by geniuscrew
Well done Bitsys. However the same thing's happening with the elements as it did with the Class [even if you change your class it will still show the first item in the list]
Hmm, I am unable to reproduce this error. It also doesn't make sense for this to be happening since I didn't change any of the element code in member.php. You are running version 0.63, right? I will continue to look in to it a little more.

Originally posted by geniuscrew
Also how do you get special classes etc or is it all in the manual?

In the Edit Classes menu of the admin cp, there should be a column in the far right that says "Visible". If set to 1, then it is visible, if set to 0, it is only visible for admins/mods.

geniuscrew
02-18-2003, 03:08 PM
Thanks - yes I'm running 0.63 but my 0.62 installation didn't exactly go smoothly -_- - but everything else seem to be working.

Bitsys
02-18-2003, 04:07 PM
Originally posted by geniuscrew
Thanks - yes I'm running 0.63 but my 0.62 installation didn't exactly go smoothly -_- - but everything else seem to be working.

What went wrong?

Red Blaze
02-18-2003, 04:28 PM
Hmm..i updated to version .63 but... the inn wont heal my users o.O does anyone know what is wrong???

Bitsys
02-18-2003, 04:34 PM
Originally posted by Sonikku
Hmm..i updated to version .63 but... the inn wont heal my users o.O does anyone know what is wrong???

Could you explain exactly what is happening? Does the page just refresh? Does it say it healed the user, but it actually didn't? Does it not heal both HP and MA?

Red Blaze
02-18-2003, 04:37 PM
It says it healed the user but it doesnt show changes :(

Bitsys
02-18-2003, 04:39 PM
Originally posted by Sonikku
It says it healed the user but it doesnt show changes :(

Does it take money from their account?

geniuscrew
02-18-2003, 05:00 PM
Originally posted by Bitsys


What went wrong?

Template problems - I only recall 1 template being modified although everything is working/updating apart from the elements.

Bitsys
02-18-2003, 05:21 PM
Originally posted by geniuscrew


Template problems - I only recall 1 template being modified although everything is working/updating apart from the elements.

You can always try re-applying the code to member.php to see if that fixes the elements. Do you know if it is updating the element ID in the database when the user selects a new element and clicks submit?

geniuscrew
02-18-2003, 06:21 PM
I just realised the element='$element' was missing off the query - should work now thanks :D

Dribbles
02-18-2003, 07:38 PM
Originally posted by Sonikku
It says it healed the user but it doesnt show changes :(

I believe you have to go to usercp, click the "update stats" button and press submit before seeing changes?

Dribbles
02-19-2003, 12:38 AM
I'm trying to figure out how much experience I should award users per post and for fights, etc ... just curious, when it says set how much experience a user needs before going up a level (choose number between 1-5) ... how exactly does it work? Is it the same number of experience to go up every level? (ie- level 1 -> level 2 = same amount needed as level 75 -> level 76) ... also, how much experience in points do the numbers 1 -> 5 relate to? thnx :)

Darkwaltz4
02-19-2003, 01:56 AM
1) yep, it does update from what i can tell ;) excellent

also...rember this?

Originally posted by Darkwaltz4
maybe i can do some addons? both the shields and pp would be cool....


now, do i lie? who doesnt think this is cool? (look at screnshots of my newest addon)

makes use of pp ^_^!!

it _works_!!! (required a little hunting here and there -_-)

adds no extra queries than before!

coming up:
potions that heal pp
heal pp in healing center

display summon picture in postbit (its own variable)..

some notes:
summons do more damage if you have less pp than all your pp!

2 pictures--all summons have the sparkly little gif, but bring up the main picture in special cases

(Shiva, used for my test summon, has had test stats applied for the itemshop info for purchasing. i would not sell it for 100 gil, it wouldnt cost 1000 pp, and it wouldnt do 50000 damage ;) )
healing and attack (or both) types (modeled after spells..)

and....if ur interested, maybe this could be integrated as well? or just an addon?

sheilds are next after pp business--

geniuscrew
02-19-2003, 02:12 AM
Nice job DW! I like the bit where Shiva misses rofl

Dribbles
02-19-2003, 04:56 AM
wow, how did your character get so many items :)

geniuscrew
02-19-2003, 08:34 AM
Originally posted by Dribbles
wow, how did your character get so many items :)

By splitting up the items into different categories ;~)

chrisz
02-19-2003, 10:01 AM
Any idea when this addon will be out DarkWaltz

chrisz
02-19-2003, 02:42 PM
Bitsys when I lvl up on my forum how come my HP doesnt rise???

geniuscrew
02-19-2003, 02:48 PM
Have u updated your stats?

Darkwaltz4
02-19-2003, 03:25 PM
my itemshop currently has 13 categories and 256 items. im gunna be adding a few more potions for pp, and a bunch of summons. the summon system is up and running on my board. if you are interested, tell me, and ill try to backtrack what i added -_-

when summons are added 'officially' to my shop, ill have ~290 items, and 14 categories. --im also making a 'dummy' type, merely so i can make a combinaion itemshop, for displaying all items at once, just for fun ^_^ (and i can link to it and ppl wont get too lost)

ill keep yaupdated, and speakin of updates, when the newer versions come out, the addon is yet another thing i have to update -_-

last night i got the healing center to heal pp ;) (quite easy actually, required a addon to battle_options), and began fixing potions to do pp as well

geniuscrew
02-19-2003, 03:35 PM
Sounds cool! I would be very interested in seeing how you did it :P

Also just a question, do they "buy" the Shiva summon?

Vivi Ornitier
02-19-2003, 05:13 PM
okay i'm just curious. I haven't installed this hack yet but ummm . . . u said it's not installable if you have any of the other hacks installed. I have like half of those hacks installed already, so is it just impossible for me to install the hack now? Even if i get rid of those hacks and start over again? Also i'm on 2.2.6, any confirmation that it works on it? Any clue when the final release comes?

Bitsys
02-19-2003, 05:36 PM
Originally posted by Dribbles
I'm trying to figure out how much experience I should award users per post and for fights, etc ... just curious, when it says set how much experience a user needs before going up a level (choose number between 1-5) ... how exactly does it work? Is it the same number of experience to go up every level? (ie- level 1 -> level 2 = same amount needed as level 75 -> level 76) ... also, how much experience in points do the numbers 1 -> 5 relate to? thnx :)

The level formula is logarithmic. Therefore, the higher your level, the more experience it takes to gain another level. If you want to see the actul code, then search for the getlevel function in admin/functions.php.

Originally posted by Darkwaltz4
and....if ur interested, maybe this could be integrated as well? or just an addon?

The add-on sounds pretty cool. I can't guarantee that I'll integrate because I need to look at the source code first.

Originally posted by chrisz
Bitsys when I lvl up on my forum how come my HP doesnt rise???
Like geniuscrew said, did you update your stats in the user cp?

Originally posted by Vivi Ornitier
okay i'm just curious. I haven't installed this hack yet but ummm . . . u said it's not installable if you have any of the other hacks installed. I have like half of those hacks installed already, so is it just impossible for me to install the hack now? Even if i get rid of those hacks and start over again?
If you get rid of those hacks, then you should be fine installing this hack. The reason why you can't have both installed at the same time is because they use a lot of the same variables. Just make sure that all of the hacks are removed before installing this hack.
Originally posted by Vivi Ornitier
Also i'm on 2.2.6, any confirmation that it works on it? Any clue when the final release comes?
There have been 2 or 3 people that have reported it working fine on version 2.2.6. I myself have not tested it on 2.2.6, but I don't think you will have any problems. No date for the final release yet. There is still one bug that I am looking in to.

h4x0rtje
02-19-2003, 07:09 PM
Vivi Ornitier: It works for me fine on a fresh 2.2.6 no problems ! :)

Mystic Gohan
02-19-2003, 07:39 PM
I like the Esper System add-on you have. I would like very much on my forum. As I am a Final Fantasy fan :p

Darkwaltz4
02-19-2003, 07:48 PM
alright--i wanna fix up a few little things, and finish adding pp potions. then ill prolly pm you all the edited files bitsys

i think for shields, itll need a 'lastmove' column for the battle table, which would record the itemtype used last battle, and 0 if it was fists or something. then u could track if a shield was cast the last move, and to act differently upon it. i definately wanna incorporate that ^_^

Bitsys
02-19-2003, 07:54 PM
Originally posted by Darkwaltz4
i think for shields, itll need a 'lastmove' column for the battle table, which would record the itemtype used last battle, and 0 if it was fists or something. then u could track if a shield was cast the last move, and to act differently upon it. i definately wanna incorporate that ^_^

Just use the winstatus column. That column isn't used until someone wins, and since you can't attack after someone has won, then it should be free for you to use for the shield status.

Darkwaltz4
02-19-2003, 07:57 PM
what exactly were the 'beta tests' done? u keep mentioning passed failed things, but i dont know what you tried *shrugs*

Dribbles
02-19-2003, 08:52 PM
Are the weapons working for anyone in v.63? For some reason, it's not working for me still :( Maybe it could be the Lesane store hack?

Dribbles
02-19-2003, 09:09 PM
Just checked ... When I add a new item, it's not showing up in itemshop.php either :(

Bitsys
02-19-2003, 11:02 PM
Originally posted by Darkwaltz4
what exactly were the 'beta tests' done? u keep mentioning passed failed things, but i dont know what you tried *shrugs*

Are you referring to the things that I have tried but didn't actually work out?

If so, then the major one was limit breaks. The original RPG Class Hack had limit breaks for different classes. You would get a new level break after getting a new level.

The way I saw it was that these limit breaks took a certain amount of PP to execute. So, if I wanted to use "Dragon Punch" in battle, then it might cost me 300 PP, etc. These limit breaks would each do a certain enhancement, like 200% extra damage, or skip a turn, or immobilize your enemy for a turn. Basically, they were special attacks that could affect the status of the battle in a unique way. Mind you, this was when the moderators calculated damage for a battle and subtracted the HP manually. The Mods also did the coin flipping and sometimes the narration.

When I originally set out to do the RPG hack, I was very intent on having PP and limit breaks. However, I looked at the code and it did not seem feasible for several reasons:

Each class had 5 limit breaks. Approx. 30 classes * 5 limit breaks = 150 different limit breaks, which is quite a few.
Each limit break would have to have one or more special pre-designed abilities that could affect the battle. They would also have to take away a set amount of PP.
There would have to be a system for gaining a level break. Would it just be that you automatically get it when you reach a certain level? Or should there be a training ground?
The database structure would have been very complicated. What happens when the admin deletes a class? Would the user lose the limit breaks associated with that class, and possibly lose all of that hard work in the training grounds?

Problems such as these caused me to push the limit breaks and PP off to the side. I tried to do part of the table structures, but gave up. I can see a way of doing it now, but it wouldn't stay true to the original Class Hack.

I am not saying that it is impossible, it would just be more difficult than a lot of the other parts of the hack. I don't think it would be as hard as the php/javascript code I put into member.php to automatically update the races/classes based on what you choose.

That is the main feature that I have tried and felt like it wasn't worth the time to implement. However, I am not discouraging you against pursuing this add-on or any other add-on. Just because I didn't feel like it was feasible, that doesn't mean you won't.

Most of the other things that I have tried and failed at were just incremental parts of the hack. Like, the original way I had battles set up was rather horrible. So I changed it and re-wrote the code. That version was pretty bad too. So I changed it again. This process went on and on until you see what it is now.



Originally posted by Dribbles
Are the weapons working for anyone in v.63? For some reason, it's not working for me still Maybe it could be the Lesane store hack?

They work for me. I don't think it is Lesane's store hack, since that only affects the monetary system and itemshop. Check your PMs.

Originally posted by Dribbles
Just checked ... When I add a new item, it's not showing up in itemshop.php either

Make sure you are assigning it an RPG Type in the Edit Item Types menu. Just click the checkboxes below the class types that you want to have access to that weapon.

chrisz
02-19-2003, 11:38 PM
Ok everything works fine for me :)
I have it running on my forum now but the PP has no use until the Summons addon is out and how does the anger rise?

Darkwaltz4
02-20-2003, 12:12 AM
lol--while fixing one thing, i break another ^_^
so im fixing that now -_-
pp healing is abled in the healing center--im surprised it wasnt set up in the first place :(

i also put up some little changes which u may or may not keep when i send u the files bitsys. like, itemshop turning off, and some display changes, lol
so...just be sure to check mosta it--if u havent already taken vb's advice, and gotten beyond compare2, its pretty useful ^_^

well...i unno about limit breaks O.o seems too not 'one-size-fits-all' which yeah, would require alot of db stuff....

but yeah, 4 big things im doing/done
summons
pp heal center
pp potions
shields

how long have u been workin on this hack?

Moreliator
02-20-2003, 12:46 AM
The only problem I have occuring is in the RPG System Center (rpgcp.php)

Some users report that it is not displaying their stats.... all it has are a nuch of " 'S Stats" instead of the users name, and it doesn't display any of their character info. I had this happen to my account to, but all of a sudden it went away one time and never came back. Is tehre something with editing your character or having to buy an item that triggers the CP to display yuor characters pic and stats?

Bitsys
02-20-2003, 01:28 AM
Originally posted by Darkwaltz4
so...just be sure to check mosta it--if u havent already taken vb's advice, and gotten beyond compare2, its pretty useful ^_^
Heh, how do you think I made all of the upgrade files? I certainly couldn't have done it without Beyond Compare. ;)
Originally posted by Darkwaltz4
how long have u been workin on this hack?
Since September 15th, 2002.

Originally posted by Moreliator
The only problem I have occuring is in the RPG System Center (rpgcp.php)

Some users report that it is not displaying their stats.... all it has are a nuch of " 'S Stats" instead of the users name, and it doesn't display any of their character info. I had this happen to my account to, but all of a sudden it went away one time and never came back. Is tehre something with editing your character or having to buy an item that triggers the CP to display yuor characters pic and stats?
As far as I know, the only requirement is that you have to be logged in. However, I will look into this a little more to see if there is something else causing it.

chrisz
02-20-2003, 02:25 AM
People anger is reset when you update stats I think that should be changed!

Bitsys
02-20-2003, 02:39 AM
Originally posted by chrisz
People anger is reset when you update stats I think that should be changed!
Changed to what?

The way I see it is that if you grow a level, then your mental state changes enough that it is similar to gaining a new perspective on things. With this new perspective, your anger is now restored to its original state since the rest of your body/mind has changed also.

Anyhow, if you don't want it to change then you can take the code out of member.php. To do this,

find in member.php:

$DB_site->query("UPDATE user SET ap='$apmodifier' WHERE userid=$bbuserinfo[userid]");
and replace with:
//$DB_site->query("UPDATE user SET ap='$apmodifier' WHERE userid=$bbuserinfo[userid]");

That will leave their AP alone when they update their stats.

chrisz
02-20-2003, 02:41 AM
thnx and is there any way to make peoples stats update automaticly?
So they dont have to click update stats all the time??

Vivi Ornitier
02-20-2003, 03:42 AM
omg this hack has soooo much more stuff than when i first saw it. Holy crap this is soo gangsta. GREAT JOB BITSYS!

chrisz
02-20-2003, 11:57 AM
I have a problem with my itemshop:
Its regarding spells,
Have a look at the attack and heal options they are switched around.
http://ffsaiyans.xeko.net/forum/itemshop.php?expanditems=6&itemtype=0
Can you tell me how to fix it?
I cant find it anywhere in the templates to swap them back.

Bitsys
02-20-2003, 12:21 PM
Originally posted by chrisz
thnx and is there any way to make peoples stats update automaticly?
So they dont have to click update stats all the time??

It is possible. You have to put the update stats code from member.php into newreply.php and newthread.php.

Originally posted by chrisz
I have a problem with my itemshop:
Its regarding spells,
Have a look at the attack and heal options they are switched around.
http://ffsaiyans.xeko.net/forum/itemshop.php?expanditems=6&itemtype=0
Can you tell me how to fix it?
I cant find it anywhere in the templates to swap them back.

Those columns are dynamic. They will only show up if the category needs them. To make it simpler for people who were upgrading, I chose to put the code for the columns inside the .php file, instead of in the template. I store the html for the columns inside a variable, and then the variable in the itemshop_tabletop template gets replaced with the appropriate code.

If you want to switch them around, then it will require some changes to itemshop.php. There are two parts that you need to change.

In itemshop.php, find:
$levelcolumn = '<td bgcolor="{ categorybackcolor}" width="5%" align="center"><normalfont color="{ categoryfontcolor}"><b>MA Cost</b></normalfont></td><td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" width="5%" align="center"><normalfont color="{ categoryfontcolor}"><b>Heal</b></normalfont></td><td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" width="5%" align="center"><normalfont color="{ categoryfontcolor}"><b>Attack</b></normalfont></td>'.$levelcolumn;
(I added extra spaces in front of categorybackcolor and categoryfontcolor so that vb.org wouldn't replaces them.)

And switch the columns around to however you want them. Remember what and how you switched them.

Then, in itemshop.php, find:
$levelcolumnmid = '<td bgcolor="#1C5780" width="5%" align="center"><normalfont>'.$extrainfo[2].'</normalfont></td><td bgcolor="#1C5780" width="5%" align="center"><normalfont>'.iif($extrainfo[0], "Yes", "No").'</normalfont></td><td bgcolor="#1C5780" width="5%" align="center"><normalfont>'.iif($extrainfo[1], "Yes", "No").'</normalfont></td>'.$levelcolumnmid;

And switch the variables around in the same way that you switch the other code.

Originally posted by Vivi Ornitier
omg this hack has soooo much more stuff than when i first saw it. Holy crap this is soo gangsta. GREAT JOB BITSYS!

Thanks! :)

chrisz
02-20-2003, 12:25 PM
thnx bitsys now where do I put this code in the newreply and newthread?
And how do I take the update stats out of the profile?
EDIT: Works great thnx :)

Bitsys
02-20-2003, 12:35 PM
Originally posted by chrisz
thnx bitsys now where do I put this code in the newreply and newthread?

Between
// End Itemshop code by Mewtwo and Battle Code by Bitsys
and
// send email to moderators

in both files.

chrisz
02-20-2003, 12:36 PM
and the update stats bit?

Bitsys
02-20-2003, 12:45 PM
Update stats automatically Add-On

In newreply.php and newthread.php, between
// End Itemshop code by Mewtwo and Battle Code by Bitsys
and
// send email to moderators

in both files, place the following code:

//begin auto-update stats add-on for the RPG Integration Hack by Bitsys
$userinbattle = $DB_site->query_first("SELECT inbattle FROM user WHERE userid='$bbuserinfo[userid]'");
if ($userinbattle[inbattle] == 0) {
//$debugmessage .= "You must be out of a battle in order to update your stats. Please exit or complete battle $userinbattle[inbattle] and try again.";
//exit;
$userstats = $DB_site->query_first("SELECT hp, maxhp, element, ma, maxma, pp, maxpp, ap, posts, xp FROM user WHERE userid='$bbuserinfo[userid]'");
$hp = $userstats[hp];
$maxhp = $userstats[maxhp];
$ele = $userstats[element];
$ma = $userstats[ma];
$maxma = $userstats[maxma];
$pp = $userstats[pp];
$maxpp = $userstats[maxpp];
$ap = $userstats[ap];
$posts = $userstats[posts];
$debugmessage .= "HP: $hp | MaxHP: $maxhp | Element: $ele | MA: $ma | MaxMA: $maxma | PP: $pp | MaxPP: $maxpp | AP: $ap | Posts: $posts<br>\n";
$jointime = (time() - $bbuserinfo[joindate]) / 86400;
if ($jointime < 1) {
$postsperday = "$posts";
} else {
$postsperday = sprintf("%.2f",($posts / $jointime));
}
$debugmessage .= "Jointime: $jointime<br>\n";
$battleopt = $DB_site->query_first("SELECT * FROM battle_options");
$level = getlevel($userstats[xp], $battleopt[exprate], 1);
$ep = floor (100 * ($level - floor ($level)));
$showlevel = floor ($level + 1);
$debugmessage .= "Level: $level | Showlevel: $showlevel<br>\n";
$hpmulti =round ($postsperday / 4, 1);
if ($hpmulti > 7.5)
$hpmulti = 3;
if ($hpmulti > 2.5)
$hpmulti = 1.5;
if ($hpmulti < 1)
$hpmulti = 1;
$debugmessage .= "HPMulti: $hpmulti<br>\n";
$element = $DB_site->query_first("SELECT * FROM rpg_element WHERE elementid='$ele'");
$hpmodifier = $element[hp];
$mamodifier = $element[ma];
$ppmodifier = $element[pp];
$apmodifier = $element[ap];
$debugmessage .= "HPmodifier: $hpmodifier | MAmodifier: $mamodifier | PPmodifier: $ppmodifier | APmodifier: $apmodifier<br>\n";
$elename = $element[name];
$maxhpupdate = ( $level * $battleopt[hpmodifier] * $hpmulti) + $hpmodifier;
$maxhpupdate= floor ($maxhpupdate);
$maxmaupdate = $mamodifier + ($jointime * $level * $battleopt[mamodifier]) / 5;
$maxmaupdate = floor ($maxmaupdate);
$maxppupdate = $ppmodifier + ($jointime * $level * $battleopt[ppmodifier]) / 3;
$maxppupdate = floor ($maxppupdate);
If ($maxhpupdate < 0)
$maxhpupdate = 0;
If ($maxmaupdate < 0)
$maxmaupdate = 0;
If ($maxppupdate < 0)
$maxppupdate = 0;
If ($apmodifier < 0)
$apmodifier = 0;
If ($maxhp != 0 && $maxhpupdate != 0)
$newhp = $hp * ($maxhpupdate / $maxhp);
else
$newhp = $maxhpupdate;
If ($maxma != 0 && $maxmaupdate != 0)
$newma = $ma * ($maxmaupdate / $maxma);
else
$newma = $maxmaupdate;
If ($maxpp != 0 && $maxppupdate != 0)
$newpp = $pp * ($maxppupdate / $maxpp);
else
$newpp = $maxppupdate;
$debugmessage .= "MaxHPupdate: $maxhpupdate | MaxMAupdate: $maxmaupdate | MaxPPupdate: $maxppupdate<br>\n";
$debugmessage .= "NewHP: $newhp | NewMA: $newma | NewPP: $newpp<br>\n";
$DB_site->query("UPDATE user SET maxhp='$maxhpupdate', hp='$newhp', maxma='$maxmaupdate', ma='$newma', maxpp='$maxppupdate', pp='$newpp' WHERE userid='$bbuserinfo[userid]'");

$debugmessage .= "Stats Updated.";
} else {
$debugmessage .= "You are in Battle.";
}
//end auto-update stats add-on for the RPG Integration Hack by Bitsys

Note that if you have modified the update stats code before, then you will have to modify it again in both of these files. Also, this code will NOT update the user's AP (anger percentage). It will remain the same.

chrisz
02-20-2003, 12:52 PM
Your a genious it worked :D
Thnx for all your hard work keep it up :)
I am sure lots of people will use this :)

PSI|Dr-X
02-20-2003, 02:15 PM
(The 61 page)

Lol if there is comming an hack of the month then it's surely you Bytsis :)

The Hack of The Century :)

Dribbles
02-20-2003, 03:10 PM
Will the Update stats automatically Add-On use up a lot more resources?

Bitsys
02-20-2003, 03:33 PM
Originally posted by Dribbles
Will the Update stats automatically Add-On use up a lot more resources?

It adds 5 extra queries every time someone replies to a thread, or makes a new thread. That is why I didn't include it in the default release.

If I get the time, I will reduce the queries and re-post the code.

Dribbles
02-20-2003, 03:46 PM
I assume 5 extra queries is a lot? I don't need it anyway then ... I'll just have my members do it the hard way (for them not me) hehehe

Vivi Ornitier
02-20-2003, 04:26 PM
I have a question,

Which currency will we have to use for the this battle hack? Is it compatible with the lesane's store currency or do we have to use something like shinra's points system? Personaly both are alright but i'm usin store currency for the store which is a big thing and the shinra's points for Itemshop only. So which currency will the battle hack use?

Bitsys
02-20-2003, 04:43 PM
Originally posted by Vivi Ornitier
I have a question,

Which currency will we have to use for the this battle hack? Is it compatible with the lesane's store currency or do we have to use something like shinra's points system? Personaly both are alright but i'm usin store currency for the store which is a big thing and the shinra's points for Itemshop only. So which currency will the battle hack use?

I am not familiar with shinra's points. However, you have 2 options for points. You can specify that you want to use the Itemshop Money system. This allows you to deposit money in the bank and buy items from the itemshop. You can also use this money for the wager when battling. If you don't want to use the Itemshop money system, then you can use the Lesane's Store Points system. All of the user's Store points can be used to buy items in the itemshop and as the wager when battling. However, the itemshop bank is deactivated when using Lesane's Store points.

To switch between the two, you have to change the first option in the Itemshop Options menu.

geniuscrew
02-20-2003, 05:06 PM
Just a little add-on, code thingy which allows Admins, Mods, and Supermods to use the system even if it's turned off.

In battle.php, battlefight.php and battleupdate.php

find


If ($battleopt[ison] == 0) {
$message = "The battle arena has been temporarily disabled. Contact your administrator for more information.";
eval("dooutput(\"".gettemplate('battle_userinbattle')."\");");
exit;
}


and replace with


If ($battleopt[ison] == 0) {
if (!$permissions['cancontrolpanel'] && ($bbuserinfo[usergroupid]!=7 && $bbuserinfo[usergroupid]!=5)) {
$message = "The battle arena has been temporarily disabled. Contact your administrator for more information.";
eval("dooutput(\"".gettemplate('battle_userinbattle')."\");");
exit;
}
}



I've tried it and it should work :)

chrisz
02-21-2003, 11:03 AM
I am using the auto update is that bad??
If it is I will take it out...
So is it or what?

geniuscrew
02-21-2003, 11:25 AM
Don't quote me on this, but I think it depends.

Auto updating adds more queries, which in effect, takes the page longer to load.

Therefore mroe bandwidth is used too.

That's what I think anyway.

chrisz
02-21-2003, 11:33 AM
so its not that bad..
I will add it when the queries are shorter.
And Bitsys when you release the shorter one can you tell me how to edit the anger so it goes up like 50-80% each time they miss?
So they can still use it
EDIT: Whats the max lvl a user can go up to?

Darkwaltz4
02-21-2003, 12:36 PM
Bug Fix: When editing categories in the itemshop, and leaving 'item type' alone (non-battle, 1/2 handed, etc) (so it displays like "Current (Non-Battle)") and submitted it, it would store null to the battle type.

the reason? a bad variable....so...
Now, since i dont have access to the original files right now, ill try to at least point in the right direction::

find:

doformheader("itemadmin","docat");
makehiddencode("cateid",$cateid);
maketableheader("Edit Categories","",0);

makeinputcode("Name","catname",$selcat[name]);
makeinputcode("Description","catdesc",$selcat[description]);
makeinputcode("Order","order",$selcat[catorder]);
makeinputcode("Owner ID<br>Only if itemshop is personal","ownid",$selcat[ownerid]);


then directly below it, there is a long string which is the setting for battletype. find "Current $curtype" and right before it is a variable which i cant remember right now >.< (ill post it later when i find it again) and replace it with "$selcat[battletype]"
now, when you leave it as 'current' it stays at current....instead of ruining magic settings and potions (and summons ;))

i also found and fixed that error i mentioned i created. soo...im a little while, ill send the edits for bitsys

chrisz
02-21-2003, 12:41 PM
When is the summons hack out Dark?
I reaallly want it :D

Red Blaze
02-21-2003, 02:11 PM
Alright...! Everything seemed to work properly until we started buying things...it doesnt recognize items, if someone buys a weapon and has it while in battle it shows in the itemlist but says that user hasnt got a weapon :(

Bitsys
02-21-2003, 04:42 PM
Originally posted by geniuscrew
Just a little add-on, code thingy which allows Admins, Mods, and Supermods to use the system even if it's turned off.


Heh, don't forget to turn it back on if you turn it off ;)

Originally posted by chrisz
I am using the auto update is that bad??
If it is I will take it out...
So is it or what?
It is not bad. 5 queries only on a reply or new thread isn't too bad, but since I can make it better I wouldn't recommend doing it right now. I only released it because several people have asked.


Originally posted by geniuscrew
Therefore mroe bandwidth is used too.

I am pretty sure it doesn't use more bandwidth, however it will use up a little more of the server's resources.

Originally posted by chrisz
And Bitsys when you release the shorter one can you tell me how to edit the anger so it goes up like 50-80% each time they miss?

This involves editing battleupdate.php. All you have to do is find the code that calculates the anger percentage and change it to a higher number.

Originally posted by Darkwaltz4
Bug Fix: When editing categories in the itemshop, and leaving 'item type' alone (non-battle, 1/2 handed, etc) (so it displays like "Current (Non-Battle)") and submitted it, it would store null to the battle type.

Thanks for pointing that out. The incorrect variable is $cateid. It stores the ID of the category you are currently editing. It seems I accidentally left that in there from a version from a long time ago. Here's a quick fix:

In itemadmin.php, find:
<option value=\"$cateid\">Current $curtype</option>
and change it to:
<option value=\"$selcat\">Current $curtype</option>


Originally posted by Sonikku
[B]Alright...! Everything seemed to work properly until we started buying things...it doesnt recognize items, if someone buys a weapon and has it while in battle it shows in the itemlist but says that user hasnt got a weapon
Did you do what it says in the FAQ located in the RPG Admin Panel menu in the Admin cp? It says:
Q: Why can't I use items in battle? They are always grayed out and it says, "You do not have a [item name]".


A:
Do the following: In admin cp, go to "Edit Items". Look at a category name (the category names should be above all of the items). Click on the "[edit]" link next to that category. On the next screen, make sure that there is a battle type associated with that item category.

Red Blaze
02-21-2003, 06:57 PM
Okie..now it works! ^_^
Thanks a lot!

Kyrie
02-21-2003, 06:58 PM
I'm not sure if this is posted already... but when my users have purchased weapons.. they can't use them in battle.. I was wondering how I could fix it?

Vivi Ornitier
02-21-2003, 07:08 PM
Hey bitsys, i'm uninstallin all the RPG hacks but what about the queries that were run by them? I haven't looked at the rpg install instructions yet but i'm naturally assumin theres gonna be massive amounts of queries

Mystic Gohan
02-21-2003, 07:20 PM
Will you be able to make it random on how much HP you have because right now all it is, is who ever has the higher HP wins a match. Can you randomize the HP taken away from an attack?

Red Blaze
02-21-2003, 07:38 PM
Originally posted by Kyrie
I'm not sure if this is posted already... but when my users have purchased weapons.. they can't use them in battle.. I was wondering how I could fix it?

Originally posted by Bitsys

Did you do what it says in the FAQ located in the RPG Admin Panel menu in the Admin cp? It says:

Q: Why can't I use items in battle? They are always grayed out and it says, "You do not have a [item name]".
A: Do the following: In admin cp, go to "Edit Items". Look at a category name (the category names should be above all of the items). Click on the "[edit]" link next to that category. On the next screen, make sure that there is a battle type associated with that item category.

Kyrie
02-21-2003, 07:54 PM
thanks for that, I'll try it now.

Bitsys
02-21-2003, 08:39 PM
Originally posted by Vivi Ornitier
Hey bitsys, i'm uninstallin all the RPG hacks but what about the queries that were run by them? I haven't looked at the rpg install instructions yet but i'm naturally assumin theres gonna be massive amounts of queries

IIRC, the only queries that were run by the other RPG hacks were the queries to add additional fields to the user table and userfield table. The exception to this is the Itemshop hack. All of the itemshop tables begin with the prefix "items". So, if you remove the extra fields in the user/userfield table and you remove all tables that begin with items, then I think you should be OK. I am not 100% sure, so you should try to find the install files and double-check to make sure.



Originally posted by Mystic Gohan
Will you be able to make it random on how much HP you have because right now all it is, is who ever has the higher HP wins a match. Can you randomize the HP taken away from an attack?
That is the way it currently works. Items do +- 25% of their buff value that you assign in the admin cp. Fists do +-15% based a formula that uses the person's level and stats and do a minimum of 5 damage. Spells do +- 15% damage based on the buff value that you assigned in the admin cp.

If you run some tests then you should notice that this is the case. If you find that it isn't, then let me know.

Moreliator
02-21-2003, 08:52 PM
Hey Bitsy, nevermind that error I was talking about earlier (with the RPGCP.PHP file not recognizing user)... I think it was just a faulty install... I reinstalled and things seem to be fine.

The only thing I have a question about now is styles. Your instructions say specifically not to choose more than one template set when installing. If my board has multiple styles that users can picks, is there a simple way to implement this hack on all styles? Because right now, if the user isn't on the specific template set the hack was installed on, there won't be the RPG options in their user CP and this may confuse a lot of people.

thanks.

Bitsys
02-21-2003, 09:35 PM
Originally posted by Moreliator
The only thing I have a question about now is styles. Your instructions say specifically not to choose more than one template set when installing. If my board has multiple styles that users can picks, is there a simple way to implement this hack on all styles? Because right now, if the user isn't on the specific template set the hack was installed on, there won't be the RPG options in their user CP and this may confuse a lot of people.

thanks.

Whenever I tried applying the hack to all template sets, vbhacker would create each template once per set. At the time, my forum had 3 template sets. 51 new templates times 3 template sets equals 153 new templates. I wasn't very happy about this. To avoid confusion, I put that part about not selecting all of the template sets in the install file. I am not sure if there is an easy way to do the template edits on all of the template sets, however, you can try the following:

Go to vbhacker and start to install the hack as usual. When you get to the screen that lists which file edits, template edits, new templates, and queries you want to do, make sure that you select the template edits only (there should only be one). Then, at the bottom of the page, select all of the template sets that you did not do the template edits for when you originally installed the hack.

I have not tested this, but I think it will work. I would suggest backing up the template sets before doing it though, just in case.

DaPro
02-21-2003, 09:45 PM
Hey Bitsey, I tried installing version .63 onto my forums and I forgot to chmod the files, so I did the manuall thing and it says congradualtions ur done, or something like that, but when I go to my main forum it says

"Parse error: parse error in .../forums/admin/functions.php on line 354

Fatal error: Call to undefined function: getuserinfo() in .../forums/admin/sessions.php on line 365"

Now I don't know why it says that, can you please tell me how to fix it, my aim s/n is dapro85, but I am on privacy, so let me kno to add you. Thanks

DaPro
02-21-2003, 09:51 PM
my aplogies, I copied something wrong, it is fixed, sry about that!

Darkwaltz4
02-21-2003, 10:06 PM
well....ive added innumeral things to this hack, in little bits, and in large noticeable bits. one thing i did was have 'defaut' gil you could recieve when you registered. it was originally set to 500. a few weeks later, a giant wave of registrations came, and suddenly, i realized why none were posting, and why those members never had any gil left......without buying anything...

they were fake members donating the default gil to the original members....so what do i to combat this? ive created a very nice addon, useable to see who is donating to who, and allows you to check identities and such--and accept/cancel donations

use it to do that, or track all donations in general. there is one query, 2 major edits (additions) and 1 minor edit, and one optional minor edit. (you can allow your mods to use the script)

Instructions are in the attachment, and if u have any questions, direct them towards me in a pm

i hereby call this addon the Donation Queue ^_^

Darkwaltz4
02-21-2003, 10:08 PM
to easily update all template sets in a few clicks--i suggest this _marvelous_ hack by FireFly, the Template Backup System--this did for me more than i ever dreamed possible to update all my 8 styles...

https://vborg.vbsupport.ru/showthread.php?s=&threadid=33072&highlight=template+backup+system

DaPro
02-21-2003, 10:42 PM
Hey, I got another problem, I installed everything good, but when I go to my user cp area, the fields are empty! I ran all the install files, and ther still are empty drop downs even though the admin area says they are there, can anyone help me?

Mystic Gohan
02-21-2003, 10:48 PM
I dont mean that (or so I think anyway) I mean lets say I battle you in a battle. We are the same level and same stats.

I punch you and take away 4 HP
You punch me and take away 8 HP
I punch you and take away 7 HP
You punch me and take away 5 HP

Like that even though the same levels and stats more or less damage is recieved so it isnt a battle on who has more HP

Moreliator
02-21-2003, 11:23 PM
Bitsy, yeah that worked fine with the templates, thanks.

Heh, well I have one more thing to ask (sorry) - I've installed your hack about 10 times now. Every once in a while, when I install it and begin editing the default weapons, once I press save changes, and it brings me back to the editing page, all of the weapon names and descriptions are cut off... its really weird. Like one of the items becomes "d Sword" instead of Broad Sword... and the tables start getting really screwy. Would this be a template problem?

Vivi Ornitier
02-22-2003, 01:47 AM
Bitsys, do u have any updated screenshots, or are the oens in the beginning of thread the most updated.

Bitsys
02-22-2003, 02:10 AM
Originally posted by DaPro
Hey, I got another problem, I installed everything good, but when I go to my user cp area, the fields are empty! I ran all the install files, and ther still are empty drop downs even though the admin area says they are there, can anyone help me?

Try clicking on the DB Fix link in the admin cp. Run the script. Let me know what happens.

Originally posted by Mystic Gohan
dont mean that (or so I think anyway) I mean lets say I battle you in a battle. We are the same level and same stats.

I punch you and take away 4 HP
You punch me and take away 8 HP
I punch you and take away 7 HP
You punch me and take away 5 HP

Like that even though the same levels and stats more or less damage is recieved so it isnt a battle on who has more HP
I told you wrong last time. What I meant to say was that the total damage is +-25% for weapons. That is after everything is factored into the equation, including extra attack for you, extra defense for the defender, etc. This makes the damage vary between hits. Also, fists will do a minimum of 5 damage because it isn't fun doing 1 HP of damage for 60 turns. Here is an example:

The formula for fist damage is
floor(log10($level) * 30 + rand(-(int)($level * .15), (int)($level * .15))) + 1;

Let's say that my level is 20. Then:
Fist damage = log10(20) * 30 + rand(-(int)(20 *.15), (int) (20 *.15))
Assuming the random function generates the number 2:
Fist damage = 1.301 * 30 + 2
Fist damage = 41.03
Fist damage = 41

Now, if rand had been -2, then the fist damage would have been 37. This is a difference of 4 (41 - 37). 4 is approximately 10% of the average of the two numbers. Since the maximum value that can be returned by the random function is 3, and the lowest is -3, this means that on average, there will be a 7-10% difference between each hit with one's fists.

Of course, this effect only kicks in at the higher levels. At lower levels, +-15% of 5 won't matter, since the values are rounded down by the floor function.

If you want to make it more random, then change the .15 to a higher number, say .60. The fist damage function is located near the top of battleupdate.php and is clearly labeled.


Originally posted by Moreliator
Bitsy, yeah that worked fine with the templates, thanks.

Heh, well I have one more thing to ask (sorry) - I've installed your hack about 10 times now. Every once in a while, when I install it and begin editing the default weapons, once I press save changes, and it brings me back to the editing page, all of the weapon names and descriptions are cut off... its really weird. Like one of the items becomes "d Sword" instead of Broad Sword... and the tables start getting really screwy. Would this be a template problem?

Hmm, I don't think it is a template problem. Did you undo the database queries before re-installing each time? If you refresh the items page, do the names and descriptions go back to normal?

Originally posted by Vivi Ornitier
Bitsys, do u have any updated screenshots, or are the oens in the beginning of thread the most updated.

The ones at the beginning are all I have right now. Unfortunately, they are 3 months old. When I release the final version, I will also release some final screenshots. Until then, I won't be making new ones since some things may still change slightly.

Moreliator
02-22-2003, 02:46 AM
Thanks bitsy!

Say, is there an easy way to import your RPG settings to another board (excuse me for my ignorance)... Like a template upload or something?

Also, just a quick question regarding a user's character... are there any penalties for switching characters (like XP loss or level loss) or can users constantly change characters without any consequences? If this is the case, is there anything stopping a user from buying an item with an allowable RPG type and then switching types, illegaly using an item with an RPG type he shouldn't be? Hopefully thats clear enough, if not I'll expand on the question.
Thanks for your quick and thorough answers bitsy.

chrisz
02-22-2003, 02:56 AM
Hey how can I close my itemshop?
I am adding a idea and closed the battle but how do I do the same to the Itemshop???

xxskullxx
02-22-2003, 01:06 PM
Originally posted by Moreliator
Bitsy, yeah that worked fine with the templates, thanks.

Heh, well I have one more thing to ask (sorry) - I've installed your hack about 10 times now. Every once in a while, when I install it and begin editing the default weapons, once I press save changes, and it brings me back to the editing page, all of the weapon names and descriptions are cut off... its really weird. Like one of the items becomes "d Sword" instead of Broad Sword... and the tables start getting really screwy. Would this be a template problem? Are you using PHP 4.3.0? That's a known problem with it. Try updating it.

DaPro
02-22-2003, 01:38 PM
Hey bits, I ran it like you asked it says this:

Populating items_user database
No IDs were inserted.
Done with the items_user database.
Populating battle_stats database
No IDs were inserted.
Done with the battle_stats database.
Fix done.

And it doesn't work. I really need help with this, cause I have no idea what any of that means, Noo B.

DaPro
02-22-2003, 01:44 PM
Itemshop items have always been ok, just clases and what not not working, it is really weird, and when I ran the install again, it worked like I installed it for the first time, but when I went to user cp, still empty drop downs. ran the db fix 3 times, same response and no change, please help.

PSI|Dr-X
02-22-2003, 04:19 PM
Idea till the next version?

geniuscrew
02-22-2003, 05:50 PM
Originally posted by Bitsys


Heh, don't forget to turn it back on if you turn it off ;)




I'll try to remember ;)

Originally posted by Bitsys

I am pretty sure it doesn't use more bandwidth, however it will use up a little more of the server's resources.



'Twas just a guess :P


Keep up the good work Bitsys!

Darkwaltz4
02-22-2003, 06:12 PM
to moreilator: no, no penalties, and if a person is 'illegally' using an item not for their type, itll say so im the battle arena, and not allow usage

to close the itemshop (which closes the bank and donating)
find in itemshop.php,


require('./global.php');


and put right after it,

$battleopt = $DB_site->query_first("SELECT * FROM battle_options");
If ($battleopt[ison] == 0 and $bbuserinfo[usergroupid] != 6) {
$message = "The Itemshop has been Temporarily Disabled. Contact Yor Board Administration for more information.";
eval("dooutput(\"".gettemplate('battle_userinbattle')."\");");
exit;
}


a few things, ive made it so that if you are an admin, it overrides the 'off' settings, and you can change what the message displays.

Mystic Gohan
02-22-2003, 07:39 PM
I think there should be like a rafle thing that all the members that pay like so much can get a large sum of money when ypi choose. I think there is hack like this for Lesane's Store could that be ported to this hack?

sonic3d
02-22-2003, 10:38 PM
i was wondering can some1 (it can be ne1) make a page where it will list all the members with the rpname, lvl, class, alignment, element. i think its very easy to do.

l8er
sonic

geniuscrew
02-22-2003, 11:07 PM
Originally posted by sonic3d
i was wondering can some1 (it can be ne1) make a page where it will list all the members with the rpname, lvl, class, alignment, element. i think its very easy to do.

l8er
sonic

Wouldn't that slow down the loading of the page? o.O

sonic3d
02-22-2003, 11:37 PM
well it can be in members of 20 or something.

l8er
sonic

Colon33
02-23-2003, 12:33 AM
How stable is this version yet? My members are really eager :):)


Are there any MAJOR bugs with it yet?

chrisz
02-23-2003, 12:46 AM
It works fine on my forum.
Some little bugs but they have all been fixed by the great Bitsys.
Thnx DarkWaltz your always a big help ;)
And yes about listing the RPG members...
Like how there is the memberlist can you make one of those except they are RPG characters?
Thnx a bunch everyone.
EDIT: How do I make it when they go to the Itemshop it automaticly take it to the items available in their Item Type like generic, ranger or whatever.
Like at DarkWaltz forum.

Bitsys
02-23-2003, 01:29 AM
Originally posted by Moreliator
Thanks bitsy!

Say, is there an easy way to import your RPG settings to another board (excuse me for my ignorance)... Like a template upload or something?

Not really.

Originally posted by Moreliator
Also, just a quick question regarding a user's character... are there any penalties for switching characters (like XP loss or level loss) or can users constantly change characters without any consequences?
They can switch constantly with no penalties.

Originally posted by Moreliator
If this is the case, is there anything stopping a user from buying an item with an allowable RPG type and then switching types, illegaly using an item with an RPG type he shouldn't be? Hopefully thats clear enough, if not I'll expand on the question.
Thanks for your quick and thorough answers bitsy.
If they have an item that is meant for a different type, then they will get an error message in battle telling them to sell the weapon. They won't be able to use the weapon.

Originally posted by chrisz
Hey how can I close my itemshop?
I am adding a idea and closed the battle but how do I do the same to the Itemshop???
Do what Darkwaltz4 said.

Originally posted by DaPro
Itemshop items have always been ok, just clases and what not not working, it is really weird, and when I ran the install again, it worked like I installed it for the first time, but when I went to user cp, still empty drop downs. ran the db fix 3 times, same response and no change, please help.

Installing it more than once without uninstalling first is very bad. When you do this, it sometimes adds the code edits more than once. It also adds all of the items more than once, and has the possibility to add the classes/types more than once. This will make the hack function in an unpredictable way. When I went to your itemshop, I noticed that the items were installed 3 times. That's not good.

Before installing this hack, you should have saved copies of the .php files that were edited. Re-upload these original files in order to remove the hack. Go back to vbhacker. Start to install the hack. This time, however, don't run the template edits, don't run the new templates, and don't run the database queries. Only do the file edits. Make sure you record what goes wrong, if anything. Vbhacker will tell you if something goes wrong, make sure to pay attention.

Back to the emtpy drop downs. Go back to vbhacker and select my hack. Before clicking on the continue button, make sure you click the radio button that says "Generate a text file". After doing this, click the continue button. It should give you a text file. In this text file, look for the edits that are done to member.php. Once you find them, try to manually apply them to member.php. If they are already there, then don't re-apply them.

Originally posted by PSI|Dr-X
Idea till the next version?

Nope.

Originally posted by Mystic Gohan
I think there should be like a rafle thing that all the members that pay like so much can get a large sum of money when ypi choose. I think there is hack like this for Lesane's Store could that be ported to this hack?

I am not familiar with that hack. I guess it could be ported with minimal effort. I really don't know though.

Originally posted by sonic3d
i was wondering can some1 (it can be ne1) make a page where it will list all the members with the rpname, lvl, class, alignment, element. i think its very easy to do.

l8er
sonic

That seems fairly easy to do. It would require some more templates though.

Originally posted by Colon33
How stable is this version yet? My members are really eager


Are there any MAJOR bugs with it yet?

Its fairly stable. There will be at least 3 bug fixes in the next version though. There have been well over 40 bug fixes in the past, from version 0.50 to the current version.

chrisz
02-23-2003, 01:33 AM
Ok sounds cool what about my last post bitsys?

Vivi Ornitier
02-23-2003, 04:13 AM
when's the summon thing com eout? my members are too hyped about it

chrisz
02-23-2003, 04:23 AM
Yeah I know.
Bitsys came on a few times but I didnt think he noticed the posts I really wanna finish all I need is the summons, and some small requests that I made like RPG memberlist and the Itemshop mod that Darkwaltz has.

Bitsys
02-23-2003, 01:16 PM
Originally posted by chrisz
EDIT: How do I make it when they go to the Itemshop it automaticly take it to the items available in their Item Type like generic, ranger or whatever.
Like at DarkWaltz forum.

Originally posted by Darkwaltz4
all basically done by tacking ?itemtype=$bbuserinfo[rpgtype] to all itemshop.php urls.

From https://vborg.vbsupport.ru/showthread.php?postid=347710#post347710

I guess that is how he did it. He can probably write you some instructions or something if you need them.

chrisz
02-23-2003, 01:23 PM
Ok thnx I will wait for him to post.
Can you make the RPG memberlist Bitsys?
EDIT: Also Ithink that has alreay been answered but anyways..
Is there anyway to make the person who goes first random?
EDIT: Also how do I add the users avatar next to what his says while battling?

Bitsys
02-23-2003, 01:55 PM
Originally posted by chrisz
Ok thnx I will wait for him to post.
Can you make the RPG memberlist Bitsys?
Not right now.

Originally posted by chrisz
EDIT: Also Ithink that has alreay been answered but anyways..
Is there anyway to make the person who goes first random?
Not really. I wouldn't suggest doing it either. The reason why the battle starter doesn't get to go first is so that the person who is challenged doesn't get roped into a battle and die without getting a chance to fight. It seems more fair this way.

Originally posted by chrisz
EDIT: Also what file do I edit the stuff they say during battle like
Username taunts or Username misses Username gains 15ap?
All of that is in battleupdate.php.

chrisz
02-23-2003, 01:57 PM
Ok I found that how do I add the persons avatar next to what they said during battle?

Bitsys
02-23-2003, 02:40 PM
Originally posted by chrisz
Ok I found that how do I add the persons avatar next to what they said during battle?

In battlefight.php, find:
/*
$owneravatarurl=getavatarurl($ownerstats[userid]);
$oppavatarurl=getavatarurl($oppstats[userid]);
if (isset($owneravatarurl) and !empty($owneravatarurl)) {
$owneravatar = "<img src=\"$owneravatarurl\"></img>";
} else {
$owneravatar = "<br>";
}
if (isset($oppavatarurl) and !empty($oppavatarurl)) {
$oppavatar = "<img src=\"$oppavatarurl\"></img>";
} else {
$oppavatar = "<br>";
}
*/
and change it to:

$owneravatarurl=getavatarurl($ownerstats[userid]);
$oppavatarurl=getavatarurl($oppstats[userid]);
if (isset($owneravatarurl) and !empty($owneravatarurl)) {
$owneravatar = "<img src=\"$owneravatarurl\"></img>";
} else {
$owneravatar = "<br>";
}
if (isset($oppavatarurl) and !empty($oppavatarurl)) {
$oppavatar = "<img src=\"$oppavatarurl\"></img>";
} else {
$oppavatar = "<br>";
}


Then, in the battle_postbit and battle_postbit2 templates, add $owneravatar where you want the owner's avatat and $oppavatar where you want the opponent's avatar.

I have not tested this in a long time, so it may not work. Also, doing this will add at least 2 queries to battlefight.php.

chrisz
02-23-2003, 03:07 PM
ok thats fine. All I need is that Itemshop mod by Darkwaltz and i can open :(

Mystic Gohan
02-23-2003, 03:47 PM
chrisz you didnt come up with the idea of member list of RPG stats that was sonic3d

chrisz
02-23-2003, 03:51 PM
I didnt say i did. I said i would like it.
Also is there any way to limit the Battle Sytem and Itemshop to certain member groups. (I need this or my whole RPG is ruined)
I dont want people who dont want to play the RPG to use them so is there any way I can do this?

Bitsys
02-23-2003, 04:36 PM
Originally posted by chrisz
I didnt say i did. I said i would like it.
Also is there any way to limit the Battle Sytem and Itemshop to certain member groups. (I need this or my whole RPG is ruined)
I dont want people who dont want to play the RPG to use them so is there any way I can do this?

At the top of battleupdate.php, battlefight.php, battle.php, and heal.php you will find code that checks to see if the user is in the correct usergroup. It looks something like:
If ($bbuserinfo[userid] != 0 && $bbuserinfo[usergroupid] != 3 && $bbuserinfo[usergroupid] != 4 && $bbuserinfo[usergroupid] != 1){

All you need to do is add the usergroup that you don't want to have access to the rpg battle system. Like this:

If ($bbuserinfo[userid] != 0 && $bbuserinfo[usergroupid] != 3 && $bbuserinfo[usergroupid] != 4 && $bbuserinfo[usergroupid] != 1 && $bbuserinfo[usergroupid] != XX){

replace XX with the ID that you don't want to have access. When someone from this usergroup goes to the pages, they will get a no permission screen.

If you want to cut off access to other files, then it will take a little bit more work. You will have to add similar code to itemshop.php, rpgcp.php, and rpgmanual.php. If you don't want them to be able to select the different races/classes/genders in their profile, then you will have to edit member.php to show a simple "You cannot access this feature" message in all of the drop-down boxes.

Mijae
02-23-2003, 06:36 PM
Bitsys, how safe is the battle hack for a public board?

Moreliator
02-23-2003, 08:15 PM
Bitsy,
Then would it be possible to add a function that causes a user's character to lose lets say 5 levels if they switch their character?

Thanks again bitsy, you've outdone youself!

chrisz
02-23-2003, 08:23 PM
Well when i used the latest version there were only little bugs it worked fine after I fixed them.
By the way thnx again Bitsys
EDIT: Is there anyway to have twin battles like 2 vs 2?
Say there is one team and they do whaever they do normally but the can pick who to attack and they cant attack until they are both ready. Then the other team goes and so on and so forth.

Darkwaltz4
02-24-2003, 12:14 AM
ahhh the itemshop--my fav part of the whole rpg hack, and yeah...ive done tons to it....*sits down and takes out pipe*

since itemtype is determined by rpgtype from class, simply place $bbuserinfo[rpgtype] at the end of any link to the itemshop. so, when clicking it, you auto-go to your type's itemshop. u may want to go into itemshop.php and add that url ending to all the redirects too, so when someone purchases, sell, whatever, it kicks them to their itemshop. there are also a few templates you can do this to as well, like the bank 'itemshop' link in the navline

i did this because my members never found where they could get their items from. clicking the itemshop returned them to the empty page, and some confusing links at the bottom. i got rid of the links, and added to the itemshop.php page, to figure out what type ppl were, and it would display it at the top of the page. 'You are currently a Magician Type' for instance. i also had to make a separate display variable for which shop you are in, so it would say something like 'As a Fighter Type, you have these items available for purchase'
later, i added a redirect link next to the 'ur a whatever type' in case you werent in your itemshop. at the very bottom of the page, i have links to the other itemshops, cause ppl like to know what theyre missin

i wrote an itemshop faq (which needs rewriting now...) so i included a link to the top to avoid questions. if someone was registered, it would say 'edit ur character' under the what type you are. when not registered, it would say 'You are currently a person without a type' and there would be a register-now line under it. tons of fun little edits. i also worked on my editprofile page, and added a target to it, so that i could post links to directly edit character stuff....(cause absolutely no one could figure it out -_-)

also, u should set up a rpg type which has no classes on it, called 'Certain Type' (so it says, you need to be a certain type to purchase) and have all items available through it--this creates a 'see-all' store, so anyone without a character can see it, or with direct links-- to do this, go into itemshop.php, and find where it says

if($itemtype == "")
$itemtype = "0";


and add the typeid of your combo itemshop...(so its not 0)

with all that said and done....heres my itemshop...(326 items, 14 categories, all item types available)

http://ffgods.ffextreme.com/forums/itemshop.php

in regards to the summons addon, i _somehow_ broke battlefight.php, but there are 2 weird things going on with it: even the original file says this error, and it says the error is on the line AFTER ALL THE OTHER LINES (past ?>) so...-_- ill gotta hunt that out...

mli
02-24-2003, 12:24 AM
Ok, I installed this hack and I have two major problems:

1. The RPG ControlPanel does not work correctly. There are no statistics. Everything is blank. It's like it doesn't actually read the user's stats. It can't find them or something....

2. The healing center does not work for some people including me. It says +5% HP $11 and I choose that. Then I click Heal me. And it doesn't do anything...

mr e
02-24-2003, 12:58 AM
darkwaltz, that means there is a missing } somewhere in the code

Moreliator
02-24-2003, 12:59 AM
Bitsy, it appears I MAY have found a glitch, too.

It goes back to that problem I had where sometimes when you go to the RPG Cetner (rpgcp.php) it doesn't recognize you, and it just has a bunch of apostrophes "S's" instead of the persons name.

Well I've done further testing, and it turns out that it is certain classes that make this happen. Ive installed the hack many times, sometimes with default classes, sometimes with my own, and each time something like this happens. Usually it is just a couple classes/characters. In some cases, I was able to fix the error by adding the character in the class causing trouble to the FEMALE class. When I added female counterparts to all the male classes that would not work, BINGO, it sovled many, but there are still some that do not work. It appears that all the female classes have always worked.

Anyway, ihopefully that information helps you somewhat.

Darkwaltz4
02-24-2003, 01:01 AM
Originally posted by mr e
darkwaltz, that means there is a missing } somewhere in the code

no its not, conditionals with only one thing to do, dont require braces ;)

also, i revised the donation queue, it no longer has that nasty reset button, and now displays names, and is generally nicer ;) and i revised the installation page, and moved it into moderate.php, so that the 'ur not an admin!' thing doesnt bother ppl--

mr e
02-24-2003, 01:24 AM
if it says there's an error past the last line of your code then in my experiance it's a missing }

Darkwaltz4
02-24-2003, 01:31 AM
number 1, that is how it appears in the original files by bitsys
number 2, i said change the "0" to "#" which is your 'combination type id'

so, just change that number, there is nothing to change beyond that

Davey
02-24-2003, 01:40 AM
Just one little thing, it seems to add the Points and RPG Name fields twice in the admin edit users section...

Dave.

Bitsys
02-24-2003, 01:43 AM
Originally posted by v0id
Bitsys, how safe is the battle hack for a public board?

It is relatively safe. I would wait for the final version so that I can stamp out all of the bugs.

Originally posted by Moreliator
Bitsy,
Then would it be possible to add a function that causes a user's character to lose lets say 5 levels if they switch their character?

Thanks again bitsy, you've outdone youself!
It is possible, but not very feasible.

Originally posted by chrisz
EDIT: Is there anyway to have twin battles like 2 vs 2?
Say there is one team and they do whaever they do normally but the can pick who to attack and they cant attack until they are both ready. Then the other team goes and so on and so forth.

That would involve re-working a lot of the battle system. I don't think it is feasible.

Originally posted by Darkwaltz4
but there are 2 weird things going on with it: even the original file says this error, and it says the error is on the line AFTER ALL THE OTHER LINES (past ?> ) so...-_- ill gotta hunt that out...
Make sure there aren't any spaces after the ?> .

Originally posted by mli
Ok, I installed this hack and I have two major problems:

1. The RPG ControlPanel does not work correctly. There are no statistics. Everything is blank. It's like it doesn't actually read the user's stats. It can't find them or something....

That's one of the bugs that will be fixed in the next version. This bug also occurs in the Member Profile Add-on. Both will be fixed in the next version.

Originally posted by mli
2. The healing center does not work for some people including me. It says +5% HP $11 and I choose that. Then I click Heal me. And it doesn't do anything...

What are your battle options set to, which monetary system are you using (itemshop or Lesane's), what is your HP/MA, and how much money do you have in the bank/pocket/store?


Originally posted by Moreliator
Bitsy, it appears I MAY have found a glitch, too.

It goes back to that problem I had where sometimes when you go to the RPG Cetner (rpgcp.php) it doesn't recognize you, and it just has a bunch of apostrophes "S's" instead of the persons name.

Well I've done further testing, and it turns out that it is certain classes that make this happen. Ive installed the hack many times, sometimes with default classes, sometimes with my own, and each time something like this happens. Usually it is just a couple classes/characters. In some cases, I was able to fix the error by adding the character in the class causing trouble to the FEMALE class. When I added female counterparts to all the male classes that would not work, BINGO, it sovled many, but there are still some that do not work. It appears that all the female classes have always worked.

Anyway, ihopefully that information helps you somewhat.

That was reported earlier and will be fixed in the next version. Thanks for reporting it :)

Originally posted by Davey
Just one little thing, it seems to add the Points and RPG Name fields twice in the admin edit users section...

Dave.

Could you explain a little more?

chrisz
02-24-2003, 05:34 AM
Thnx DW4 One more thing how did you do the Your a $rpgtype. blan bla bla?
Its really neat thnx again.
And as for the summons... IM GOING CRAZY!!! *Calms Down sips coke* :D

VeoMorphine
02-24-2003, 10:15 AM
Originally posted by Moreliator
Bitsy, it appears I MAY have found a glitch, too.

It goes back to that problem I had where sometimes when you go to the RPG Cetner (rpgcp.php) it doesn't recognize you, and it just has a bunch of apostrophes "S's" instead of the persons name.

Well I've done further testing, and it turns out that it is certain classes that make this happen. Ive installed the hack many times, sometimes with default classes, sometimes with my own, and each time something like this happens. Usually it is just a couple classes/characters. In some cases, I was able to fix the error by adding the character in the class causing trouble to the FEMALE class. When I added female counterparts to all the male classes that would not work, BINGO, it sovled many, but there are still some that do not work. It appears that all the female classes have always worked.

Anyway, ihopefully that information helps you somewhat.

Im having the same EXACT problem. I have it all on local host right now though so i cant show you the board.

If for some reasen you cant manage to see that problem i'll send you my vbb files and DB with an admin user and pass.

But like bitsys said it'll be fixed in the next version. Any ETA on the next version? B/c this class bug is a bug that makes the RPG system almost unusable. If you can do you think you can give us a temp fix?

Also another idea. There are some people on my board that dont like seeing the RPG hack stuff :P. Maybe in the next version can you include a option to turn off the rpg hack or just use a few diferent templates so it does not appear.

chrisz
02-24-2003, 10:45 AM
Ok everything is good so far, Bitsys have you shortened that Auto update yet? and have you made the RPG memberlist?

sonic3d
02-24-2003, 03:59 PM
chrisz, Bitsys said he wont be doing the rpg memberlist(i think)

l8er
sonic

geniuscrew
02-24-2003, 05:25 PM
hey Bitsys

Not to rush you or anything, but do you think there will be status' such as sleep, silence etc, in future versions?

Bitsys
02-24-2003, 06:09 PM
Originally posted by VeoMorphine
Any ETA on the next version? B/c this class bug is a bug that makes the RPG system almost unusable. If you can do you think you can give us a temp fix?

No ETA yet. Can't give you a temp fix until I am sure that it actually fixes the problem.

Originally posted by chrisz
Ok everything is good so far, Bitsys have you shortened that Auto update yet? and have you made the RPG memberlist?

Haven't shortened it yet. I fix bugs before I work on add-ons. I have no plans to make the memberlist at this time.

Originally posted by geniuscrew
hey Bitsys

Not to rush you or anything, but do you think there will be status' such as sleep, silence etc, in future versions?

Nope. The way I have planned out status modifiers would take too long to code and debug.

Dribbles
02-24-2003, 06:11 PM
keep up the great work :)

Darkwaltz4
02-24-2003, 07:40 PM
Originally posted by chrisz
Thnx DW4 One more thing how did you do the Your a $rpgtype. blan bla bla?
Its really neat thnx again.
And as for the summons... IM GOING CRAZY!!! *Calms Down sips coke* :D

okay, these are the little things ive added--some were a tad static, like this one...(it was done all the way @v .56)

first, figure out what the typeids are for whatever type u wanna display...

then run if loops at the end of itemshop.php, sorta like

if($bbuserinfo[rpgtype] == 1) {
$curtype = "Fighter";
} elseif($bbuserinfo[rpgtype] == 2) {
$curtype = "Magician";
} elseif($bbuserinfo[rpgtype] == 3) {
$curtype = "Loner";
} elseif($bbuserinfo[rpgtype] == 4) {
$curtype = "Special";
} else {
$curtype = "Person without a";
}


Then, for display on which ur on...


if($itemtype == 1) {
$distype = "Fighter";
} elseif .......


then in the template 'itemshop'
add wherever you want, however you want:
You are Currently a $curtype Type
(if ur missing a type, or are not registered, itll say 'You are Currently a Person without a Type' ;))

and then
'As a $distype, you have these items available for purchase'

now, this is a very rough desrciption of what i did, plus i added a bunch of other variables, which youd recognize if you were registered and looking at the itemshop



oh and bitsys, heres the actual error:

Parse error: parse error, unexpected $ in /home/virtual/site19/fst/var/www/html/forums/battlefight.php on line 529

but like i said, that line is directly after the ?>, and there are no spaces after it...
now, if i move the ?> up or down, the line changes with it...and that particular error is with my edited file ^, but like i said, it now does it with the original......and i dont know why, it just started doing that 3 days ago, twas perfect up til then

chrisz
02-24-2003, 08:13 PM
Thnx DW you rock

jazza
02-24-2003, 08:27 PM
yo bitsy, great job so far, i just have one problem, i cant use items....

i have baught items, but whilst in a battle it shows them, but wont let me use them...

any idea whats up ??

sonic3d
02-24-2003, 08:28 PM
i get this error when i try to delete a category.

Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: ALTER TABLE items_user DROP item8, DROP points8, DROP description8, DROP icon8, DROP itid8
mysql error: Can't DROP 'item8'. Check that column/key exists

mysql error number: 1091

Date: Monday 24th of February 2003 05:23:10 PM
Script: www.rpgadvance.com/admin/itemadmin.php
Referer: http://www.rpgadvance.com/admin/itemadmin.php?action=deletecat&cateid=8

how do i fix this?

l8er
sonic

chrisz
02-24-2003, 08:43 PM
Strange errors... I wonder why some get them and other dont??

VeoMorphine
02-24-2003, 08:47 PM
dono, this release has alot of bugs though, May be better off waiting for the next one. Right now to me it seems unusable right now.

chrisz
02-24-2003, 09:04 PM
Not mine all the bugs are fixed for me