Jump to content
MakeWebGames

Recommended Posts

Posted

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

  • 3 months later...
Posted

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

Posted

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

Posted

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 :)

Posted

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.

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