Version: , by Cyricx
Developer Last Online: Dec 2011
Version: Unknown
Rating:
Released: 02-16-2005
Last Update: Never
Installs: 0
No support by the author.
I've got a problem that I think is a bug due to everything else going perfect for the install.
Basically, if you make like certain armor or weapons usable by only one class type.
Someone can edit their character to that class, buy those items and then change their class to whatever else they want and they will still keep the items.
For example, if you made a plate armor that only warriors could use and mages could only use robes.
The mage player could edit their character to a warrior, buy the plate armor and then edit their character back to a mage and they'd keep the plate armor on :dead:
I haven't seen anything about this posted except for one person that hinted at having found a major bug but hasn't seen a thread about it.
Thinking this is the one he was referring too...
Any ideas on how to fix it?
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Then again, if they do that they will have wasted their money.
The item is 100% unusable if the class does not match.
An error will occur in battle, saying "The [itemname] is for a different class. Please sell it."
Maybe I miss hacked something then because we didn't get that error in my testing.
Even made a class for mages and gave them a fireball spell, made sure the item type was only for mages and then switch to warriors, started a battle, jumped in and fireballed each other =/
We also made warriors, equipped with warrior only armor (positive of this as a mage the armor was not available to purchase in the item shop), then switch to mages. :dead:
Um I forgot all about this
Im gonna check it out later today, I promise.
Right now Im coding some on the installer for v3, then gotta go outside for a lil bit
EDIT: Ok I tried it out, and it is just ok in here.
In your battlefight.php, check if you have this piece of code:
Code:
Your $onehanded[onehanded] is for a different class. Please sell it.
Found it in battlefight.php, so you can only define specific classes of items for a class?
Because I have all my armor grouped up but then use the itemtype to determine which class can access them but it's not catching that or the weapons but they are grouped the same.
It looks like you have the code right in battlefight for what I'm thinking..
I've got all my weapons grouped up in a group of one-handed weapons.
Classes are spread out over various class types, then I use the "item type" to link which class types can use which individual weapon. However right now a mage type that can't buy a broadsword, can switch to a warrior type, buy it, switch back to a mage, and then attack with it...
Ok that there was abit confusing, so here's a detailed instruction of what I did to test this:
* Created a Battle Type called "Holy"
* Inserted White Mage into this type
* Created a Battle Type called "Unholy"
* Inserted Vampire into this type
* Edited Item Type, checking Air Racket off under Holy type only
* Edited Item Type, checking Blade off under Unholy type only
* Changed my Class to White Mage
* Purchased Air Racket
* Changed my Class to Vampire
* Went into battle