jimtsikos Posted June 10, 2011 Share Posted June 10, 2011 Hello guys, i am new in mccodes and i really want your help. I want to do new crimes for my web game and i really want to add stamina ιin health column. I want also change the xp bar for next level. I use mccodes lite. Can anyone help me? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
bineye Posted June 10, 2011 Share Posted June 10, 2011 Hi jim, welcome to MWG. Could you clarify a few things for me please? When you say "new crimes", do you mean simply adding the new crimes from the staff panel, or you want them to work entirely differently? What exactly do you mean by "stamina in health"? I don't understand. And, "change the xp bar", do you mean the amount of xp required to reach the next level, or the actual bar graphic from the header? Hope you enjoy your time here. :) Quote Link to comment Share on other sites More sharing options...
jimtsikos Posted June 10, 2011 Author Share Posted June 10, 2011 (edited) Hi jim, welcome to MWG. Could you clarify a few things for me please? When you say "new crimes", do you mean simply adding the new crimes from the staff panel, or you want them to work entirely differently? What exactly do you mean by "stamina in health"? I don't understand. And, "change the xp bar", do you mean the amount of xp required to reach the next level, or the actual bar graphic from the header? Hope you enjoy your time here. :) Thanks for your answer. for the firsst one i mean new quests. For the second one there is : Energy: 100% Will: 100% Brave: 5/5 EXP: 50% Health: 100% and i want to add stamina : 5/5 intelligent : 10/10 and i want them to increase when i level up... As for the third one imean the amount of xp required to reach the next level. The image i know how to change it. And one last thing. I want add a timer for brave with how long it is remaining for next brave to add and how can i change the fiiling time?. Thanks again a lot for your reply... Edited June 10, 2011 by jimtsikos Quote Link to comment Share on other sites More sharing options...
bineye Posted June 10, 2011 Share Posted June 10, 2011 New quests, as in missions? Search for missions using the search feature. I'm sure I saw a mod posted for that before. For new stats, you will need to add a new field in the table 'userstats' in your database, set a default for the starting amount (ie 10 for stamina or whatever), then update the insert query in the register.php where the other userstats are added. The amount of xp per level, there is a formula in the global_func.php (i think), called check_level() or similar, the formula for xp per level will be in there. To add a timer, you will need to use JS on your page, and although I know a little JS, I wouldn't feel comfortable telling you what to do for that. I am currently doing a personal project uing lite, so I think most of what I said is correct, but I don't have it open right now. But any difficulties, don't be afraid to message me. :) Quote Link to comment Share on other sites More sharing options...
jimtsikos Posted June 10, 2011 Author Share Posted June 10, 2011 Thanks a lot for your reply my friend. How can i update the insert query in the register.php?Can you give me an example? And one last thing can you tell me how to change brave refiill time? All that you say to me it was so helpful. Thanks again... Quote Link to comment Share on other sites More sharing options...
bineye Posted June 11, 2011 Share Posted June 11, 2011 Open your register.php, find where it says mysql_query("INSERT INTO userstats...."), and add your stat in the end. Brave refill, you will be able to change that in cron_5mins.php Quote Link to comment Share on other sites More sharing options...
jimtsikos Posted June 11, 2011 Author Share Posted June 11, 2011 Thanks a lot. Your information was so helpful... If i have anything else i let you know.. Quote Link to comment Share on other sites More sharing options...
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.