PDA

View Full Version : Class Hack


[D]Vincent
07-03-2002, 04:43 PM
I'm new to PHP and don't know much about it, but I'm trying to make a rpg class hack for my forums. This of course would be simple, but I'm making it to where they select a class in User CP and level up in it, so I was wondering how to make something equal something with two if's. Like I need it to be if $rpgclass equals Squire and $shwolevel equals 3 through 7 then it will equal something else like Knight or something. I would have just created multipule post fields and did it like
If ($showlevel == 3)
{
$post[fieldwhatever] = Knight
}
But then I have the porblem with postbit of getting them all into and I still don't know how to make it equal that level to another level. Can someone help?

I also posted this in PHP Help..

g-force2k2
07-03-2002, 05:33 PM
[D]Vincent if you're so persistent just go look at the pips and stars hack and use the codign and integrate your own classes into it instead of whatever it uses ;p

g-force2k2

[D]Vincent
07-03-2002, 07:19 PM
Heh, well this hack would be for RPG or RPG Gaming forums, just something to make it look more like an RPG

g-force2k2
07-03-2002, 07:46 PM
It's the same exact thing ;p not really a hack you just change variables thats all ;p

g-force2k2

Aerith_Freak
07-06-2002, 11:48 PM
<a href="http://forums.zcentralhq.com/forums/" target="_blank">http://forums.zcentralhq.com/forums/</a> < do you mean something like I have running at my forums? (you'll probably need to register to use it).

If so then find me on AIM or something and I'll give you a hand.