patch making / all PK maps portal's time editing

Joined
Feb 26, 2009
Messages
3
Reaction score
0
1. hi there, can anyone tell me how to make patch or tell me a link of guide on making patch so that others can patch it to their client and join my private server?

2. i would also like to know how to edit the opening time of PK maps like CA,DW,FC,DS

need it so bad.. if anyone can i help i would be very greatfull.. tnx in advance.. :):
 
i find easy way to do that ,,, change your private server pc time,, if chaos argent open 11pm and your pc current time 5pm change it to 10:59 pm you will find the portal opend in time 11pm
 
reply for second question: change time of opening mazes

find: your server files -> resource -> garner2 (for Chaos)
-> abandonedcity (for FC)
-> darkswamp (for DS)
-> puzzleworld (for DW)

find in choosed folder file ctrl.lua in this file find code (this guide for Chaos):

Code:
function init_entry(map)

    SetMapEntryMapName(map, "darkblue") 
    SetMapEntryTime(map, "2009/02/13/15/0", "0/2/0", "0/0/30", "0/0/45") 

end

"2009/02/13/15/0" - year/month/day/time (hour)/ time (min) - first open of maze, its counting point. in this code Chaos was opened at 15p.m. 13 february 2009

"0/2/0" - day/hour/minute - period of time between the opening, in this case portal opening every two hours from the counting point (15p.m. 13 feb 2009)

"0/0/30" - day/hour/minute - open time portal, portal will be open 30 minutes

"0/0/45" - day/hour/minute - open time map, 45 minutes close map


this scheme works in all mazes, but in Chaos's (garner2) ctrl.lua you must delete this fragment of code:

Code:
function can_open_entry_garner2( map )
--   local time = GetTickCount ( )
   local Now_Time = GetNowTime()
 if Now_Time ==14 or Now_Time == 20 then
      return 1
   else
      return 0
   end
end

otherwise Chaos will not work

try&enjoy!



P.S. sorry for bad english, russian user =)
 
Back