NonStopCoding Posted May 26, 2014 Share Posted May 26, 2014 (edited) So i have went and coded a module which will let users attack a boss the boss will be very hard to kill due to his huge health bar. -- Files -- monster_config.sql npc_monsters.sql monster_info.sql boss.php --------------- In the monster config you can set energy cost per attack. monster id that you want to show if you have multiple bosses lose cash lose exp survive cash survive exp kill cash kill exp hit cash hit exp Here are some screenshots [ATTACH=CONFIG]1503[/ATTACH][ATTACH=CONFIG]1504[/ATTACH][ATTACH=CONFIG]1505[/ATTACH][ATTACH=CONFIG]1506[/ATTACH][ATTACH=CONFIG]1507[/ATTACH][ATTACH=CONFIG]1508[/ATTACH] If you are interested in purchasing this module then please contact me on [email protected] or skype: dundeeboy09 Edit: Forgot to say module is complete just needs some final touches added. There will be a staff panel as well for easy adding of bosses and edit of config file. You can see a live demo on my developer site. http://mcc.nonstopcoding.com/boss.php Username: demo Password: demo Edit: Updated code to do a bug found by Veramis Edited May 27, 2014 by NonStopCoding Quote Link to comment Share on other sites More sharing options...
Jason-x Posted May 26, 2014 Share Posted May 26, 2014 Pretty cool Idea. Set it so the boss spawns say 14:00 server time till 15:00 St. And then again every 3 hours Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted May 26, 2014 Author Share Posted May 26, 2014 that's a pretty nice idea there i will see if i can do that Quote Link to comment Share on other sites More sharing options...
Jason-x Posted May 26, 2014 Share Posted May 26, 2014 Yeah it would work pretty well give players something to look forward too. Could even have a little count down time on header Next boss in (time) Boss up click here to attack type thing It's a good mod. Lots of possibilities for it. And it's somthing new to mccodes aswell really like the idea Quote Link to comment Share on other sites More sharing options...
Zedinex Posted May 27, 2014 Share Posted May 27, 2014 So multiple people can attack this? Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted May 27, 2014 Author Share Posted May 27, 2014 (edited) yes there is no hospital time for the monster once attacked his hp will drop down by whatever damage you hit on him it will however cost you energy if you decide to set that it costs anything in the config sql file EDIT: If the boss has been killed 0 hp then of course it cant be attacked anymore until the hp is refilled or a new boss is set in the config file Edited May 27, 2014 by NonStopCoding Quote Link to comment Share on other sites More sharing options...
JamesRage Posted May 27, 2014 Share Posted May 27, 2014 Nice modification! :o Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted May 27, 2014 Share Posted May 27, 2014 (edited) Maybe add something like fight points? Every time you win you gain a point. Then you can spend the points on something? Edited May 27, 2014 by Samurai Legend Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted May 27, 2014 Author Share Posted May 27, 2014 i am going to be reworking the attacking part of this as its a bit messed up but keep the ideas coming ill see what i can do so far the ideas are Boss will spawn at xx.xx server time then every 3 hours after that. (0%) countdown timer or a worldwide message to alert the players the boss has spawned.(0%) fight points and a store to go with it to spend points.(0%) Quote Link to comment Share on other sites More sharing options...
Jason-x Posted May 27, 2014 Share Posted May 27, 2014 could have a table in the boss called resettimer or something like that, so when boss hp = 0 it will insert a random number into that from say 120 to 240 (represents mins) then add a cron min to count this down in header, something like if resettimer= < 60 then "new boss in mins left" in the cron check for 5 mins left then re fill the bosses health, Pay crystals for an attack boost on the boss (each attack you land does 5% more damage stacking upto 10 times 50% total) (this buff lasts for the duration that the boss is alive) if the boss doesn't die after a set period of time, anyone that attacked it will be hospitalized for x ammount of time, i am going to be reworking the attacking part of this as its a bit messed up but keep the ideas coming ill see what i can do so far the ideas are Boss will spawn at xx.xx server time then every 3 hours after that. (0%) countdown timer or a worldwide message to alert the players the boss has spawned.(0%) fight points and a store to go with it to spend points.(0%) Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted May 27, 2014 Share Posted May 27, 2014 I'm going for the dislike [MENTION=70111]Jason-x[/MENTION] only because you say to use crons. Time stamps would be 10x better Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted May 27, 2014 Author Share Posted May 27, 2014 ok added little jquery to the latest attacks some screenshots users can drag the box and arrange it in the order they want. [ATTACH=CONFIG]1510[/ATTACH][ATTACH=CONFIG]1511[/ATTACH] would be better to check the demo for better view :) Quote Link to comment Share on other sites More sharing options...
bladewolf2010 Posted May 27, 2014 Share Posted May 27, 2014 I'm going for the dislike [MENTION=70111]Jason-x[/MENTION] only because you say to use crons. Time stamps would be 10x better There is nothing wrong with using crons. A cron could be more beneficial then a timestamp would be. It all depends on the job that needs done.. I'm sick of seeing everyone jumping on the timestamp bandwagon.. Would you use a timestamp that'd only be ran once a month? To do a backup? Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted May 28, 2014 Share Posted May 28, 2014 (edited) I never use timestamp for big things...however for a small modification like this. It will be much more better for using timestamp. I know where Kyle is coming from. Cause using a cron on a small thing...I mean come on... Removed to keep it clean Edited May 28, 2014 by KyleMassacre Keeping it clean but thanks for the support lol Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted May 28, 2014 Share Posted May 28, 2014 There is nothing wrong with using crons. A cron could be more beneficial then a timestamp would be. It all depends on the job that needs done.. I'm sick of seeing everyone jumping on the timestamp bandwagon.. Would you use a timestamp that'd only be ran once a month? To do a backup? Correct, crons can be beneficial but is a cron beneficial for this? For a huge task at hand using a cron job is great but not for editing a couple columns every minute. Use a timestamp and parse it in human readable form or use DATETIME as your column type. Since I'm pretty sure there would be a check in the script for something like if $row->time >= time() do this or vice verse` you can just do what you need there. I dont see the problem of updating what needs to be updated when it needs to be updated instead of querying everything the check if it needs updating Quote Link to comment Share on other sites More sharing options...
Dave Posted May 28, 2014 Share Posted May 28, 2014 There is nothing wrong with using crons. A cron could be more beneficial then a timestamp would be. It all depends on the job that needs done.. I'm sick of seeing everyone jumping on the timestamp bandwagon.. Would you use a timestamp that'd only be ran once a month? To do a backup? Timestamp and crons are meant to be used for completely different things. If you're counting down something in minutes, say a reset timer then a timestamp would be the better option. Where as (like you've said) something like an automated backup would be done through a cron. Crons are meant to be used for scheduled events, just in McCodes someone decided to count down minutes using the crontab (bad bad idea). The software utility cron is a time-based job scheduler in Unix-like computer operating systems. People who set up and maintain software environments use cron to schedule jobs (commands or shell scripts) to run periodically at fixed times, dates, or intervals. It typically automates system maintenance or administration—though its general-purpose nature makes it useful for things like connecting to the Internet and downloading email at regular intervals.[1] The name cron comes from the Greek word for time, χρόνος chronos. http://en.wikipedia.org/wiki/Cron Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted May 28, 2014 Author Share Posted May 28, 2014 I have disabled the boss.php until i have reworked the attack part of the module here is some screenshots of the new attack with random outcomes [ATTACH=CONFIG]1512[/ATTACH][ATTACH=CONFIG]1513[/ATTACH][ATTACH=CONFIG]1514[/ATTACH][ATTACH=CONFIG]1515[/ATTACH] Quote Link to comment Share on other sites More sharing options...
wrux Posted May 28, 2014 Share Posted May 28, 2014 (edited) Correct, crons can be beneficial but is a cron beneficial for this? For a huge task at hand using a cron job is great but not for editing a couple columns every minute. Use a timestamp and parse it in human readable form or use DATETIME as your column type. Since I'm pretty sure there would be a check in the script for something like if $row->time >= time() do this or vice verse` you can just do what you need there. I dont see the problem of updating what needs to be updated when it needs to be updated instead of querying everything the check if it needs updating Yea MySQL handles datetime datatypes very well. You can easily write a query to add 15 mins to a date time, for example... ... blah SET field = DATE_ADD(NOW(), INTERVAL 15 MINUTE) Edited May 28, 2014 by wrux typo Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted June 1, 2014 Author Share Posted June 1, 2014 Have not had much time last few days to do anything due to server move i got some work done tonight on the attack New Features: Upgraded 1 Click Attack System Low Chance of getting x2 damage boost Low Chance of getting x2 exp boost Donators get a better chance at x2 exp and x2 damage Reworked Exp Gain Reworked Damage done Removed Monsters Stats and gave the monster a random damage outcome The demo is still down while i work out a few more things but should be ready for testing tomorrow. Quote Link to comment Share on other sites More sharing options...
Nameless Posted October 25, 2014 Share Posted October 25, 2014 I would love to see the finished version of this. Quote Link to comment Share on other sites More sharing options...
Tangled Posted October 26, 2014 Share Posted October 26, 2014 same here. I'd love to have this mod! Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted October 26, 2014 Author Share Posted October 26, 2014 i will get around to finishing the addons that have been requested just been super busy with rc my own game projects for people and now i am ill if you guys/girls have any more ideas fire away :P Quote Link to comment Share on other sites More sharing options...
AnonymousUser Posted October 26, 2014 Share Posted October 26, 2014 I've added u on Skype, would like to purchase once it's available :) Quote Link to comment Share on other sites More sharing options...
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.