Jump to content
MakeWebGames

Recommended Posts

Posted

Is there a way where you can set ranks depending on your race such as:

Vampire:

Level F

Level E

Level D

Level C

(etc..)

Werewolf:

Class F

Class E

Class D

Class C

(etc..)

And it shows the user's race and what rank they are in that perticular race. An example is on the view user it would be:

 

Race: Vampire

Rank: Level C

Level: 20

Experience: 2015011

Clan: User is not in clan.

As opposed to someone who has another race, that would have:

Race: Werewolf

Rank: Class C

Level: 20

Experience: 200000

Clan: Demonsbane Pack

I would like to know if I would have to edit the global_func.php for this to happen and how.

**Side Note**

Can someone post how to make race pictures that can be put on the viewuser page as well?

Posted

It depends a bit on how players are achieving this new ranks. Do they reach a certain level and get a new rank? Do they complete a quest? Commit a certain number of crimes? etc.

But basically, you could add a column to the users table for their race and for their rank. Whenever they reach the point where they would update their rank, you would then update the rank table column. If you have it so when they reach a certain level, you can use global function in global_func.php that updates the users' stats when they level up (I forget what the function is called). Run a conditional statement such as

if($ir['level'] == 10)

{

Update race rank to Level F

}

It will most likely end up a bit more complicated, but that is the basic idea.

Posted

When they reach a certain level, they get a new rank.

X.X Im not good with the table adding. Would I have to add a column that is labeled rank and then add

rank name, required level, rank image?

That code looks like it could work if it was more detailed or more thought out. o.o

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...