corruptcity || skalman Posted January 4 Share Posted January 4 Hi, to carry on into the new year here is another mod that I am giving out for free for any one to use. Like the other mods I'm again using w3.css which you can find by googling it. This mode lets you borrow money from a loan shark there is no limit of how much you borrow from him. each new loan will have a random interest % and daily payment due, with interest being between 15 - 30 and daily % being from 5 - 15. when a loan is taken out the interest amount due will be added to the top and the daily payment will come from that. If you don't have enough money to pay each day you will get your legs broken and spend time in hospital, you are able to pay the loan back early from within the mod. I have also included a photo of what it lookslike within game loanshark.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. cron_day.php - add this anywhere You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 1 Quote Link to comment Share on other sites More sharing options...
MajikalJoker Posted January 13 Share Posted January 13 I've wanted to do something like this, but im not there yet lol, great idea and its different. what all SQLs are needed? Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted January 13 Share Posted January 13 2 hours ago, MajikalJoker said: what all SQLs are needed? Based almost entirely on this query You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and a cursory glance at the rest of the code, I'm throwing a guess at this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 1 Quote Link to comment Share on other sites More sharing options...
corruptcity || skalman Posted January 14 Author Share Posted January 14 cheers MTG, not sure how I manage to forget the table then 🤦♂️have now got an export of the table or just copy/ paste above post. loan_shark(1).sql 1 Quote Link to comment Share on other sites More sharing options...
MajikalJoker Posted January 14 Share Posted January 14 thank you both! Quote Link to comment Share on other sites More sharing options...
corruptcity || skalman Posted January 15 Author Share Posted January 15 hey, no probs Quote Link to comment Share on other sites More sharing options...
Uridium Posted January 16 Share Posted January 16 On 1/13/2024 at 4:32 AM, Magictallguy said: Based almost entirely on this query INSERT INTO `loan_shark` (ls_id, `ls_userid`, `ls_amount`, `ls_interest`, ls_daily, `ls_remaining`, `ls_time`) VALUES ('', {$ir['userid']}, {$amount}, {$interest}, {$dailyPayment}, {$remaining}, {$time}) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and a cursory glance at the rest of the code, I'm throwing a guess at this: CREATE TABLE loan_shark ( ls_id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, ls_userid INT NOT NULL, ls_amount INT NOT NULL DEFAULT 0, ls_daily INT NOT NULL DEFAULT 0, ls_remaining INT NOT NULL DEFAULT 0, ls_time INT NOT NULL DEFAULT 0, FOREIGN KEY (ls_userid) REFERENCES users(userid) ); You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. he didnt add the query ?? Quote Link to comment Share on other sites More sharing options...
corruptcity || skalman Posted January 16 Author Share Posted January 16 No I forgot to include the database table for it in OP Quote Link to comment Share on other sites More sharing options...
Dustin Rohel Posted January 30 Share Posted January 30 You have SQL for this? Quote Link to comment Share on other sites More sharing options...
corruptcity || skalman Posted January 30 Author Share Posted January 30 On 1/16/2024 at 6:44 PM, Uridium said: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. yeah it's there or download the .sql file I've include then inside phpmyadmin import the file loan_shark(1).sql Quote Link to comment Share on other sites More sharing options...
Dustin Rohel Posted February 3 Share Posted February 3 (edited) Thanks Don't seem to work Edited February 3 by Dustin Rohel Failed SQL Quote Link to comment Share on other sites More sharing options...
corruptcity || skalman Posted February 3 Author Share Posted February 3 (edited) so did you try to do it with the sql tab or did you import it? I only ask as I just tried it on my webserver and it worked for me Edited February 3 by corruptcity || skalman Quote Link to comment Share on other sites More sharing options...
Dustin Rohel Posted February 3 Share Posted February 3 SQL tab Quote Link to comment Share on other sites More sharing options...
corruptcity || skalman Posted February 3 Author Share Posted February 3 I'm not sure I tested both on my webserver and both worked fine. have you tried importing the sql file? loan_shark(1).sql Quote Link to comment Share on other sites More sharing options...
Dustin Rohel Posted February 3 Share Posted February 3 I'll try again I got this far Quote Link to comment Share on other sites More sharing options...
corruptcity || skalman Posted February 3 Author Share Posted February 3 show me your code from the index function The loan Shark text is because you have a missing image and that is the alt text and that you need to create a backstory for your loan shark. Although you don't have to and can just remove Quote Link to comment Share on other sites More sharing options...
Dustin Rohel Posted February 3 Share Posted February 3 7 hours ago, corruptcity || skalman said: show me your code from the index function The loan Shark text is because you have a missing image and that is the alt text and that you need to create a backstory for your loan shark. Although you don't have to and can just remove I don't where what code and from where exactly Quote Link to comment Share on other sites More sharing options...
corruptcity || skalman Posted February 4 Author Share Posted February 4 in loanshark.php copy and paste your function index() code for me. The reason why you have the loan shark text is due to you not having an image so within the img tag alt text is being shown <img src='img/traders/loanshark.png' alt='Loan Shark' width='175' height='175' class='w3-image'> Also you haven't created a backstory but that bit of optional and can just remove that bit 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.