Kaien Posted March 20, 2011 Posted March 20, 2011 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? Quote
Diesl Posted March 21, 2011 Posted March 21, 2011 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. Quote
Kaien Posted March 25, 2011 Author Posted March 25, 2011 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.