Jump to content
MakeWebGames

Loanshark Mod


Recommended Posts

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.

 

loanshark.png

Link to comment
Share on other sites

  • 2 weeks later...
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.

 

  • Like 1
Link to comment
Share on other sites

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 ??

 

Link to comment
Share on other sites

  • 2 weeks later...
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 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...