noddy Posted April 8, 2009 Posted April 8, 2009 hey guys, how can i stop npc's getting put in hospital, and how can i make them keep their health, i have tried myself, but nothing seems to work, so a little help would be appreciated. Quote
Faz` Posted April 8, 2009 Posted April 8, 2009 Re: Need help on a problem You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This should work, I think, its not tested. On 2nd thoughts, it might be this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. It is one of the two, I think, I'm not too sure, I'm sure other people will be able to help you out more than I ever will be able to though. Quote
noddy Posted April 8, 2009 Author Posted April 8, 2009 Re: Need help on a problem oh i suppose i best clean it up, no, i mean from battle tent, when people attack them, they end up in hospital not letting others attack them, thank you for helping though Quote
Faz` Posted April 8, 2009 Posted April 8, 2009 Re: Need help on a problem Oh judging from your first post I thought thats what you meant, explain in more depth what you want next time :) I'll try see what I can do. Quote
AlabamaHit Posted April 8, 2009 Posted April 8, 2009 Re: Need help on a problem Come on people if you expect to run a game and turn profit You ahve to be able to do simple stuff like this... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. to You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Miniman Posted April 8, 2009 Posted April 8, 2009 Re: Need help on a problem Or just add in hospital.php something like... $db->query("UPDATE users SET hospital=0,hp=maxhp WHERE user_level=0"); :| Quote
Yubi Posted April 9, 2009 Posted April 9, 2009 Re: Need help on a problem Open cron_fivemins.php or what ever cron you want it in but this is from cron_fivemins anyway.. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Under add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then find the 2nd You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. under add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Lithium Posted April 9, 2009 Posted April 9, 2009 Re: Need help on a problem keeping npc's out of hospital is good... though, keeping them with full health all the time is not good as people can keep on hitting them to level up, in no time you will have power levelling raising up as hell if you keep npc's with full health. Also, the best way to keep npc's out of hospital, is to remove the hospital time out from the attack files... something along these lines... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Yubi Posted April 9, 2009 Posted April 9, 2009 Re: Need help on a problem keeping npc's out of hospital is good... though, keeping them with full health all the time is not good as people can keep on hitting them to level up, in no time you will have power levelling raising up as hell if you keep npc's with full health. Also, the best way to keep npc's out of hospital, is to remove the hospital time out from the attack files... something along these lines... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Yeah good idea.. :-) Quote
noddy Posted April 9, 2009 Author Posted April 9, 2009 Re: Need help on a problem Okay thank you for all of the input guys, in the end i went with minimans idea, as it was the quickest, and i understood how it was going to work, and if there was anything wrong with it. so yeah, thanks guys ^^ Quote
AlabamaHit Posted April 9, 2009 Posted April 9, 2009 Re: Need help on a problem lol are you serious? For that to even work you have to click on hospital....if your going to go that cheap way of it...put that code in the header. 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.