AlabamaHit Posted December 1, 2008 Posted December 1, 2008 Someone mailed me and asked for this so I decdied to to do it.. What this does, is makes a users only able to beat a NPC one time....So they can not level off them over and over and over.......The user can still attack the one time adn collect payment but after that they will not be allowed to atttack that NPC again. =========== Open attack.php =========== Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add after that: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Thats all...Your done, if you like it dont forget to +1 8-) Quote
redsnake420 Posted December 1, 2008 Posted December 1, 2008 Re: [mccode v1] or [mccode v2] Stop NPC attacks Nice Addon Hit +1 Quote
EineyEntertainment Posted March 19, 2009 Posted March 19, 2009 Re: [mccode] Stop NPC attacks exploit. Users can still fight the NPC over and over again, as long as they do their first attack via search. Quote
Strats Posted March 19, 2009 Posted March 19, 2009 Re: [mccode] Stop NPC attacks Glad you noticed this before I tried it Quote
EineyEntertainment Posted March 19, 2009 Posted March 19, 2009 Re: [mccode] Stop NPC attacks I may be wrong, it could be something wrong with my SQL injection. Give me a few minutes to sort my issues out before taking my fault into heart :) Update: It seems that neither was wrong. Is being injected, and recognized on some characters, but not on others...I think the method has to be the initial kill Quote
AlabamaHit Posted March 23, 2009 Author Posted March 23, 2009 Re: [mccode] Stop NPC attacks Ok..you have NO idea what yoru talking about.....Their is no "Injection" on this...what the hell would they inject stop misleading everyone. Quote
EineyEntertainment Posted March 23, 2009 Posted March 23, 2009 Re: [mccode] Stop NPC attacks I might have used the wrong word, excuse me for that.... $db->query("INSERT INTO challengesbeaten VALUES($userid, {$r['userid']})"); that's being injected or placed into the SQL via the script.... That was MY injection that I figured wasn't occurring, which would have meant that it was my scripts fault. However, the Data base is receiving the message from the game and storing the challenge beat, but your script isn't able to catch it, and players are still able to fight NPCs outside of the battle tent Quote
Lithium Posted March 24, 2009 Posted March 24, 2009 Re: [mccode] Stop NPC attacks However, the Data base is receiving the message from the game and storing the challenge beat, but your script isn't able to catch it, and players are still able to fight NPCs outside of the battle tent Before saying the script isn't able to catch it, be sure that your overall configuration catches $bot['npcid']. I'm just saying this because there are a lot of versions floating around that simply have the npc's inside arrays, making the $bot['npcid'] var pretty much useless :) Quote
AlabamaHit Posted March 24, 2009 Author Posted March 24, 2009 Re: [mccode] Stop NPC attacks Cool... There is no doubt I'm sure there is a walk around if your using a stock v2 attack....Cuase threr are alot of walk arounds on that script....For example you can attack people in different locations with no problem at all. That's probarly what you where meaning. I didn' t really go back and read what I wrote to check how it sounds...it kinda sounded bad...Thats my bad if you took that harsh wasnt ment that way....I didnt ready it if i did i would ahve retyped it cause that wording came across bad. Just what I was saying is you said "SQL Injection" and when peopel see those words they go crazy lol. 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.