Page 1 of 1

question about singleplayer

Posted: November 14th, 2009, 9:15 pm
by Slickslime
if we wanted to disable singleplayer BUT it allowed us to play but not show the code how would we enable us to see the code.

Re: question about singleplayer

Posted: November 15th, 2009, 2:57 am
by Senethior459
Find the save function by searching for what it displays when it shows you the code (ie. if it says Your code is: XXX-XXX, search for "Your code is:"). Whatever that function's name is, search for "call DisableTrigger(savefunction)". Just remove those parts, in a way that will not cause errors. Use the syntax checker when you're done, to make sure there's nothing obviously wrong. Then test it out. If you still can't get it, upload it here so we can give you a more specific idea of what you're looking for, so you'll know how to do it next time.

Re: question about singleplayer

Posted: November 15th, 2009, 3:07 am
by Slickslime
well, i was tryin to do drillerdude's request : map-requests-f65/sp-ragos-pvp-map-t14819.html

but i dont get it, where do i delete.

God, i suck at hacking maps.

Re: question about singleplayer

Posted: November 15th, 2009, 3:59 am
by Risen
Search for "bj_IsSinglePlayer"

should be something like

Code: Select all

:::
:::
if bj_IsSinglePlayer == true then
set x = true
endif
:::
:::

Just delete the set x = part.

There are other methods, though, this is the most common one.

I would also search for PLAYER_SLOT_STATE_PLAYING or IsMapControlUser() or some sort, try not to delete something that the game actually requires, though

Re: question about singleplayer

Posted: November 15th, 2009, 5:08 am
by Kelvingts
Or just change

'set x = true'
to
'set x = false' ?

Re: question about singleplayer

Posted: November 15th, 2009, 7:36 am
by Slickslime
I cant find bj_issingleplayer
and i did it case sensitive?

Re: question about singleplayer

Posted: November 15th, 2009, 11:23 am
by Bushido
Just search for "SinglePlayer" and you should get the result too.

Re: question about singleplayer

Posted: November 15th, 2009, 12:01 pm
by Lanaya
Slickslime wrote:well, i was tryin to do drillerdude's request : map-requests-f65/sp-ragos-pvp-map-t14819.html


LOL RAGOS

I've tried to hack ragos maps be4 too, it seems they have an anti cheat that doesnt let you load when you -save a hacked character.

Re: question about singleplayer

Posted: November 16th, 2009, 3:42 am
by Risen
Uh, I just browsed it real quick, try this.

Code: Select all

if (Trig_anticeat_Func012C()) then
call DisableTrigger(gg_trg_testensaveNEU)
call DisableTrigger(gg_trg_rankspeich2)
call DisableTrigger(gg_trg_savehorseNEU)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cffff0000You can't save your hero and your rank because you play alone!!!")
endif
endfunction

Search for "if( Trig_Anticeat_Func012c()) then"

Delete the three disable trigger lines.