wc3edit.net

United Warcraft 3 map hacking!
It is currently April 28th, 2024, 1:15 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: May 11th, 2009, 2:46 am 
Offline
Forum Spammer
User avatar

Joined: November 21st, 2008, 9:36 am
Posts: 505
Title: Coleen!
now thx to you i hacked my first RPG i enabled the single player and put cheats into it but i cannot -load and -load2 it doesn't let me use that command while im in single player now could you teach me how to remove that? so that i can use -load and -load2 while im in single player

_________________
Image


Top
 Profile  
 
PostPosted: May 12th, 2009, 8:00 pm 
Offline
Forum Staff
User avatar

Joined: June 2nd, 2007, 6:53 pm
Posts: 2732
Title: I Just Lost the Game
Search for "-load"
When you find the trigger that checks if players type it, then see what function it is associated with/what function it's in
Search for DisableTrigger(function), replacing function with the name of the function you found in the last step (if the function you found is function Save, don't make it DisableTrigger(function Save), just DisableTrigger(Save) )
Delete the function/part of the function that you found above that disables the save trigger
Run syntax checker (if you delete the whole trigger, then it may still be called in function config or something, and syntax checker will tell you if those references exist)
Save
Put it back into the map
Compact(Flush)

_________________
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle


Top
 Profile  
 
PostPosted: May 13th, 2009, 9:39 am 
Offline
Forum Spammer
User avatar

Joined: November 21st, 2008, 9:36 am
Posts: 505
Title: Coleen!
so which is the function here?
Code:
set an=CreateTrigger()
call TriggerRegisterPlayerChatEvent(an,Player(0),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(1),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(2),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(3),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(4),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(5),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(6),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(7),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(8),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(9),"-load ",false)
call TriggerAddCondition(an,Condition(function lN))
call TriggerAddAction(an,function qN)
set nn=CreateTrigger()
call TriggerRegisterPlayerChatEvent(nn,Player(0),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(1),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(2),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(3),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(4),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(5),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(6),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(7),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(8),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(9),"-load2 ",false)
call TriggerAddCondition(nn,Condition(function sN))
call TriggerAddAction(nn,function ZN)

thats all the code -load and -load2

_________________
Image


Top
 Profile  
 
PostPosted: May 13th, 2009, 12:50 pm 
Offline
Senior Member
User avatar

Joined: January 25th, 2008, 5:20 pm
Posts: 170
Title: Lazy
you enabled singleplayer right? look in the trigger which disables singleplayer(with whatever eg. defeat) and look if there's something like
Senethior459 wrote:
DisableTrigger

just delete this line or change it to
call DoNothing()

edit: here's the jass script of the newest version(singleplayer enabled by me) and saving works fine


You do not have the required permissions to view the files attached to this post.

_________________
Image
Sig by TheWand


Last edited by Bl00D R3av3r on May 13th, 2009, 1:07 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: May 13th, 2009, 1:07 pm 
Offline
Forum Spammer
User avatar

Joined: November 21st, 2008, 9:36 am
Posts: 505
Title: Coleen!
yes i enabled single player but it not enables -load -load2 it will only work if there were 2 players

_________________
Image


Top
 Profile  
 
PostPosted: May 13th, 2009, 1:08 pm 
Offline
Senior Member
User avatar

Joined: January 25th, 2008, 5:20 pm
Posts: 170
Title: Lazy
ok i'm trying^^

edit: seems like it's not working but it could be my failure(maybe i missspelled my code -.-)
i think you should try it and btw i can't find anything that prevents you from loading so just try it i did my best

_________________
Image
Sig by TheWand


Top
 Profile  
 
PostPosted: May 14th, 2009, 1:39 am 
Offline
Forum Staff
User avatar

Joined: June 2nd, 2007, 6:53 pm
Posts: 2732
Title: I Just Lost the Game
qweasd, look at the code.
For the -load part, it has this under it:
call TriggerAddCondition(an,Condition(function lN))
call TriggerAddAction(an,function qN)
So, function qN is the main function; that's the one that actually encodes the data and gives you the save code. But it only does it if function IN says yes, so you should look at IN. Sometimes, it will be an anti-singleplayer or will call and anti-singleplayer function. If it does, then remove that part of it. Either way, then look for DisableTrigger(qN)
And for -load2, look at sN and search for DisableTrigger(ZN).

_________________
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 21 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)