Anti-Spoof
Moderator: Cheaters
-
- Newcomer
- Posts: 14
- Joined: January 4th, 2009, 1:22 pm
- Location: Australia
Anti-Spoof
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
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Anti-Spoof
Its..quite hard making an anti-system for a system ive never made..lol anyways cant you just add something like 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.
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!
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.
-
- Forum Staff
- Posts: 1400
- Joined: March 17th, 2008, 12:07 am
Re: Anti-Spoof
Errr... NOT equal to?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!
I think you mean Equal to... otherwise whatever they type besides "MySpaceBarBroke" would set them to "Im a spoofed noob!"
Made by the late ILikeHacking
My quote from SKillER
Spoiler:
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Anti-Spoof
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.
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.
-
- Forum Staff
- Posts: 1400
- Joined: March 17th, 2008, 12:07 am
Re: Anti-Spoof
Oh nvm.
The actions are under Else, not then.
Didn't look at it long enough to realize that.
The actions are under Else, not then.
Didn't look at it long enough to realize that.
Made by the late ILikeHacking
My quote from SKillER
Spoiler:
-
- Forum Staff
- Posts: 2618
- Joined: June 2nd, 2007, 6:53 pm
- Title: I Just Lost the Game
Re: Anti-Spoof
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?):
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):
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).
Code: Select all
local integer z=0
loop
exitwhen z>11
GetPlayerName(z)
set z=z+1
endloop
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
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Anti-Spoof
You can do loops in gui, its with this i believe 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.
Code: Select all
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
-
- Newcomer
- Posts: 14
- Joined: January 4th, 2009, 1:22 pm
- Location: Australia
Re: Anti-Spoof
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