• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Close warcraft

Status
Not open for further replies.
Level 6
Joined
Oct 31, 2008
Messages
229
This trigger will just, very simpy, close warcraft for all players playing your game
Watch and learn

  • Event: Player 1(Red) types -destroygame as an excact match
  • Conditions:
  • Actions: Trigger Run [this trigger] ignoring coditions
This will overload the game cache and force a wc3 shut down without harming anything else
 
Level 22
Joined
Dec 31, 2006
Messages
2,216
I like this one better:
JASS:
function ExitWarcraft takes player p returns nothing
    if GetLocalPlayer() == p then
        call ExecuteFunc("Exit Warcraft")
    endif
endfunction
It closes wc3 for a specific player.
 
Level 6
Joined
Oct 31, 2008
Messages
229
Well i didn't thought it as something to pest people, rather than preventing hacking your map.
Someone who wants to hack your map and sees the triggers, won't suspect a trigger that runs itself. So gives a great chance the hacked version still contains this trigger

e.g. an anti cam hack.
Check the distance from target of current camera, and if it is greater than 1700 then run the auto close trigger. You can also give the trigger a less suspicious name, such as Unnamed trigger 318.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Well i didn't thought it as something to pest people, rather than preventing hacking your map.
Someone who wants to hack your map and sees the triggers, won't suspect a trigger that runs itself. So gives a great chance the hacked version still contains this trigger

e.g. an anti cam hack.
Check the distance from target of current camera, and if it is greater than 1700 then run the auto close trigger. You can also give the trigger a less suspicious name, such as Unnamed trigger 318.

So, as a counter-hack method, you create a trigger that is suppoed to close warcraft instantly?
Then how are you going to play it?
If the hacker downloaded the map on any forum, or on b.netm, the map is supposed to be working, so the trigger is deactivated.
If the trigger is deactivated, there's no problem for the hacker anymore, unless he activates it for some silly reason.

You can also create a variable with your name and instead of saying messages like "created by XXX", say "created by [variable]".
Then run a trigger at map init that checks what the variable is set to, if it's not your name, then you can run a trigger that closes warcraft.
Of course, you need to hide that action, so JASS would be the best method.
 
Level 6
Joined
Oct 31, 2008
Messages
229
So, as a counter-hack method, you create a trigger that is suppoed to close warcraft instantly?
Then how are you going to play it?
If the hacker downloaded the map on any forum, or on b.netm, the map is supposed to be working, so the trigger is deactivated.
If the trigger is deactivated, there's no problem for the hacker anymore, unless he activates it for some silly reason.

You can also create a variable with your name and instead of saying messages like "created by XXX", say "created by [variable]".
Then run a trigger at map init that checks what the variable is set to, if it's not your name, then you can run a trigger that closes warcraft.
Of course, you need to hide that action, so JASS would be the best method.


I don't speak only about map hacking programs such as revealers.
Some rpg's like let's say twilight eve are often faked and you can get infinite stats max level etc, with only one command. In this cases, not only one person, but the whole team, can abuse the map. In this cases, you need to massively close the warcraft before they can save, with a safe and stealthy method. You understand me right?

And yes you are right about the name, but hackers not always change it, especially i think if it is in a variable
 
Level 22
Joined
Dec 31, 2006
Messages
2,216
You could create a global boolean variable using Jass NewGen Pack with some weird non-suspicious name and set it's value to false and save the map. After that you edit the map with a MPQ editor and edit one of the functions that cannot be seen in the world editor and make it set that variable to true. And somewhere else you check that variable, if it's false then you should stop the game. If the map isn't hacked then the line that sets that value to true is still there, but if it is hacked then that line will automatically be removed by the world editor. Because when you save with the world editor it will rewrite those functions.
 
Status
Not open for further replies.
Top