Faz` Posted April 14, 2009 Posted April 14, 2009 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. Quote
DELETE ME NOW! Posted April 15, 2009 Posted April 15, 2009 Re: [mccode v2] Bodyguard Mod Why do items :) You could do something like this.. Example something.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Faz` Posted April 15, 2009 Author Posted April 15, 2009 Re: [mccode v2] Bodyguard Mod I see where you're coming from. I simply made them items so they could be traded. Quote
dementor Posted April 15, 2009 Posted April 15, 2009 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 Quote
Faz` Posted April 15, 2009 Author Posted April 15, 2009 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. Quote
yaz123 Posted April 15, 2009 Posted April 15, 2009 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 ;) Quote
dementor Posted April 15, 2009 Posted April 15, 2009 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 :) Quote
dementor Posted April 15, 2009 Posted April 15, 2009 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 Quote
Magictallguy Posted April 15, 2009 Posted April 15, 2009 Re: [mccode v2] Bodyguard Mod Thats one thing you people dont seem to do make a plan of your work before you do it I didn't plan my CSS Administration System, or my Gallery and Combined Comment System... You can tell from the screenshots that I made it well (if I do say so myself :P) Quote
Faz` Posted April 15, 2009 Author Posted April 15, 2009 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. Quote
shrek1609 Posted April 16, 2009 Posted April 16, 2009 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 :) Quote
Faz` Posted April 16, 2009 Author Posted April 16, 2009 Re: [mccode v2] Bodyguard Mod Thanks for that. I'm glad it helped you. 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.