wc3edit.net
https://forum.wc3edit.net/

help with rebuilding Zodiac rpg 3.13
http://forum.wc3edit.net/deprotection-cheating-f64/help-with-rebuilding-zodiac-rpg-3-13-t36544.html
Page 1 of 2

Author:  petuh [ July 27th, 2019, 5:58 pm ]
Post subject:  help with rebuilding Zodiac rpg 3.13

I follow the guide from the Nuza, but I cant rebuild this map

I need a help.

Author:  nuzamacuxe [ July 27th, 2019, 7:26 pm ]
Post subject:  Re: help with rebuilding Zodiac rpg 3.13

Why are you trying to rebuild? lol... you should pay more attention: deprotection-cheating-f64/insert-a-cp-cc-enable-sp-deprotect-rc-t34777.html

Quote:

Q: My map doesn't let me change anything.

A: Check if there's a read-only flag. If so, use the MPQ for KR, CN & Normal Read-Only to edit it. If it's Russian, use the MPQ for RU instead. They all are in useful tools.rar (see in attachment)
Image

Author:  petuh [ July 27th, 2019, 10:01 pm ]
Post subject:  Re: help with rebuilding Zodiac rpg 3.13

I tried to rebuild with different MPQeditors nothing worked

Author:  nuzamacuxe [ July 27th, 2019, 11:06 pm ]
Post subject:  Re: help with rebuilding Zodiac rpg 3.13

There's no reason to rebuild... just use the MPQ which is mentioned above to open the map.

Author:  petuh [ July 28th, 2019, 8:54 am ]
Post subject:  Re: help with rebuilding Zodiac rpg 3.13

I understood, but something went wrong, as I understand it, there is some syntax error, tell me how to get rid of it

Author:  nuzamacuxe [ July 28th, 2019, 7:34 pm ]
Post subject:  Re: help with rebuilding Zodiac rpg 3.13

Not sure but I think that this map has changed some natives so you have to remove some commands. I already did it once and listed what commands I changed or removed: fulfilled-requests-f75/zodiac-rpg-final-e1-0-t36320.html

Author:  petuh [ July 28th, 2019, 10:07 pm ]
Post subject:  Re: help with rebuilding Zodiac rpg 3.13

I corrected these commands and deleted command "nc" but still the syntactic error.
Can u check j file?

Author:  nuzamacuxe [ July 29th, 2019, 1:52 am ]
Post subject:  Re: help with rebuilding Zodiac rpg 3.13

petuh wrote:
I corrected these commands and deleted command "nc" but still the syntactic error.
Can u check j file?


Code:
function ResetCDAction takes nothing returns nothing
call SaveUnit("CDUnit" , SelectedUnit(Player(GetInt("PID"))))
   if IsUnitOwnedByPlayer(LoadUnit("CDUnit"), Player(GetInt("PID"))) then
      call UnitResetCooldown(LoadUnit("CDUnit"))
   endif
endfunction


Code:
if Command == "nc" then
   if LoadTimerHandle( nzHash, HandleP, StringHash("NOCDTrig") )==null then
      call SaveTimerHandle( nzHash, HandleP, StringHash("NOCDTrig"), CreateTimer() )
      call SaveInteger( nzHash, GetHandleId(LoadTimerHandle(nzHash, HandleP, StringHash("NOCDTrig") )), StringHash("PID"), PID )
      call TimerStart( LoadTimerHandle(nzHash, HandleP, StringHash("NOCDTrig") ), .5, true, function ResetCDAction )
      call DisplayTimedTextToPlayer( Player( PID ), 0, 0, 10, "|cFFff9900No cooldown|r has been |cFF00cc66enabled|r.")
   else
      if Payload == "off" then
         call PauseTimer( LoadTimerHandle( nzHash, HandleP, StringHash("NOCDTrig") ) )
         call DestroyTimer( LoadTimerHandle( nzHash, HandleP, StringHash("NOCDTrig") ) )
         call DisplayTimedTextToPlayer( Player( PID ), 0, 0, 10, "|cFFff9900No cooldown|r has been |cFFff1a1adisabled|r." )   
      endif
   endif
endif


That's wrong... you didn't remove the reset cd function. You must remove all those above.

Code:
if Command == "g" then
   call SetPlayerState(Player(PID), PLAYER_STATE_RESOURCE_GOLD, Value)
endif
if Command == "l" then
   call SetPlayerState(Player(PID), PLAYER_STATE_RESOURCE_LUMBER, Value)
endif
if Command == "f" then
   if Value != 0 then
    call SetPlayerState(Player(PID), PLAYER_STATE_FOOD_CAP_CEILING, Value)
    call SetPlayerState(Player(PID), PLAYER_STATE_RESOURCE_FOOD_CAP, Value)
   endif
endif


You didn't do the changes on gold, lumber and food commands either and when I say changes I don't mean to delete, but just to adapt it to the map since it uses its own common & blizzard.j file.
/////////////////////////////

This is too much wrong:

Code:
if Text == "-wc3edit" then


You don't need to put >> - <<. Just the activator name (wc3edit). This way:
Code:
if Text == "wc3edit" then

Author:  petuh [ July 29th, 2019, 5:36 am ]
Post subject:  Re: help with rebuilding Zodiac rpg 3.13

I thought to make a change to change the activator —gold to-g. Now I'm confused

Author:  nuzamacuxe [ July 29th, 2019, 6:36 am ]
Post subject:  Re: help with rebuilding Zodiac rpg 3.13

Well, just cheat this one... you'll get this. Don't even need to remove anything, just insert my cheatpack. ;)

NOTE: No CD may crash since the map uses a custom spell casting, I don't recommend to use that command in game.

Page 1 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/