Jump to content
MakeWebGames

Recommended Posts

Posted

This is a very simple mod. It simply protects someone from ALL attacks for 5, 10 or 15 minutes. The time can be easily edited, a great donator item. Also good for noobs who are constantly getting attacked.

Run this SQL:

You're unable to view this code.

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

 

Open up attack.php

Find:

You're unable to view this code.

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

Underneath it add:

You're unable to view this code.

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

 

Next, open up header.php, find the bit where it displays the voting links, underneath it add:

You're unable to view this code.

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

 

Ok, now you will need to make 3 items. Bodyguard 1, 2 and 3 is what I've named them on my game. The first effect is on, however it will do nothing so simple click on the circle "Yes" when making all 3.

Now open up itemuse.php. Find:

You're unable to view this code.

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

Underneath it add:

You're unable to view this code.

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

 

Now open up cron_minute.php. Add:

You're unable to view this code.

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

 

That should be it. Enjoy the mod, its simple I know, so please no-one reply telling me how easy this is and anyone could have made it. Thank you.

Posted

Re: [mccode v2] Bodyguard Mod

You should have a link in the city

$cost=10k*level;

Hello you are looking for protection the bodyguard will give protect you for 30 minutes.

Purchase Body Guard.

etc Im just giving you the plan of the modifications is upto you if you want to complete it :)

Thats one thing you people dont seem to do make a plan of your work before you do it

Posted

Re: [mccode v2] Bodyguard Mod

 

Thats one thing you people dont seem to do make a plan of your work before you do it

You say "you people" as if you're the only person that makes a plan of their mod before they do it? How do you know I didn't plan this out? I simply made them for donators. If you don't like it then alter it yourself. I put this up for people that might be looking for something like this.

Posted

Re: [mccode v2] Bodyguard Mod

If it was for donators you just make a new file put update blah blah

When they buy it make the Paypal run that file and then they are protected

Sorry if I seemed a bit off the mod doesnt seem well thought through and I dont think you used the best of your ability for it :)

Posted

Re: [mccode v2] Bodyguard Mod

 

You need to also make sure that the ID's of the Items are

60

61

62

This can be changed in the Database ;)

Just change the itemid in the code is much more easier as for some id 60 61 62 could already be taken

For instance for me my IDs are taken upto 130 or somewhere around there

Posted

Re: [mccode v2] Bodyguard Mod

Lol, they were well made. You don't always have to plan, I did for this mod. But for other things I simply do it as I go along. I tend to think up better ideas that way.

Posted

Re: [mccode v2] Bodyguard Mod

I dunno why people have to be hard when someone posts something for free and are prepared to share it...

Notorious while i haven't actually used this mod i will be totally honest and tell you its solved a problem of a new addition i am doing for my game... I was looking at a much more complex way and your above code has given me a much simpler idea of doing it ;)

so thank you for that :)

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