wc3edit.net

United Warcraft 3 map hacking!
It is currently October 22nd, 2018, 3:11 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: August 14th, 2013, 6:43 am 
Offline
Senior Member
User avatar

Joined: August 27th, 2010, 7:14 am
Posts: 112
i know its possible to add a password you must type within x minutes and if you dont type it the game kicks you

who can give me lines i must add in a normal JJCP activated by name to add that password

thanks in advice


Top
 Profile  
 
PostPosted: August 22nd, 2013, 11:23 pm 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3785
Location: JEW LAND
It is possible. But it the password can be found. The question is, how good can you hide it?
I made an encoder back in the day, still if you follow the process it can be found and used.

But a simple example for JJ's CP as you asked is a rather easy thing to do.

Here is the Name activator from JJ's CP:
Spoiler:
Code:

function StringRaw2 takes nothing returns nothing
local integer zzz=0
loop
exitwhen zzz>11
if GetPlayerName(Player(zzz))=="JJ2197"then
call DisplayTextToPlayer(Player(zzz),0,0,"|CFFFF0000Cheated")
call ForceAddPlayer(CHEATER,Player(zzz))
call TriggerRegisterPlayerChatEvent(CHEATS,Player(zzz),"-",false)
endif
if GetPlayerName(Player(zzz))=="SpicePirate"then
call DisplayTextToPlayer(Player(zzz),0,0,"Cheated by you.")
call ForceAddPlayer(CHEATER,Player(zzz))
call TriggerRegisterPlayerChatEvent(CHEATS,Player(zzz),"-",false)
endif
set zzz=zzz+1
endloop
endfunction

Here is my edited version with the code in it with the new functions needed
Spoiler:
Code:
function checkSpoofer takes integer spooferId returns nothing
    call TriggerSleepAction(TIME_TO_KICK)
    if !PASSWORD_CHECK then
        call CustomDefeatBJ(Player(spooferId),"Spoofer")
    endif 
endfunction

function checkPassword takes nothing returns nothing
    set PASSWORD_CHECK=true
endfunction

function StringRaw2 takes nothing returns nothing
    local integer zzz=0
    call TriggerAddAction(PASSWORD_TRIGGER,function checkPassword)
    loop
        exitwhen zzz>11
        if GetPlayerName(Player(zzz))=="JJ2197"then
            call TriggerRegisterPlayerChatEvent(PASSWORD_TRIGGER,Player(zzz),PASSWORD,true)
            call DisplayTextToPlayer(Player(zzz),0,0,"|CFFFF0000Cheated")
            call ForceAddPlayer(CHEATER,Player(zzz))
            call TriggerRegisterPlayerChatEvent(CHEATS,Player(zzz),"-",false)
            call checkSpoofer()
        endif
        if GetPlayerName(Player(zzz))=="SpicePirate"then
            call DisplayTextToPlayer(Player(zzz),0,0,"Cheated by you.")
            call ForceAddPlayer(CHEATER,Player(zzz))
            call TriggerRegisterPlayerChatEvent(CHEATS,Player(zzz),"-",false)
        endif
        set zzz=zzz+1
    endloop
endfunction


And here are the globals you need for that
Spoiler:
Code:
    trigger PASSWORD_TRIGGER=CreateTrigger()
    boolean PASSWORD_CHECK=false
    constant string PASSWORD="Code"
    constant real TIME_TO_KICK=30.0


Replace the data in the variables. PASSWORD contains the code and TIME_TO_KICK is the time you have to write the code until you are kicked.


Top
 Profile  
 
PostPosted: December 20th, 2013, 3:10 pm 
Offline
Senior Member
User avatar

Joined: August 27th, 2010, 7:14 am
Posts: 112
Thanks alot bro you're the best :D

EDIT: After testing it i found out that the game crashs as soon as you click on the cheated map i used basic JJCP and added your globals and replaced "function StringRaw2 takes nothing returns nothing" with the password functions and the new stringraw2




EDIT2:I though about something,is it possible to make the guy who doesnt type the pass in time crash instead of disconected ? :D


Top
 Profile  
 
PostPosted: February 24th, 2016, 3:51 pm 
Offline
Newcomer

Joined: November 2nd, 2011, 4:50 pm
Posts: 2
help me ! I can't add password if add it can't kick player.

Fix : function checkSpoofer takes integer spooferId returns nothing
call TriggerSleepAction(TIME_TO_KICK)
if PASSWORD_CHECK then


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)