Anti-Spoof

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
MySpaceBarBroke
Newcomer
Posts: 14
Joined: January 4th, 2009, 1:22 pm
Location: Australia

Anti-Spoof

Post by MySpaceBarBroke »

Well you know how like you can use the -name cmd, how would you go about anti-spoof, example; -name MySpaceBarBroke and it either does; it keeps the orignal players name or sets the name to a different name like "I spoof like a noob" or something along those lines, any volenteers? Cheers space
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Anti-Spoof

Post by Syre »

Its..quite hard making an anti-system for a system ive never made..lol anyways cant you just add something like

Code: Select all

Untitled Trigger 011
    Events
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Entered chat string) Not equal to (Substring(MySpaceBarBroke, 7, 25))
            Then - Actions
            Else - Actions
                Player - Set name of (Triggering player) to Im a spoofed noob!
to the code that changes the name?..So it works like if he trys to change it to that, it catches the name MySpaceBarBroke and changes the triggering players name to Im a spoofed noob!, instead. Just add the conditions to the already made spoofer trigger, and change the else to that ;x.

Sorry if it doesnt work..As ive said ive never made or looked over a spoofer trigger so i dont know what im quite dealing with. If it doesnt work, mind posting the spoofer trigger so i get a clue as to what i need to do.
Image
User avatar
Kryptonyte
Forum Staff
Posts: 1400
Joined: March 17th, 2008, 12:07 am

Re: Anti-Spoof

Post by Kryptonyte »

mmo.syre wrote:

Code: Select all

Untitled Trigger 011
    Events
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Entered chat string) Not equal to (Substring(MySpaceBarBroke, 7, 25))
            Then - Actions
            Else - Actions
                Player - Set name of (Triggering player) to Im a spoofed noob!
Errr... NOT equal to?

I think you mean Equal to... otherwise whatever they type besides "MySpaceBarBroke" would set them to "Im a spoofed noob!"
Image
Made by the late ILikeHacking

My quote from SKillER
Spoiler:
Chat wrote:(19:12:41) SKillER: newfags cant triforce
(19:20:30) SKillER: ▲
▲ ▲
(19:20:35) SKillER: aww
(19:20:37) FatherSpace: FAIL
(19:20:43) Kryptonyte: Wow stop failing.
(19:20:47) SKillER: ▲
▲ ▲
(19:21:41) Kryptonyte: .

. ▲
▲ ▲
(19:22:20) Kryptonyte: I guess you were right, newfags can't triforce.
(19:22:29) SKillER: . . ▲
▲ ▲
(19:23:04) SKillER: OMFG
(19:23:06) SKillER: ... THIS CHAT
(19:23:06) SKillER: !
(19:23:36) SKillER: ▲
▲ ▲
(19:23:46) SKillER: ▲
.▲ ▲
Apparently, SKillER is a newfag.
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Anti-Spoof

Post by Syre »

Ya sure? It doesnt make sense by doing it as equal to. What i had in mind, was adding those to the already made spoofer trigger. By having it as Not Equal, that will make the trigger function right, unless they say -name MySpaceBarBroke, which instead of spoofing it to that, will do the else actions, which will change the name to "I am a spoofed noob".

So lets say, they say -name Me. It will check the condition to see if its the name MySpaceBarBroke, since its not equal to that, it will run the trigger normally and change the name to Me.

However, if they say it as -name MySpaceBarBroke instead, it will again check the conditon, however this time the conditon catches it and instead of doing the "Then" it does the "Else" and changes his name to "i am a spoofed noob"

Either that, or somehow i seriously misunderstood the whole If/Then/Else concept, which..i havent had any problem with previously.
Image
User avatar
Kryptonyte
Forum Staff
Posts: 1400
Joined: March 17th, 2008, 12:07 am

Re: Anti-Spoof

Post by Kryptonyte »

Oh nvm.
The actions are under Else, not then.

Didn't look at it long enough to realize that.
Image
Made by the late ILikeHacking

My quote from SKillER
Spoiler:
Chat wrote:(19:12:41) SKillER: newfags cant triforce
(19:20:30) SKillER: ▲
▲ ▲
(19:20:35) SKillER: aww
(19:20:37) FatherSpace: FAIL
(19:20:43) Kryptonyte: Wow stop failing.
(19:20:47) SKillER: ▲
▲ ▲
(19:21:41) Kryptonyte: .

. ▲
▲ ▲
(19:22:20) Kryptonyte: I guess you were right, newfags can't triforce.
(19:22:29) SKillER: . . ▲
▲ ▲
(19:23:04) SKillER: OMFG
(19:23:06) SKillER: ... THIS CHAT
(19:23:06) SKillER: !
(19:23:36) SKillER: ▲
▲ ▲
(19:23:46) SKillER: ▲
.▲ ▲
Apparently, SKillER is a newfag.
User avatar
Senethior459
Forum Staff
Posts: 2618
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Anti-Spoof

Post by Senethior459 »

Instead of "MySpaceBarBroke", couldn't you have it do this (Note: This may not be possible in GUI, I'm not sure. Can you do loops in GUI or do you have to use Custom Script for this?):

Code: Select all

local integer z=0
loop
exitwhen z>11
GetPlayerName(z)
set z=z+1
endloop
That way, it checks to see if you're spoofing any of the other players.

Hm. You could probably modify this to have a sort of banned username list (if you don't want people spoofing "Hitler", etc. in your map):

Code: Select all

local integer z=0
loop
exitwhen z>11
GetPlayerName(q[z])
set z=z+1
endloop
Just make variable q an array, and set each value in it to a player's name. If you want to ban Hitler and lol from your map, you set q[0]=Hitler and q[1]=lol. Just make sure to change the 11 in the exitwhen line to the highest [bracketed] number in your array (one less than the number of banned people; if you banned 15 people, change 11 to 14, as one of the banned people is number 0).
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Anti-Spoof

Post by Syre »

You can do loops in gui, its with this i believe

Code: Select all

For each (Integer A) from 1 to 12, do (Actions)
    Loop - Actions
However, he doesn't want to ban the players if they use the names. He just wants it so you cant spoof to them and if they do, sets their name to "i spoof like a noob" or whatever.
Image
User avatar
MySpaceBarBroke
Newcomer
Posts: 14
Joined: January 4th, 2009, 1:22 pm
Location: Australia

Re: Anti-Spoof

Post by MySpaceBarBroke »

Code: Select all

//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_Set_Name_Actions takes nothing returns nothing
    if StringLength(GetEventPlayerChatString()) >=30 then
    return
    endif
    if StringCase(SubStringBJ(GetEventPlayerChatString(), 10, StringLength(GetEventPlayerChatString())),true) != "DIOD)UNDER)CRY(" then
     call SetPlayerName( GetTriggerPlayer(), SubStringBJ(GetEventPlayerChatString(), 10, StringLength(GetEventPlayerChatString())) )
     call DBColors_Update_Name_Colored(GetPlayerId(GetTriggerPlayer()))
    endif
endfunction

//===========================================================================
function InitTrig_setname takes nothing returns nothing
    set gg_trg_setname = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_setname, Player(0), "~setname", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_setname, Player(1), "~setname", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_setname, Player(2), "~setname", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_setname, Player(3), "~setname", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_setname, Player(4), "~setname", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_setname, Player(5), "~setname", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_setname, Player(6), "~setname", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_setname, Player(7), "~setname", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_setname, Player(8), "~setname", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_setname, Player(9), "~setname", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_setname, Player(10), "~setname", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_setname, Player(11), "~setname", false )
    call TriggerAddAction( gg_trg_setname, function Trig_Set_Name_Actions )
endfunction
I know this code works, but i'm aiming for gui, if it's not possible, then i'll do it in jass