Google-Code-Fork / tibiaapi

Automatically exported from code.google.com/p/tibiaapi
MIT License
0 stars 0 forks source link

Code: Full Light, global, all floors. #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
To Addresses/Map.cs:
        /// <summary>
        /// Global light, all floors, used for improving levelspy
        /// </summary>
        public static uint FullLightNop = 0x4E1CA9;
        public static byte[] FullLightNopDefault = { 0x7E, 0x05 };
        public static byte[] FullLightNopEdited = { 0x90, 0x90 };

        public static uint FullLightAdr = 0x4E1CAC;
        public static byte FullLightAdrDefault = 0x80;
        public static byte FullLightAdrEdited = 0xFF;

To Objects/Map.cs:
        #region Full Light
        /// <summary>
        /// Enable or disable full light.
        /// </summary>
        /// <param name="enable"></param>
        /// <returns></returns>
        public void FullLight(bool enable)
        {
            if (enable)
            {
                client.WriteBytes(Addresses.Map.FullLightNop,
Addresses.Map.FullLightNopEdited, 2);
                client.WriteByte(Addresses.Map.FullLightAdr,
Addresses.Map.FullLightAdrEdited);
            }
            else
            {
                client.WriteBytes(Addresses.Map.FullLightNop,
Addresses.Map.FullLightNopDefault, 2);
                client.WriteByte(Addresses.Map.FullLightAdr,
Addresses.Map.FullLightAdrDefault);
            }
        }
        #endregion

That's it, cute full light

Original issue reported on code.google.com by mega...@gmail.com on 12 Aug 2008 at 2:16

GoogleCodeExporter commented 9 years ago
Thank you for your help! I have added you as a probationary project member. If 
you
like, you can make the changes you have specified and mark the issues as 
completed.
Thanks again!

Original comment by ian320 on 12 Aug 2008 at 2:03

GoogleCodeExporter commented 9 years ago

Original comment by mega...@gmail.com on 12 Aug 2008 at 4:27