corruptcity || skalman Posted January 4, 2024 Posted January 4, 2024 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
MajikalJoker Posted January 13, 2024 Posted January 13, 2024 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
Magictallguy Posted January 13, 2024 Posted January 13, 2024 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
corruptcity || skalman Posted January 14, 2024 Author Posted January 14, 2024 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
Uridium Posted January 16, 2024 Posted January 16, 2024 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
corruptcity || skalman Posted January 16, 2024 Author Posted January 16, 2024 No I forgot to include the database table for it in OP Quote
corruptcity || skalman Posted January 30, 2024 Author Posted January 30, 2024 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
Dustin Rohel Posted February 3, 2024 Posted February 3, 2024 (edited) Thanks Don't seem to work Edited February 3, 2024 by Dustin Rohel Failed SQL Quote
corruptcity || skalman Posted February 3, 2024 Author Posted February 3, 2024 (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, 2024 by corruptcity || skalman Quote
corruptcity || skalman Posted February 3, 2024 Author Posted February 3, 2024 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
corruptcity || skalman Posted February 3, 2024 Author Posted February 3, 2024 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
Dustin Rohel Posted February 3, 2024 Posted February 3, 2024 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
corruptcity || skalman Posted February 4, 2024 Author Posted February 4, 2024 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
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.