anti map hack

cleeezzz

The Undead Ranger.
Reaction score
268
usually anti map hack systems crash the player with a corrupted model of some kind.

in anime fight, it detects it without crashing a player
it says the player selected a order or event

any idea how they did it?
 

hell_knight

Playing WoW
Reaction score
126
Maybe, make a trigger that brings them to a place where you could ONLY SEE if you maphacked and tells him to select it, not sure if it works but I think that is how it is. Then have a trigger that detects if anybody clicked that then say it out.

So if you didint maphack you cant select something in fog, but if u did then different story.
 

Jessi

I'm so green. Like a Machine.
Reaction score
37
you still can't select units you shouldnt be able to see with maphack, you can only see them.
 

Choppa

www.warcraft-gamers.po.gs
Reaction score
59
I tried to make what uhh... hell_knight9 suggested just before but it seemed to select all the units on the map even when I'd try to condition it to only select the units that player 1 can see which was his own, the rest of the map was black fog/mask and it'd still select them all, I was probably doing it wrong (lol) but I don't know, you should try it you might get it.
 

cleeezzz

The Undead Ranger.
Reaction score
268
yea thats the model corruption system i was talking about, i don't want it to crash the player. i just want to warn them.


EDIT: i did some tests... and i found something interesting.. i used an enemy footman with perm invis and then i had a human priest.

without the maphack, you cant see the footman. when i clicked heal, and i clicked the footman, it said "Cannot target enemy units"

..wait..but if you cant see it, it should say "must target a unit"

maybe this can be turned into an anti mh somehow?
 

cleeezzz

The Undead Ranger.
Reaction score
268
i know this isnt exactly great.. and innocent people COULD be framed.. tried to prevent by..it has to be detected 5 times.


Code:
MH DETECT Copy
    Events
        Unit - Priest 0002 <gen> Is issued an order targeting a point
    Conditions
    Actions
        Set LOC = (Target point of issued order)
        Unit - Move Footman 0004 <gen> instantly to LOC
        Unit Group - Pick every unit in (Units within 30.00 of (Position of Footman 0004 <gen>)) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is visible to Player 1 (Red)) Equal to True
                    Then - Actions
                        Do nothing
                    Else - Actions
                        Unit Group - Add (Picked unit) to UNIT_DETECT
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (UNIT_DETECT is empty) Equal to True
                            Then - Actions
                                Do nothing
                            Else - Actions
                                Game - Display to (All players) the text: MH DETECTED?
                                Set MH = (MH + 1)
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        MH Greater than or equal to 5
                                    Then - Actions
                                        Game - Display to (All players) the text: MAPHACK DETECTED>...
                                    Else - Actions
        Unit Group - Remove all units from UNITDETECT
        Custom script:   call RemoveLocation(udg_LOC)
        Unit - Move Footman 0004 <gen> instantly to (Center of Region 001 <gen>)

its only made with 1 player though. anyway i could make it better?
 
N

NuBy

Guest
Umm.. Btw, what is the point of Anti-Maphack when you don't want them to "crash and burn" neheheheheheeee! Although it'll be annoying for the people playing.
 

duyen

New Member
Reaction score
214
Map Hacks don't work like that, they let you see invisible units, not click on them or attack them.
 

hell_knight

Playing WoW
Reaction score
126
They let you click on them and attack them, I did some browsing find one, and yes indeed it lets me do that. But for some reason probaly my triggering error or something but I run the trigger and I can select a unit in pure black mask. Then the trigger detecting me clicking the unit fires even though I didint select shit.

Warcraft 3 probaly still makes you select units you have no vision of. Trying if you can like cast a spell or something.
 

cleeezzz

The Undead Ranger.
Reaction score
268
crashing them would kinda ruin the game. =/

made it for all players and removed having to use a unit.

Code:
Add Events
    Events
        Map initialization
    Conditions
    Actions
        Custom script:   set bj_wantDestroyGroup = true
        Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
            Loop - Actions
                Trigger - Add to MH DETECT <gen> the event (Unit - (Picked unit) Is issued an order targeting a point)
Code:
Add Events 2
    Events
        Unit - A unit enters (Playable map area)
    Conditions
    Actions
        Trigger - Add to MH DETECT <gen> the event (Unit - (Triggering unit) Is issued an order targeting a point)
Code:
MH DETECT
    Events
    Conditions
    Actions
        For each (Integer A) from 1 to 8, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Owner of (Triggering unit)) Equal to (Player((Integer A)))
                    Then - Actions
                        Set MH_DETECTION_LOC[(Integer A)] = (Target point of issued order)
                        Unit Group - Pick every unit in (Units within 30.00 of MH_DETECTION_LOC[(Integer A)]) and do (Actions)
                            Loop - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        ((Picked unit) is visible to (Player((Integer A)))) Equal to True
                                    Then - Actions
                                        Do nothing
                                    Else - Actions
                                        Unit Group - Add (Picked unit) to UNIT_DETECTION[(Integer A)]
                                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            If - Conditions
                                                (UNIT_DETECTION[(Integer A)] is empty) Equal to True
                                            Then - Actions
                                                Do nothing
                                            Else - Actions
                                                Game - Display to (Player group(Player 1 (Red))) the text: (|c00ff0000Warning:|r  + ((Player_Colors[(Integer A)] + (Name of (Owner of (Triggering unit)))) + |r |c00ff0000has targeted an invisible unit/unit in the fog. Type -mh for more info.|r))
                                                Set MH_VIOLATION[(Integer A)] = (MH_VIOLATION[(Integer A)] + 1)
                                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    If - Conditions
                                                        MH_VIOLATION[(Integer A)] Greater than or equal to 5
                                                    Then - Actions
                                                        Game - Display to (Player group(Player 1 (Red))) the text: (|c00ff0000Warning:|r  + ((Player_Colors[(Integer A)] + (Name of (Owner of (Triggering unit)))) + |r |c00ff0000has targeted an invisible unit/unit in the fog at least 5 times.  High chance of map hacking.  Type -mh for more info.|r))
                                                    Else - Actions
                    Else - Actions
                Custom script:   call RemoveLocation(udg_MH_DETECTION_LOC[bj_forLoopAIndex])
                Unit Group - Remove all units from UNIT_DETECTION[(Integer A)]

EDIT: this code doesn't work for casting spells. i blame blizzard.
 

cleeezzz

The Undead Ranger.
Reaction score
268
bump. ok is there anyway to detect

A unit tries to cast a spell on another unit but it gives an error, like Must target ground, must target unit blah blah
 

Syndrome

You can change this now in User CP.
Reaction score
126
There is a program that is a hack to detect map hackers... ironic?
I forgot where i found it... let me try checking my History
 

trigger_newb

Active Member
Reaction score
3
Dude

DUDE I HAVE THE BEST THING JUST FOR THIS
in this korean warcraft map i've played it warns all the player
when a enemy player clicks on a unit that is in fog of war area
and if they click for more then 4 times it just immediately boots them
i just don't know how to trigger it

lol that helps
im am extremely sure that you are being sarcastic
maybe i can get one of the korean editors to help you?
there is not a great chance since im decent/fluent in korean
but not enough to understand every single detail in wc3 editing unto korean...
 

Jessi

I'm so green. Like a Machine.
Reaction score
37
I keep telling you guys you cant select units that you cant see. you can see the model but you still cant select them.
 

Jessi

I'm so green. Like a Machine.
Reaction score
37
you can't select them if you can't see them, thats what Im saying. ofc you can select them if you can see them..
 

hell_knight

Playing WoW
Reaction score
126
Jessi, quit argueing YOU CAN SELECT UNITS that you see with maphack you just dont see them you see all the details skills,ect BUT blizzard registers you selecting the unit even if you don't see it so therefore a antimaphack that makes you select a unit and deselect instantly will fail cause even without vision it registers you selecting it.
 

Weyrling

New Member
Reaction score
25
He said you cannot select it if you can't see it, this is a fact. What maphack does, is makes you SEE it...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top