-Crash Command (For Single Player) ?

Fulla

Evil Overlord
Reaction score
31
How could one make a basic -crash (Player Number) command, that would crash a specifics player war3 game.?

Example:
- crash 3
Player 3's war3 would now crash.

I've seen it before in some games, just wondering how its done.
 

Chocobo

White-Flower
Reaction score
409
JASS:
function Close takes nothing returns nothing
loop
call ExecuteFunc("Close") //makes a loop inside a loop
endloop
endfunction


This should force to close warcraft 3 (without any error).


JASS:
function Error takes nothing returns nothing
	call ExecuteFunc("aermlefdjflkq") //in fact you can write what you want because it doesn't take a code but a string (that shouldn't exist in the function list)
endfunction


This should force a critical error.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> It's not fun enough.

You mean it's not arrogant enough?

Well, division by zero does not crash the game.
Besides, the idea, I guess, would be to crash one particular player. And only that one.
Good luck with that... and you don't mind either if your map is largely ignored because it's known to crash, right?
 

Fulla

Evil Overlord
Reaction score
31
JASS:
function Close takes nothing returns nothing
loop
call ExecuteFunc("Close") //makes a loop inside a loop
endloop
endfunction


This should force to close warcraft 3 (without any error).


JASS:
function Error takes nothing returns nothing
	call ExecuteFunc("aermlefdjflkq") //in fact you can write what you want because it doesn't take a code but a string (that shouldn't exist in the function list)
endfunction


This should force a critical error.

This is great, but needs to be specifically for one player, not everyone/whole game.

AceHart said:
Anything wrong with "Game - Defeat"?

You mean it's not arrogant enough?

I intend to have both commands & a few extras. I understand your first reaction would just be to perceive it as a way for me or whoever to just abuse it, but thats not what I'm making it for.

Potential Commands:
  • Kick XX (Eject from game)
  • Crash XX (Crash target's war3)
  • Mute XX (Prevent from speaking, I'll need to ask how to do this)
  • Hex XX (Permanently turn target's Hero into an Invulnerable Critter)
  • Swap XX (Swap target's team)

Either of these commands is reserved for teamkillers, flamers & serious laggers (who don't drop & won't leave).
Crash would be only for the most extreme.
 

Flare

Stops copies me!
Reaction score
662
Couldn't you just put the player into cinematic mode (from what I remember, closing is the only way out unless it's intentionally disabled), or take a look at quraji's evil dialog system that displays a blank dialog so they can't do anything?

Anyway, can't you crash a player by displaying a corrupted model via SFX? I heard that somewhere (not sure if it's true though)
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
actually i found a simple crash which is a pretty quick one try this:
order unit to hold position while turning on a trigger which detects order of holdposition and then in it's action order it to hold position endless loop which gets u crash in less then a second.

though im not sure if it's gonna crash them all or only the owner of it - never tried it in multiplayer
 

cleeezzz

The Undead Ranger.
Reaction score
268
lol that sounds like an all player crash, kinda like, Unit takes damage, order Damage Source to deal dmg to (Triggering Unit)
 

Artificial

Without Intelligence
Reaction score
326
Just combine it with GetLocalPlayer and you're done?
Eg.
JASS:
if GetLocalPlayer() == YourPlayer then
    call Close()
endif
Even if that would cause the player to be desynced out of the game it shouldn't matter, as his/her game is ending anyways.
 

cleeezzz

The Undead Ranger.
Reaction score
268
it does matter xd, the point is to make the player suffer as he has to relogin to bnet, and everything

question: what happened to that corrupted lightning model that crashes any player that sees it? like force the camera to somewhere and create the lightning effect?
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
lol that sounds like an all player crash, kinda like, Unit takes damage, order Damage Source to deal dmg to (Triggering Unit)
mabye trying it with GetlocalPlayer would work....
but all i can tell u about my crash is that it's the cleanest and fastest one u got
 

Fulla

Evil Overlord
Reaction score
31
Ah it sok I got it now, worked on LAN atleast.

-List command to recieve each players number.

JASS:
function List_Actions takes nothing returns nothing
    local player p = GetTriggerPlayer()
    local integer i = 0
    local string s = GetEventPlayerChatString()
    local string check = SubString(s, 0, 5)
    if check == "-list" then
        loop
            exitwhen i > 11
            if GetPlayerSlotState(Player(i)) == PLAYER_SLOT_STATE_PLAYING and GetPlayerController(Player(i)) == MAP_CONTROL_USER then
                call DisplayTimedTextToPlayer(p, 0, 0, 8, "|cffffcc00" + I2S(GetConvertedPlayerId(Player(i))) + " - " + GetPlayerNameColored(Player(i), false))
            endif
            set i = i + 1
        endloop
    endif
endfunction


-Crash command, to crash a specific player with his ID

JASS:
function Crash_Actions takes nothing returns nothing
    local string s = GetEventPlayerChatString()
    local string check = SubString(s, 0, 6)
    local integer i = 0
    if check == "-crash" then
        set check = SubString(s, 7, 9)
        set i = S2I(check)
        if i > 0 and i < 13 then
            if GetLocalPlayer() == Player(i - 1) then
                call Player(-1337)
            endif
        endif
    endif
endfunction
 

quraji

zap
Reaction score
144
Looks like some people did look at the evil VoteOwn system! +rep for all of you, mwahahahahahaha!

Anywho...I don't advise crashing anyone's game, people would probably not play again after. That's why I made VoteOwn, so it was achieved in a relatively fair way (a majority vote, player gets a second chance if he so chooses).

Good luck being evil :thup:
 
Reaction score
86
Yep. Suggestion don't crash someone unless their hacking/cheating in some way. And, even then, if you can detect it, you probably can undo it, so just give them a warning/penalty. And even then, before you crash them, give them a 5 second count down XD
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top