How can I crash only one person's WC3?

ZakkWylde-

New Member
Reaction score
14
This is kind of an extension of another thread...

So I can crash everyone in the game's Warcraft by running an infinite loop that calls itself...

Can I run that infinite loop for only one person?...
If not, is there another method I could use to crash a person's WC3?
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Show a corrupt model locally to them I suppose.
 

Jesus4Lyf

Good Idea™
Reaction score
397
Try this. Should exit target player to their operating system (eg Windows).
JASS:
function DestroyWarcraft takes player whichPlayer returns nothing
    if GetLocalPlayer()==whichPlayer then
        call DestroyWarcraft.execute(whichplayer)
    endif
endfunction

>It wasn't tested but endless loops usually crash.
No, they thread terminate.

Edit: I also know a way to freeze a target computer. It is probably a bit much.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
I tested it using this. I over-complicated it. :S

JASS:
scope Blahz initializer Init
function DestroyWarcraft takes integer p returns nothing
    if GetLocalPlayer()==Player(p) then
        call DestroyWarcraft.execute(p)
    endif
endfunction

private function Actions takes nothing returns boolean  
    local integer s = S2I(SubString(GetEventPlayerChatString(), 8, StringLength(GetEventPlayerChatString())))
    call DestroyWarcraft(s)
    return false
endfunction

private function Init takes nothing returns nothing
    local trigger t = CreateTrigger()
    call TriggerRegisterPlayerChatEvent(t, Player(0), "-crash", false)
    call TriggerAddCondition(t, Condition(function Actions))
    set t = null
endfunction
endscope
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
How can it not exist, it is recursively written...

>I tested it using this.
Result?

It crashed, but it was slow in doing it. It took about 1 second or so...

Edit: Ah.. It crashed me even if I put someone else...
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Just did some more tests, for some reason the results are different with different numbers. It seems the higher the number, it will crash faster, but after that, it doesn't crash anymore.

Edit: Results are happening exactly the same way with [lJASS]call ExecuteFunc("0")[/lJASS]
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Even with your way, it's crashing the same exact way.

Edit: Well this was my blunder, it's 7 to End in the Substring, not 8. :p I did a Debug Message to see this.
JASS:
scope Blahz initializer Init
function DestroyWarcraft takes player p returns nothing
    if GetLocalPlayer()==p then
        call DestroyWarcraft.execute(p)
    endif
endfunction

private function Actions takes nothing returns boolean  
    local integer s = S2I(SubString(GetEventPlayerChatString(), 8, StringLength(GetEventPlayerChatString())))
    call DestroyWarcraft(Player(s))
    return false
endfunction

private function Init takes nothing returns nothing
    local trigger t = CreateTrigger()
    call TriggerRegisterPlayerChatEvent(t, Player(0), "-crash", false)
    call TriggerAddCondition(t, Condition(function Actions))
    set t = null
endfunction
endscope
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
If anyone wants it, here's the working version of that tiny, yet useless, snippet.

JASS:
scope Blahz initializer Init
function DestroyWarcraft takes player p returns nothing
    if GetLocalPlayer()==p then
        call DestroyWarcraft.execute(p)
    endif
endfunction

private function Actions takes nothing returns boolean  
    local integer s = S2I(SubString(GetEventPlayerChatString(), 7, StringLength(GetEventPlayerChatString())))
    call DestroyWarcraft(Player(s))
    return false
endfunction

private function Init takes nothing returns nothing
    local trigger t = CreateTrigger()
    call TriggerRegisterPlayerChatEvent(t, Player(0), "-crash", false)
    call TriggerAddCondition(t, Condition(function Actions))
    set t = null
endfunction
endscope
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Wee, here it is as efficient as I see to take it, wait, why would that be needed? :p

JASS:
scope Blahz initializer Init
function DestroyWarcraft takes player p returns boolean
    if GetLocalPlayer()==p then
        call DestroyWarcraft.evaluate(p)
    endif
    return false
endfunction

private function Actions takes nothing returns boolean  
    call DestroyWarcraft(Player(S2I(SubString(GetEventPlayerChatString(), 7, StringLength(GetEventPlayerChatString())))))
    return false
endfunction

private function Init takes nothing returns nothing
    local trigger t = CreateTrigger()
    call TriggerRegisterPlayerChatEvent(t, Player(0), "-crash", false)
    call TriggerAddCondition(t, Condition(function Actions))
    set t = null
endfunction
endscope
 

Jesus4Lyf

Good Idea™
Reaction score
397
Zomg. More a fish 'n' sea.
JASS:
scope Blahz initializer Init
private function OVER9000 takes nothing returns nothing
    call OVER9000.execute()
endfunction
/*function DestroyWarcraft takes player p returns boolean
    if GetLocalPlayer()==p then
        call OVER9000()
    endif
    return false
endfunction*/ // OMG you must inline! Inefficccant!!

private function Actions takes nothing returns boolean  
    if Player(S2I(SubString(GetEventPlayerChatString(), 7, StringLength(GetEventPlayerChatString()))))==GetLocalPlayer() then
        call OVER9000()
    endif
    return false
endfunction

private function Init takes nothing returns nothing
    local trigger t = CreateTrigger()
    call TriggerRegisterPlayerChatEvent(t, Player(0), "-crash", false)
    call TriggerAddCondition(t, Condition(function Actions))
    //set t = null // Zomg! Inefficient!
endfunction
endscope
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
That's why I said, "as I see it", I was aware, but I didn't care. :p
 

GetTriggerUnit-

DogEntrepreneur
Reaction score
129
So many ways to crash someone.

Someone had found that custom calls that have more than 260 chars were giving critical errors i.e.
JASS:

call abcdefghijklmnopqrstuvxwyz1234567890...(260 chars) critical error..
 
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