[BETA] Level Mod: MK III

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
DaWooster
Registered User
Posts: 54
Joined: Wed Oct 12, 2005 9:37 pm

[BETA] Level Mod: MK III

Post by DaWooster »

Mod Title Level Mod
MOD Description: Places RPG inspired stats in viewtopic and viewprofile
MOD Version: Possibly 2.3.0, or 3.0.0 depending on how one looks at it. The Mod was origionally written by Jon Borzilleri, who then dropped the ball. Ycl6 was the next person to pick the project up. But again put the project to rest. The last version by Ycl6 was 2.2.0; that was the version that I based my modifications on.

MOD Download: http://www.myfilestash.com/userfiles/Da ... velmod.txt (rename to .zip)

Not sure if this is the best way to do this, seeing as this is Ycl6's work plus that of Jon Borzilleri and a few other people in addition to my own. But *Shrug* here goes nothing.

This mod provides the following stats

Class: Determined by a combination of level and skill.
Level: Determined by post count
Skill: Ratio of current HP to Max MP
HP: Determined by the average posts per day.
MP: Ratio of how much a user posts to how long they've been around.
EXP: Determines level and based on post count


Anyways, this mod's been passed around quite a bit. But here are some changes I've made from Ycl6's version.

MP: MP is now no longer Maxed out or Nulled due to a calculating bug.

Class: Classes are cacluated a bit more diversly. The following link shows a chart at the bottom of what classes there are and what level one needs to be to earn them.

(New) This mod is compatible with the gender hack, not essential, but it will let the ladies have more appropriate avatars... or not if you look at the mime. The current avatar set is from Final Fantasy Tactics.

Image

Element: Before Element was based upon class, IE, if you were a knight then your element was holy, cut and short. In this version, the user can choose his/her own element via pull down menu in their profile.

(New) Status Effects: Something I'm still trying to fix. When a user has a particular status effect, it may or may not effect current HP, MP, Skill, or Class Avatar Background Color.

Current Status Effects:

Class Level Up: For the one post duration when a user level's up their class. HP and MP are Maxed.
Level Up: For the one Post duration when a user only levels up, HP and MP are Maxed

Invis: If a user is set to invisible this will be the labed status effect, it doesn't change if a user is on the forums or not, thus privacy is mantained.

Normal: User is on the Forums.

Haste, Cram, Poison, Regen et al: Random Status Effects that periodically replace Normal.

Inn: User isn't on the forums at the moment.

Mute: If a user isn't on the forums yet is on AIM, this is the status. Seems slightly buggy if a user doesn't have AIM defined.

Slow: If a user isn't on the forums or on AIM but are on YIM, then this is the status.

Here's some more pics...

In profile...
Image

In Topic...
Image
Rebell
Registered User
Posts: 93
Joined: Tue Nov 08, 2005 8:31 am
Contact:

Post by Rebell »

I like this MOD but in the install.txt there is no real info about version :

## MOD History:
##
## 2003-05-18 - Version 1.0.0
## - First release
## 2003-06-09 - Version 1.1.0
## - Fix "trying to raise a non positive value" by Antony
## 2003-11-29 - Version 1.2.0
## - Add RPG element and RPG class image

So it confuses me a little bit.

But the added infos of your mod takes mutch space - so it would be cool to move this infod to the right and let the "normal" profileinfos left.
Could look like this :

Image

cya :wink:
OLDSKOOLDEMOMAKER FORUMS : http://kickme.to/osdm
make demos like in the good old days on amiga or c64 without programming knowledge !
DaWooster
Registered User
Posts: 54
Joined: Wed Oct 12, 2005 9:37 pm

Post by DaWooster »

Rebell wrote: I like this MOD but in the install.txt there is no real info about version :

## MOD History:
##
## 2003-05-18 - Version 1.0.0
## - First release
## 2003-06-09 - Version 1.1.0
## - Fix "trying to raise a non positive value" by Antony
## 2003-11-29 - Version 1.2.0
## - Add RPG element and RPG class image

So it confuses me a little bit.

But the added infos of your mod takes mutch space - so it would be cool to move this infod to the right and let the "normal" profileinfos left.
Could look like this :

Image

cya :wink:


Ah, version history, that was one thing I forgot to edit. What you saw was Ycl6's Version History Log from before I started adding my share to it.... Should be fixed now.

As for shifting it to the right side... I like to keep my mind open... but would that make the page awkward if the user already has some Post reformating mod?
Zypher
Registered User
Posts: 381
Joined: Fri Mar 12, 2004 7:04 am
Location: Australia
Contact:

Post by Zypher »

Uhhhhhh! I Love what you have done there. Cool graphics. And nice work too. :D :D :D
- Zypher

~Beware of the Darkness Within!~

Fully Loaded
DaWooster
Registered User
Posts: 54
Joined: Wed Oct 12, 2005 9:37 pm

Post by DaWooster »

Ah, thanks Zypher...

Oh and looking through the archives of the older mod. I rediscoved Ycl6's God Mod...

To place a God mod in this one...

Open inclucdes/level_mod.php

Find

Code: Select all

?>
Before Add

Code: Select all

//added for Level Mod (Mac)
if ( ($postrow[$i]['username'] == 'username' ) || $profiledata['username'] == 'username') {
   $level_classimg = ""; // Ha-ha. No Avatar For You!
   $level_status = "Haxor";
   $level_level = "SuperB";
   $level_hp = "MaX / MaX";
   $level_hp_percent = 100;
   $level_mp = "MaX / MaX";
   $level_mp_percent = 100;
   $level_exp = "MaX / MaX";
   $level_exp_percent = 100;
   $level_skillratio = "eXTreme";
   $level_classname = "<font color=red><b>Hero</b></font>";
}
//added for Level Mod (Mac)
And if you wanted it per rank and not per username...

Replace....

Code: Select all

if ( ($postrow[$i]['username'] == 'username' ) || $profiledata['username'] == 'username') {
With...

Code: Select all

if ( ($postrow[$i]['user_level'] == ADMIN ) || $profiledata['user_level'] == ADMIN ) {
Actually using that as a template you could base it off of anything really.
Rebell
Registered User
Posts: 93
Joined: Tue Nov 08, 2005 8:31 am
Contact:

Post by Rebell »

Ok - another try:

Perhap its possile to expand and collapse the race+avatar+skill infos likt this:

normal view:
Image

expanded view:
Image

cya :D
OLDSKOOLDEMOMAKER FORUMS : http://kickme.to/osdm
make demos like in the good old days on amiga or c64 without programming knowledge !
MrDSL
Registered User
Posts: 283
Joined: Thu Jul 15, 2004 1:52 am
Contact:

Post by MrDSL »

After I unzip the file and open the install file its all messed up and a bunch of lines are pushed way to the side..
MrDSL
Registered User
Posts: 283
Joined: Thu Jul 15, 2004 1:52 am
Contact:

Post by MrDSL »

I tried fixing it but its soo far off the edits get all messed up.
DaWooster
Registered User
Posts: 54
Joined: Wed Oct 12, 2005 9:37 pm

Post by DaWooster »

I'm not quite sure what you're saying. Are you telling me that the install file got corrupted? If so, is the php file also alright? And do the images look alright?
MrDSL
Registered User
Posts: 283
Joined: Thu Jul 15, 2004 1:52 am
Contact:

Post by MrDSL »

Its hard to explain but I had to open the .txt and copy the entire thing and then repaste it and now it looks fine..

Very weird but all other files appear to be fine..


Is it okay if I attempt to integrate this into the Profile Control Panel Mod?

I am assuming on the user_element setting its

none = 0
earth= 1
fire= 2

and so on correct?


thanks mod looks good..
MrDSL
Registered User
Posts: 283
Joined: Thu Jul 15, 2004 1:52 am
Contact:

Post by MrDSL »

Maybe you can see what I am talking about with a screenshot


screenshot
DaWooster
Registered User
Posts: 54
Joined: Wed Oct 12, 2005 9:37 pm

Post by DaWooster »

Hmm, those odd boxes are where I inserted a new line, so it looks like your computer can tell the difference between when I put a new line in, and when the origional document did, it just doesn't know what to do with it I suppose. I'm not sure how I'd fix that... except maybe turn the directions into a HTML file...

Sure Go ahead and intergrate it with Profile control panel.

Actually, the elements are defined in

templates/subSilver/profile_add_body.tpl

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
	<tr> 
	  <td class="row1"><span class="gen">{L_INTERESTS}:</span></td>
	  <td class="row2"> 
		<input type="text" class="post"style="width: 200px"  name="interests" size="35" maxlength="150" value="{INTERESTS}" />
	  </td>
	</tr>

#
#-----[ AFTER, ADD ]------------------------------------------
# Feel Free to Change these elements around.
# Toothpaste was added due to an on going gag that forced its way in here. Keep it if you want or not.
# Note the Obligitory "Captain Planet" Reference.
   <tr>
     <td class="row1"><span class="gen">{L_LEVEL_ELEMENT}: </span></td>
     <td class="row2">
<SELECT name="level_element"  value="{LEVEL_ELEMENT}">
<OPTION SELECTED> {LEVEL_ELEMENT}
<OPTION> None
<OPTION> Earth
<OPTION> Fire
<OPTION> Wind
<OPTION> Water
<OPTION> Heart
<OPTION> Ice
<OPTION> Holy
<OPTION> Dark
<OPTION> Toothpaste
</SELECT>     
     </td>
   </tr>
Ass for hiding and showing Stats... that sounds like a good idea. Though it might be better if it were changed slightly so the user controlled it in their profile control panel then in the topic. I'm not sure how good I'll be at making that up. But I'll take a stab.
Rebell
Registered User
Posts: 93
Joined: Tue Nov 08, 2005 8:31 am
Contact:

Post by Rebell »

Yes think about it.

EDIT: just searched the web and found this : http://www.thehottub.net/phpBB2/viewtopic.php?t=675

just go over the view user stats with your mouse - nice !

cya :D
OLDSKOOLDEMOMAKER FORUMS : http://kickme.to/osdm
make demos like in the good old days on amiga or c64 without programming knowledge !
MrDSL
Registered User
Posts: 283
Joined: Thu Jul 15, 2004 1:52 am
Contact:

Post by MrDSL »

I can't get it to work right with PCP :(
DaWooster
Registered User
Posts: 54
Joined: Wed Oct 12, 2005 9:37 pm

Post by DaWooster »

I don't think I've ever used Profile control panel before. Can you link me to the mod and maybe when I get the chance I'll take a stab at it?
Post Reply

Return to “[2.0.x] MODs in Development”