Jump to content
MakeWebGames

[mccode] Medical Insurance / Hospital Bill


-Genocide-

Recommended Posts

It's been a while since most of you have seen or spoken to me, so I decided to make a little mod for us all to get reacquainted.

 

:::::Med Insurance / Hosp Bill Mod v1:::::

What it does:

When a user loses a fight or is attacked, not only do they go to the hospital, but they have a bill which they pay every night when the day cron runs, unless they have insurance.

insagent.php (for v1)

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

insagent.php (for v2)

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Edits for your attack files:

Find the query that send the user to the hospital, should look something like this:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Under that add this:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

In attacklost.php it should look like this:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add these queries to your daily cron:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

SQL:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

I coded this one the spot and didnt test any of it. If I missed anything or there are features you would like to see added, let me know and I'll fix it up.

Peace. :mrgreen:

**Edit**

Add this anywhere you would like it to display there medical bill.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Guest Anonymous

Re: Medical Insurance / Hospital Bill [FREE]

Ballpark problem here.... in the cron there is no protection against money going negative... or did I miss the obvious?

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