Help on enabling SP + Load. (Link + Uploaded)

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Lanaya
Banned-To-Be
Posts: 1378
Joined: July 28th, 2008, 6:28 pm
Title: Administrator

Re: Help on enabling SP + Load. (Link + Uploaded)

Post by Lanaya »

ok... well.. i think i fixed it

i searched looked through the WTS file and found this
Spoiler:

Code: Select all

STRING 6816
{
Single Player Mode: Save System |c00FF0000Disabled|r
}

Code: Select all

STRING 499
{
Single Player Mode: Single Player Save System |c00FF0000Enabled|r
}
so i decided to search for TRIGSTR_6816/499 in the j file and found this..
Spoiler:

Code: Select all

//===========================================================================
// Trigger: NPS Disable Single Player Password Save
//
// Turn Initially On  to enable multiplayer password ONLY.
//===========================================================================
function Trig_NPS_Disable_Single_Player_Password_Save_Actions takes nothing returns nothing
    call InitGameCacheBJ( "MapName.w3v" )
    if ( SaveGameCache(bj_lastCreatedGameCache) == true ) then
    call DisplayTimedTextToForce( GetPlayersAll(), 30, "TRIGSTR_6816" )
    else
    endif
endfunction

Code: Select all

//===========================================================================
// Trigger: Anti Cheat 2
//
// There is no way that I am aware of that gives me the ability to block players from using cheat codes in single player.  What is the fun of playing a map when you can kill everyone in one hit and then save that now overpowered hero to slaughter people on battle.net when the player had maybe 30 minutes on the map?  Therefore we have altered how the single player version saves.  This trigger detects that only one player is playing and switches to the game cache instead of the Save Code generator.  
//===========================================================================
function Trig_Anti_Cheat_2_Func001C takes nothing returns boolean
    if ( not ( udg_Multiplayer == true ) ) then
        return false
    endif
    return true
endfunction

function Trig_Anti_Cheat_2_Actions takes nothing returns nothing
    if ( Trig_Anti_Cheat_2_Func001C() ) then
        call DisplayTimedTextToForce( GetPlayersAll(), 30, "TRIGSTR_9033" )
    else
        call DisableTrigger( gg_trg_NPS_Save )
        call DisplayTimedTextToForce( GetPlayersAll(), 30, "TRIGSTR_499" )
        call EnableTrigger( gg_trg_SP_Load_Hero )
        call EnableTrigger( gg_trg_SP_Save_hero_before_Victory )
    endif
endfunction
so i added "call EnableTrigger( gg_trg_SP_Load_Hero )" and "call EnableTrigger( gg_trg_SP_Save_hero_before_Victory )"
under "call DisplayTimedTextToForce( GetPlayersAll(), 30, "TRIGSTR_6816" )"

so it'll look like this
Spoiler:

Code: Select all

//===========================================================================
// Trigger: NPS Disable Single Player Password Save
//
// Turn Initially On  to enable multiplayer password ONLY.
//===========================================================================
function Trig_NPS_Disable_Single_Player_Password_Save_Actions takes nothing returns nothing
    call InitGameCacheBJ( "MapName.w3v" )
    if ( SaveGameCache(bj_lastCreatedGameCache) == true ) then
    call DisplayTimedTextToForce( GetPlayersAll(), 30, "Save System |c00FF0000Enabled by Lanaya|r" )
    call EnableTrigger( gg_trg_SP_Load_Hero )
    call EnableTrigger( gg_trg_SP_Save_hero_before_Victory )
    else
    endif
endfunction
dont forget to delete the call disabletrigger( gg_trg_nps_save ) though.
Image
League of legends North America - Nietono
tlsdbcjf
Newcomer
Posts: 23
Joined: November 1st, 2008, 10:17 am

Re: Help on enabling SP + Load. (Link + Uploaded)

Post by tlsdbcjf »

nice haxorico and lanaya
thx alot :DD
I'm at an net cafe so I can't access my stuff @ home yet

ill try it when i get home in like 3 hours :DD

thanks verymuch again :)