Google-Code-Fork / tibiaapi

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

Light Size, Color -.- Fast Need. #230

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Guys do function to set player light by "number" from 0 to 215 (utevo gran 
lux). Add add alot of colors or too option to set it by number.

Also add to this option to set "Darknes" ? Simpulating night - Very need to do 
some screenshoots ^^. :)

Thanks.

Original issue reported on code.google.com by zawodowiec1532@gmail.com on 4 May 2011 at 11:36

GoogleCodeExporter commented 9 years ago
And*

Original comment by zawodowiec1532@gmail.com on 4 May 2011 at 11:37

GoogleCodeExporter commented 9 years ago
Edit this XD

    public static class LightSize
    {
        public static int None = 0;
        public static int Torch = 7;
        public static int Full = 27;
    }

    public static class LightColor
    {
        public static int None = 0;
        public static int Default = 206; // default light color
        public static int Orange = Default;
        public static int White = 215;
    }

Original comment by zawodowiec1532@gmail.com on 5 May 2011 at 12:43

GoogleCodeExporter commented 9 years ago
Once you get a player object (Player player = client.GetPlayer();) you can set 
these values like so:

player.Light = 27; //Full
player.LightColor = 215; //White

You're more than welcome to edit the LightSize and LightColor classes that 
you've shown above and submit a patch for us to incorporate.

Also, I'm not sure we can simulate a 'darkness' environment with the code we 
have now.

Original comment by joebingham07@gmail.com on 5 May 2011 at 3:23

GoogleCodeExporter commented 9 years ago
^^. Thanks very much,

I tried: Tibia.Constants.LightColor = xxx   hahahah xD

Tommorow maybe i will add some constants here ;)
Here are alot of colors to add ^^.

Original comment by zawodowiec1532@gmail.com on 5 May 2011 at 3:30

GoogleCodeExporter commented 9 years ago

Original comment by ian320 on 11 May 2011 at 2:43

GoogleCodeExporter commented 9 years ago
    public static class LightColor
    {   // All colors are dependent on the light size :-) \\ Forgot about Gren :-(

        public static int None = 0;
        public static int Navyblue = 3; // ala navy blue xD
        public static int Underwater = 35; // Light Underwater
        public static int Purple = 41; // 
        public static int Default = 206; // default light color
        public static int Orange = 198; // 
        public static int Red = 180; // Very red in drakness ;)
        public static int White = 215; // Color what have GM :P
    }

Please Make a code with which I could simulate night.. ^^. Thanks

Original comment by zawodowiec1532@gmail.com on 9 Jun 2011 at 7:57

GoogleCodeExporter commented 9 years ago
@EDIT

This program I used :-), ofc. its mine..

http://forum.otsoft.pl/showthread.php?t=38809

Original comment by zawodowiec1532@gmail.com on 9 Jun 2011 at 8:00