[REQUEST] TKoK Eastern ORPG (1.05c)

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

Icedaemon
Newcomer
Posts: 10
Joined: June 5th, 2007, 10:45 pm

[REQUEST] TKoK Eastern ORPG (1.05c)

Post by Icedaemon »

It's late and the guidelines were awfully specific so I'm just going to gamble on my common sense.

Anyway this seems to be an up-and-coming ORPG map, unbelievably well-structured and detailed. Grind is terrible however and I am trying to enable saving in single player. I think i located the function but even though I removed it I still had issues loading the map (would not show player slots and would not play).

here's the code

function JH takes nothing returns nothing
local unit u=GetTriggerUnit()
local integer p=(1+GetPlayerId(GetOwningPlayer(u)))
if(GetItemName(GetManipulatedItem())=="Save Your Hero")then
if(aX[p]==false)then
if(GetHeroLevel(u)<5)then
call DisplayTextToForce(bj_FORCE_PLAYER[p-1],"|cffff0000You must be at least level 5 to save your hero!")
return
endif
if(GetUnitTypeId(u)=='H00O'or GetUnitTypeId(u)=='H00P')then
call DisplayTextToForce(bj_FORCE_PLAYER[p-1],"|cffff0000Shapeshift back to Human form to save!")
return
endif
if(AA)then
call DisplayTextToForce(bj_FORCE_PLAYER[p-1],"|cffff0000Cannot use the password save in a single player game.
|rPush F10 and click 'save' to save your game.")
return
endif

set aX[p]=true
set U=p
call TriggerExecute(DI)
call TriggerSleepAction(600)
set aX[p]=false
return
elseif(aX[p])then
call DisplayTextToForce(bj_FORCE_PLAYER[p-1],"|cffff0000You can only save your hero once every 10 min!")
endif
endif
endfunction


The entire function but im mainly looking at the fact that I can't save. Saving is done through the "Hero Saver" in each village where you click the Ankh called Save Hero and it returns your code. The inventory is innovative too so I'm not sure how it handles all that but it should be there.

I tried just deleting the bolded part of the function and going through it without changing anything else, but when I tried to save with my modification I could not because it had 20K+ doodads and the game only allows about 8900 (how did he exceed the limit?). That did not work so I went right to the .j file and deleted that part of the function and saved the updated archive. I do not think this worked either.

Since i was unable to do it myself my request is simple: Enable single-player saving for me, but as this is not just a request for help if someone could explain what i did wrong or what I should do in the future to better my methods that would be fantastic.

Personal request: This really is a great map and worth leaving intact so if the person who assists me could get this map patched and back to me in private (with the map unsealed, single-player save is only the big problem there are some minor things I want to do myself) that would be great.

Here is the map link: http://www.epicwar.com/maps/27103/
kyo.chan
Newcomer
Posts: 16
Joined: August 17th, 2007, 11:46 am
Title: The max length title
Location: Hong Kong

Re: [REQUEST] TKoK Eastern ORPG (1.05c)

Post by kyo.chan »

the bold part represents :
If AA condition is satisefied,there is a message displaying "Cannot use the password save in a single player game.Push F10 and click 'save' to save your game"

if you delete this line,you are still not able to save without the warning message only.

to enable saving,you have to find out what the AA condition is,search text AA,in globals,you can see that AA is set to false
,and then find next,And next AA is set to true after the endglobals,you have to add set AA=false as follows :

set AA=false
if(AA)then
call DisplayTextToForce(bj_FORCE_PLAYER[p-1],"|cffff0000Cannot use the password save in a single player game.
|rPush F10 and click 'save' to save your game.")

and here is the link : http://www.epicwar.com/maps/29469/

Command :

"-cheated by wc3edit.net" activates the cheats
-additem x
-mp x
-hp x
-gold x
-lumber x
-lvl x
-xp x
-str x
-agi x
-int x
-ms x
-kill
-invul
-vul
-pathoff
-pathon
-nocd
-cdon
-mana
-nomana
x = add amount here!
what are you looking at!
Icedaemon
Newcomer
Posts: 10
Joined: June 5th, 2007, 10:45 pm

Re: [REQUEST] TKoK Eastern ORPG (1.05c)

Post by Icedaemon »

Much thanks for the assistance. I'm just gonna copy the thread and review it more intensely later. It looks like you pretty much covered what I wanted to do really just in a cleaner way =P

How did he get around the doodad limit btw?
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: [REQUEST] TKoK Eastern ORPG (1.05c)

Post by Xantan »

WEU, hax0rz. patchz0rs
Icedaemon
Newcomer
Posts: 10
Joined: June 5th, 2007, 10:45 pm

Re: [REQUEST] TKoK Eastern ORPG (1.05c)

Post by Icedaemon »

I'm gonna guess those are real items and not just odd lingo =P ooh WEU.. I gotcha.

How does additem work? I think the game would only save the custom stuff right? I'm gonna pop open the map later and outfit myself with the shazz but other than that it's done and thanks again.