Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 7 comments
Open

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

GoogleCodeExporter opened this issue Mar 15, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

And*

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

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

  • Added labels: Type-Enhancement, Priority-Low
  • Removed labels: Type-Defect, Priority-Medium

@GoogleCodeExporter
Copy link
Author

^^. 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
Copy link
Author

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

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

    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
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant