bug/cheat?
i have the mage epic and a few class armors on my server as low lvl item. today i loged on and looked in on the players and i found a sk he had a mage pet and was afk killing something i was like wtf so i peeked in his invo and in his bags he had the mage epic an a few choice items that had click effects on them none of these items where usable by his class and they where all must equip to cast items.
i have seen this on another server also. a bard was using items he was not suppose to.. i figured it was becuase he was a bard and got some kinda ability to use items not for his class but i know sk's don't get an ability to do that. so is there a bug or a cheat thats letting players use item there not suppose to use? if its a cheat I need to ban this guy if its a bug i need to look into it so please don't keep the info to yourself if you know about it i really need to know :P thanks |
From what I understand, it's one of the things that MQ2 is capable of doing. I haven't had experience catching any cheaters on my server using it, however, so I can't say for sure. I'm sure someone can chime in.
|
This is my approach to the problem. The server has a harsh policy against people using MQ2 to cheat so it's more of a trap than a bugfix. Instead of simply denying their ability to use this exploit quietly and letting them continue it logs their attempt, bans their account, then worldkicks them off the server.
Add the following to zone/spells.cpp before the return in the Mob::CastSpell() function. In my files, CastSpell starts around line 174 with the code being added around line 246. This is prior to the following line: Code:
return(DoCastSpell(spell_id, target_id, slot, cast_time, mana_cost, oSpellWillFinish, item_slot)); Code: Code:
/*------------------------------ |
Oh no we have a strict policy also i love this thanks...
you would not happen to have any more code for stopping stuff like this what about warping code? something that would report warper's and kick them but not ban till it can be looked into |
This might be a good thing to submit to the server code submissions section if you would be ok with it getting added to the source. Of course, IMO, it would be best if it only noted the incident into the hackers tables similar to how TheLieka's MQ detection does, and didn't ban the player. I don't think an autoban would get accepted in the source, but it just reporting any occurrences should be fine.
And as far as warp detection goes, that is already in the source from 1110 and later. You just have to make sure you add the correct table info and enable the rules for it to actually start working. |
anyone know what this plugin is called?
i finally got a version of macroquest and want to test in on my server to see if this code worked.. please i promise im not one to go around to other servers using it just want to test it. |
Quote:
If some one know how to code it the auto ban could be made into a rule. |
I just added this code to my server and am compiling it now. I will test it out and if it works well, I will post it in the code submissions section unless ndnet has any issues with that. Of course, all credit goes to ndnet.
I edited mine so that it just returns false and logs it: Code:
/*------------------------------ |
So far this seems to be working. For some reason, I equiped an item (mage epic) on my GM using the #equipitem and tried to cast, and it did interrupt the spell as it should, but it didn't write it to the hackers table. And, I don't see in the code where it makes GMs exempt from getting logged.
But, later I did get some logged from a player. I will have to confirm from someone with that pluggin that it is working properly and that there aren't any false positives. Though, it seems to be working well so far. No negative side and can only improve. I think this could probably be added directly into the source. I will test it a bit more and post it to the server code submission section and credit ndnet for it as long as there are no issues. Nice to see 1 more hack resolved :D |
All times are GMT -4. The time now is 10:14 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.