SRL Archive - Suggestions

Function to let the user pick a color


rj

2013-04-08 00:07:19

A long time ago I attempted to use a script, first it would bring up a inputquery and ask if i was logged in, then it would ask me to pick a color and it would freeze the client and choose the color picker and then it would save that color!

there should be some sort of function that lets the user do this! The function could be something like:

ColorPicker(delay:Integer, activate client:boolean, color: var)

So if I wanted the user to pick the rock color and it active the client 400 ms after the script starts It would look like:

ColorPicker(400, true, rockcol)

Flight

2013-04-08 00:21:09

I'm sorry but I just can't think of any instance in which this would be needed. If a script doesn't have all the colors it needs to run and requires user input then I'd consider it incomplete in the first place.

The example of picking a color for a rock isn't a solid one. The script should already know the color of whatever rock it will be looking for. So do you have a different example of where this type of function would be useful?

Dgby714

2013-04-25 03:01:13

I'm pretty sure I wrote a script version of the colour picker awhile back for someone…. No clue who tho…

I'll see if I can find it =P

Edit: Found it -> http://pastebin.com/N5b6XJ5y
Edit 2: Found a newer one -> http://pastebin.com/xJ5Wuz0s

Edit 4: Here is the difference, First URL is 1, Second is 2.

Edit 3: I can write another soon, tho it will be for Lape and will use it's own Client as not to disturb the currently selected target.

euphemism

2013-04-25 03:06:10

From: Dgby714
I'm pretty sure I wrote a script version of the colour picker awhile back for someone…. No clue who tho…

I'll see if I can find it =P


You did it for Narcle and his Fast Fighter, I believe.