gurpreet Posted November 16, 2011 Share Posted November 16, 2011 Hey guys, I've been working on an upkeep mod for a while, but I've hardly been at it because I started my new job and it's killed me. This mod currently doesn't work properly, but sadly I can't point out what is wrong because I don't have the time or the attention needed to check through. The main problem is noted by // in the last part of the cron_day. I'd like to thank the IRC guys for helping me - Dominion, Nickson, Pitch_Black and Zanyx for their input for ideas and helping me fix a few bugs Run these queries: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Open up staff_items.php and find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. After add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Next find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. or You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. After add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Next find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And replace it with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Save that and close. Next open up inventory.php and find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. After that add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. After that add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Next find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. After add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Save that and close. Next open up header.php and find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. After add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Save that and close. Next open up staff.php and find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add after: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Check the next post for the next part. Quote Link to comment Share on other sites More sharing options...
gurpreet Posted November 16, 2011 Author Share Posted November 16, 2011 (edited) Next create a file called payupkeep.php and paste this in: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Next go to your index.php and add this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then display it like this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Finally open your cron_day.php and put this just before ?> You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Once again, if someone can help fix this up and help me with the last part a few lines above this I would be very grateful. Edited November 16, 2011 by gurpreet Quote Link to comment Share on other sites More sharing options...
gurpreet Posted November 22, 2011 Author Share Posted November 22, 2011 Bump. Still haven't had any time to complete this mod because I'm working overtime so if anyone can help with that last part it would be appreciated. Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted November 23, 2011 Share Posted November 23, 2011 What does it do? When a item, a weapon for example, is used then it gets damaged and you have to pay to keep it in good condition? Or is it just a general fee to keep your item. Quote Link to comment Share on other sites More sharing options...
gurpreet Posted November 23, 2011 Author Share Posted November 23, 2011 It is just a general fee. This is a basic version of my original goal, but as it grew I had to simplify it to this. Basically if you have 10x an item with 100 upkeep and 20 items with no upkeep, your total is 1000/day. 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.