Great work! 100% using this!
@Mixster, editing srl mean that if you release a script, user has to edit srl to.
Great work! 100% using this!
@Mixster, editing srl mean that if you release a script, user has to edit srl to.
I guess an option to not click could be added, although I don't see why you'd want this.
Also thanks for the comments
Finally, I've altered it to accept a variant as identifier, which keeps simplicity of use for newbies and keeps the more advanced constant-users happy.
~RM
Because clicking should be customizable, this is too much like
SCAR Code:MineRock();
Bank();
GoToMine();
//...
Clicking is something important that I believe should be done individually in a script.
E: oh, and do the new versions return an integer when you declare the object? Can't look atm.
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
Because you already can use constants, in case you forgot what a variant is Also, you'd have me edit a lot of code for something that is barely useful
also, http://www.villavu.com/forum/showthr...411#post658411
~RM
can i use this function for finding bankchest at castlewars?
i just want use it as find function i dont want it click on it.
Last edited by wesleyxD; 11-23-2009 at 05:43 PM.
I'm have problems trying to use this. I made an object of the Draynor bank booth. The finding works awesome, it always moves the mouse to the closest booth first, but it never clicks.
When I set the uptext to 'alk' (which is not what I want), I get this:SCAR Code:program New;
{.include SRL/SRL/Misc/Smart.scar}
{.include SRL/SRL.scar}
{.include SRL/SRL/misc/SmartColors.scar}
const
DRAY_BANK_BOOTH = 0;
procedure CreateMSObject(theObject: Integer);
begin
case theObject of
DRAY_BANK_BOOTH:
begin
MakeObj(DRAY_BANK_BOOTH, 6909561, 7, 0.45, 0.50, ['ooth'], ['uickly']);
SetupSmartColorsDetails(DRAY_BANK_BOOTH, 80, 200, 10, 15, 7, 5, RIGHT_CLICK, 0);
end;
end;
end;
begin
Smart_Server := 152;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
ActivateClient;
CreateMSObject(DRAY_BANK_BOOTH);
SmartColors(DRAY_BANK_BOOTH);
Wait(RandomRange(250, 500));
if (BankScreen) then
Writeln('Yay!')
else
Writeln('Awe!');
end.
When I set it to 'ooth', I get this:Code:SRL Compiled in 15 msec SMART Initialized. Loaded: Server 152, Members: False, Signed: True, Super Detail: False. SC Array: 0 first finder found text gathering colors unable to gather colors Uptext: Use Bank booth / 4 more options found text gathering colors in color gatherer Analyse 5856616: 210 Analyse 6053989: 210 Analyse 6185578: 210 Analyse 6514797: 210 Analyse 6054246: 210 Analyse 6251367: 210 Analyse 5988456: 210 Analyse 6383212: 210 Analyse 6251371: 210 Analyse 6382698: 210 Analyse 6316907: 210 Analyse 6054247: 210 Analyse 6185582: 210 Analyse 6711924: 210 Analyse 7238266: 210 Analyse 7698558: 210 Analyse 6185586: 210 Analyse 6580603: 210 Analyse 6382963: 210 Analyse 6382962: 210 Analyse 5856621: 210 Analyse 6185587: 210 Analyse 5922412: 210 Analyse 6580599: 210 Analyse 6383211: 210 Analyse 6185579: 210 Analyse 7040627: 210 Analyse 6316916: 210 Analyse 6317173: 210 Analyse 6251123: 210 Analyse 7106683: 210 Analyse 6712180: 210 Analyse 7238011: 210 Analyse 6185584: 210 Analyse 6777979: 210 Analyse 6975094: 210 Analyse 5988458: 210 Analyse 6514544: 210 Analyse 7303803: 210 Analyse 7632765: 210 Analyse 6119526: 210 Analyse 6645871: 210 Analyse 6909043: 210 Analyse 6251630: 210 Analyse 7106165: 210 Analyse 6382956: 210 Analyse 6580334: 210 Analyse 6449005: 210 Analyse 6317160: 210 Analyse 6251369: 210 Analyse 6383215: 210 Analyse 6251111: 210 Analyse 6119785: 210 Organizing colors Done organizing unable to gather colors found text gathering colors in color gatherer Analyse 7238011: 210 Analyse 6185584: 210 Analyse 6777979: 210 Analyse 6975094: 210 Analyse 5988458: 210 Analyse 6514544: 210 Analyse 7303803: 210 Analyse 7632765: 210 Analyse 6119526: 210 Analyse 6645871: 210 Analyse 6909043: 210 Analyse 6251630: 210 Analyse 7106165: 210 Analyse 6382956: 210 Analyse 6580334: 210 Analyse 6449005: 210 Analyse 6317160: 210 Analyse 6185578: 210 Analyse 6251369: 210 Analyse 6383215: 210 Analyse 6251111: 210 Analyse 6185579: 210 Analyse 7238266: 210 Analyse 6119785: 210 Analyse 6185576: 210 Analyse 6119788: 210 Analyse 5856873: 210 Analyse 6974835: 210 Analyse 6119791: 210 Analyse 5922666: 210 Analyse 6053996: 210 Analyse 7435387: 210 Analyse 6119781: 210 Analyse 5922664: 210 Analyse 5856870: 210 Analyse 6119784: 210 Analyse 5988457: 210 Analyse 5922662: 210 Analyse 5988201: 210 Analyse 6054246: 210 Analyse 6053990: 210 Analyse 6711920: 210 Analyse 6317161: 210 Analyse 6711919: 210 Analyse 6185317: 210 Analyse 6514540: 210 Organizing colors Done organizing unable to gather colors found text gathering colors unable to gather colors Uptext: Use Bank booth / 4 more options Successfully executed
The uptext part only shows up when it mouses over the unused bank booths.Code:SRL Compiled in 16 msec SMART Initialized. Loaded: Server 152, Members: False, Signed: True, Super Detail: False. SC Array: 0 first finder found text gathering colors in color gatherer Analyse 5988458: 210 Analyse 6383212: 210 Analyse 6185578: 210 Analyse 6514797: 210 Analyse 6054246: 210 Analyse 5988456: 210 Analyse 6316907: 210 Analyse 6054247: 210 Analyse 6185582: 210 Analyse 6711924: 210 Analyse 7238266: 210 Analyse 7698558: 210 Analyse 6185586: 210 Analyse 6580603: 210 Analyse 6382963: 210 Analyse 6382962: 210 Analyse 5988453: 210 Analyse 6054000: 210 Analyse 6449015: 210 Analyse 6316651: 210 Analyse 5988454: 210 Analyse 6185579: 210 Analyse 6316915: 210 Analyse 6975104: 210 Analyse 6646395: 210 Analyse 6449012: 210 Analyse 6843514: 210 Analyse 5922666: 210 Analyse 7303803: 210 Analyse 6580339: 210 Analyse 7303545: 210 Analyse 5725032: 210 Analyse 5922410: 210 Analyse 6449007: 210 Analyse 6119525: 210 Analyse 6316906: 210 Analyse 6974838: 210 Analyse 7238008: 210 Analyse 7172215: 210 Analyse 6119786: 210 Analyse 6646387: 210 Analyse 6514544: 210 Analyse 6382956: 210 Analyse 6842994: 210 Analyse 6119788: 210 Organizing colors Done organizing unable to gather colors found text gathering colors unable to gather colors found text gathering colors in color gatherer Analyse 5988453: 210 Analyse 6054000: 210 Analyse 6449015: 210 Analyse 6316651: 210 Analyse 5988454: 210 Analyse 6185579: 210 Analyse 6316915: 210 Analyse 6975104: 210 Analyse 6646395: 210 Analyse 6449012: 210 Analyse 6843514: 210 Analyse 5922666: 210 Analyse 7303803: 210 Analyse 6580339: 210 Analyse 7303545: 210 Analyse 5725032: 210 Analyse 5922410: 210 Analyse 6449007: 210 Analyse 6119525: 210 Analyse 6316906: 210 Analyse 6974838: 210 Analyse 7238008: 210 Analyse 6185578: 210 Analyse 7172215: 210 Analyse 5988456: 210 Analyse 6119786: 210 Analyse 6646387: 210 Analyse 6514544: 210 Analyse 6382956: 210 Analyse 6842994: 210 Analyse 6119788: 210 Analyse 6449005: 210 Analyse 6842992: 210 Analyse 5988460: 210 Analyse 6119787: 210 Analyse 6054249: 210 Analyse 6053996: 210 Analyse 7304056: 210 Analyse 6119781: 210 Analyse 5922664: 210 Analyse 5856870: 210 Analyse 5988457: 210 Analyse 5922662: 210 Analyse 6382955: 210 Analyse 5922661: 210 Analyse 6053990: 210 Analyse 6711920: 210 Analyse 6317161: 210 Analyse 6185317: 210 Organizing colors Done organizing unable to gather colors found text gathering colors unable to gather colors found text gathering colors in color gatherer Analyse 5988461: 210 Analyse 6975105: 210 Analyse 6909311: 210 Analyse 7698559: 210 Analyse 6251120: 210 Analyse 8158856: 210 Analyse 6711932: 210 Analyse 6580603: 210 Analyse 6909312: 210 Analyse 6974584: 210 Analyse 6777724: 210 Analyse 5988207: 210 Analyse 6317173: 210 Analyse 6382959: 210 Analyse 6448757: 210 Analyse 6646139: 210 Analyse 5988456: 210 Analyse 5725034: 210 Analyse 7830407: 210 Analyse 6448749: 210 Analyse 6974843: 210 Analyse 5856618: 210 Analyse 6317171: 210 Analyse 7500923: 210 Analyse 6449008: 210 Analyse 6251379: 210 Analyse 7369337: 210 Analyse 5791082: 210 Analyse 5922666: 210 Analyse 5725032: 210 Analyse 5988198: 210 Analyse 6251371: 210 Analyse 5790823: 210 Analyse 7172219: 210 Analyse 7304063: 210 Analyse 6712180: 210 Organizing colors Done organizing unable to gather colors found text gathering colors in color gatherer Analyse 5790823: 210 Analyse 7172219: 210 Analyse 6251371: 210 Analyse 6317171: 210 Analyse 7304063: 210 Analyse 6712180: 210 Analyse 5856621: 210 Analyse 6449014: 210 Analyse 5725032: 210 Analyse 6514553: 210 Analyse 6580603: 210 Analyse 6646134: 210 Analyse 7238015: 210 Analyse 8159113: 210 Analyse 7830409: 210 Analyse 6185061: 210 Analyse 6646391: 210 Analyse 6251116: 210 Analyse 5922406: 210 Analyse 5922664: 210 Analyse 6251372: 210 Analyse 5922407: 210 Organizing colors Done organizing unable to gather colors found text gathering colors unable to gather colors found text gathering colors in color gatherer Analyse 7106681: 210 Analyse 6580333: 210 Analyse 5988202: 210 Analyse 6909302: 210 Analyse 5725289: 210 Analyse 6646395: 210 Analyse 6449014: 210 Analyse 6843515: 210 Analyse 6053997: 210 Analyse 6251380: 210 Analyse 6514553: 210 Analyse 6711929: 210 Analyse 7238017: 210 Analyse 6316915: 210 Analyse 6515063: 210 Analyse 5856871: 210 Analyse 5922413: 210 Analyse 7040896: 210 Analyse 6514810: 210 Analyse 7106171: 210 Analyse 6974578: 210 Analyse 8159113: 210 Analyse 7830409: 210 Analyse 6448492: 210 Analyse 7171959: 210 Analyse 6185581: 210 Analyse 5791080: 210 Analyse 5922406: 210 Analyse 5922664: 210 Analyse 6251372: 210 Analyse 5922407: 210 Organizing colors Done organizing unable to gather colors found text gathering colors in color gatherer Analyse 5922661: 210 Analyse 6975091: 210 Analyse 6448490: 210 Analyse 5988202: 210 Analyse 6514539: 210 Analyse 6251372: 210 Analyse 6317419: 210 Analyse 6317164: 210 Analyse 6317162: 210 Analyse 6382956: 210 Analyse 6119785: 210 Analyse 6251370: 210 Analyse 5988454: 210 Analyse 5988453: 210 Analyse 6185577: 210 Analyse 6777711: 210 Analyse 6119784: 210 Analyse 7304057: 210 Analyse 6711923: 210 Analyse 6185575: 210 Analyse 6119786: 210 Analyse 6251113: 210 Analyse 5856614: 210 Analyse 6185320: 210 Analyse 6185836: 210 Analyse 6054247: 210 Analyse 6185583: 210 Analyse 6382185: 210 Analyse 6514543: 210 Analyse 6449005: 210 Analyse 6251378: 210 Analyse 6382966: 210 Analyse 6382962: 210 Analyse 6711920: 210 Analyse 6185587: 210 Analyse 6514809: 210 Analyse 6383222: 210 Analyse 6712179: 210 Organizing colors Done organizing unable to gather colors found text gathering colors in color gatherer Analyse 6317170: 210 Analyse 6449013: 210 Analyse 6185579: 210 Analyse 6843504: 210 Analyse 7961479: 210 Analyse 6119787: 210 Analyse 5790826: 210 Analyse 6909310: 210 Analyse 6383223: 210 Analyse 6975105: 210 Analyse 5988462: 210 Analyse 5856620: 210 Analyse 7698561: 210 Analyse 6514553: 210 Analyse 6580346: 210 Analyse 6711932: 210 Analyse 6843256: 210 Analyse 6909312: 210 Analyse 6974584: 210 Analyse 6580603: 210 Analyse 5988207: 210 Analyse 6317173: 210 Analyse 6777725: 210 Analyse 6448493: 210 Analyse 7369859: 210 Analyse 6382706: 210 Analyse 6053475: 210 Analyse 5790823: 210 Analyse 7698564: 210 Analyse 6119781: 210 Analyse 6974579: 210 Analyse 6317171: 210 Analyse 6251378: 210 Analyse 7040373: 210 Analyse 6053996: 210 Analyse 6119793: 210 Analyse 7106165: 210 Analyse 6053997: 210 Analyse 5791082: 210 Analyse 6711663: 210 Analyse 7895939: 210 Analyse 5922666: 210 Analyse 5725032: 210 Analyse 5922664: 210 Organizing colors Done organizing unable to gather colors found text gathering colors in color gatherer Analyse 6251378: 210 Analyse 6382966: 210 Analyse 6185583: 210 Analyse 6382962: 210 Analyse 6711920: 210 Analyse 6185587: 210 Analyse 6514809: 210 Analyse 6383222: 210 Analyse 6712179: 210 Analyse 7040627: 210 Analyse 6382709: 210 Analyse 6909568: 210 Analyse 7501186: 210 Analyse 6712183: 210 Analyse 6119785: 210 Analyse 7040373: 210 Analyse 5987945: 210 Analyse 7698566: 210 Analyse 8093321: 210 Analyse 5987946: 210 Analyse 6646389: 210 Analyse 5988458: 210 Analyse 6580336: 210 Analyse 7303803: 210 Analyse 7238008: 210 Analyse 6251374: 210 Analyse 6580078: 210 Analyse 6251630: 210 Analyse 6382698: 210 Analyse 7106423: 210 Analyse 7106165: 210 Analyse 6119783: 210 Analyse 6053993: 210 Analyse 6382958: 210 Analyse 6251370: 210 Analyse 6054247: 210 Analyse 6382957: 210 Analyse 5922665: 210 Analyse 6580334: 210 Analyse 6185579: 210 Analyse 6185322: 210 Analyse 6185581: 210 Analyse 6448750: 210 Analyse 6317418: 210 Analyse 6054250: 210 Analyse 6383214: 210 Analyse 6185582: 210 Analyse 5988200: 210 Analyse 6317421: 210 Analyse 6185578: 210 Analyse 5988456: 210 Analyse 5791082: 210 Analyse 6054253: 210 Analyse 5922408: 210 Analyse 5988457: 210 Analyse 6251626: 210 Analyse 6317162: 210 Analyse 6251627: 210 Analyse 5922664: 210 Organizing colors Done organizing unable to gather colors found text gathering colors in color gatherer Analyse 6382697: 210 Analyse 6251113: 210 Analyse 6711918: 210 Analyse 6449013: 210 Analyse 7830404: 210 Analyse 6711931: 210 Analyse 6119790: 210 Analyse 6514809: 210 Analyse 6580601: 210 Analyse 5725034: 210 Analyse 6514553: 210 Analyse 6580346: 210 Analyse 6383223: 210 Analyse 6646134: 210 Analyse 6777723: 210 Analyse 6974584: 210 Analyse 6514550: 210 Analyse 6646395: 210 Analyse 6119794: 210 Analyse 7040634: 210 Analyse 7698823: 210 Analyse 6119789: 210 Analyse 6053997: 210 Analyse 6185581: 210 Analyse 7566973: 210 Analyse 6317170: 210 Analyse 6119786: 210 Analyse 6448750: 210 Analyse 7238009: 210 Analyse 6185575: 210 Analyse 6054250: 210 Analyse 6119785: 210 Organizing colors Done organizing unable to gather colors found text gathering colors in color gatherer Analyse 6054247: 210 Analyse 6185577: 210 Analyse 5856614: 210 Analyse 6251625: 210 Analyse 6054248: 210 Analyse 5988202: 210 Analyse 6514539: 210 Analyse 6383213: 210 Analyse 6580590: 210 Analyse 6120039: 210 Analyse 6382956: 210 Analyse 6119785: 210 Analyse 6185574: 210 Analyse 6580591: 210 Analyse 6185325: 210 Analyse 5988454: 210 Analyse 5988458: 210 Analyse 6119783: 210 Organizing colors Done organizing unable to gather colors found text gathering colors in color gatherer Analyse 6251373: 210 Analyse 7632771: 210 Analyse 6251377: 210 Analyse 8224648: 210 Analyse 6909310: 210 Analyse 5988461: 210 Analyse 6646395: 210 Analyse 6514553: 210 Analyse 5922155: 210 Analyse 6251121: 210 Analyse 6251120: 210 Analyse 5725035: 210 Analyse 5922414: 210 Analyse 6777724: 210 Analyse 6054257: 210 Analyse 6316911: 210 Analyse 6777725: 210 Analyse 5988206: 210 Analyse 6646139: 210 Analyse 6382956: 210 Analyse 6842993: 210 Analyse 7567236: 210 Analyse 6382447: 210 Analyse 6317171: 210 Analyse 5725033: 210 Analyse 6449008: 210 Analyse 7172218: 210 Analyse 5988203: 210 Analyse 6449012: 210 Analyse 6711919: 210 Analyse 6185584: 210 Analyse 6382955: 210 Organizing colors Done organizing unable to gather colors found text gathering colors in color gatherer Analyse 6119783: 210 Analyse 6119784: 210 Analyse 6185579: 210 Analyse 6251626: 210 Analyse 6448490: 210 Analyse 6843249: 210 Analyse 6449008: 210 Analyse 6842993: 210 Analyse 6316906: 210 Analyse 6251373: 210 Analyse 6382958: 210 Analyse 6185583: 210 Analyse 7040629: 210 Analyse 6053995: 210 Analyse 6251372: 210 Analyse 6316911: 210 Analyse 6251378: 210 Analyse 5988458: 210 Analyse 6316916: 210 Analyse 6514810: 210 Analyse 6383221: 210 Analyse 6514550: 210 Analyse 6580853: 210 Analyse 6777725: 210 Analyse 6909312: 210 Analyse 6711931: 210 Analyse 6251368: 210 Analyse 7106425: 210 Analyse 6185331: 210 Analyse 5988460: 210 Analyse 6382959: 210 Analyse 6119785: 210 Analyse 7040373: 210 Analyse 6842995: 210 Analyse 6448755: 210 Analyse 5987945: 210 Analyse 5922410: 210 Analyse 6317161: 210 Analyse 6580336: 210 Analyse 7238008: 210 Analyse 6317167: 210 Analyse 6909043: 210 Analyse 6251630: 210 Analyse 6382698: 210 Analyse 7369593: 210 Analyse 7106165: 210 Analyse 7237753: 210 Analyse 6580594: 210 Analyse 6777714: 210 Analyse 6251370: 210 Analyse 6054247: 210 Analyse 6317166: 210 Analyse 7304059: 210 Analyse 6317160: 210 Organizing colors Done organizing unable to gather colors Uptext: Walk here / 1 more options Uptext: Walk here / 2 more options Uptext: Walk here / 1 more options Uptext: Walk here / 1 more options Uptext: Walk here / 1 more options found text gathering colors in color gatherer Analyse 6382955: 210 Analyse 6383213: 210 Analyse 6185319: 210 Analyse 6975091: 210 Analyse 7040630: 210 Analyse 7895937: 210 Analyse 5988202: 210 Analyse 7238015: 210 Analyse 6974835: 210 Analyse 5790825: 210 Analyse 7895942: 210 Analyse 7106428: 210 Analyse 6711930: 210 Analyse 5725034: 210 Analyse 5856620: 210 Analyse 6054253: 210 Analyse 6316915: 210 Analyse 6119793: 210 Analyse 6843518: 210 Analyse 5922670: 210 Analyse 6646126: 210 Analyse 5922413: 210 Analyse 6449017: 210 Analyse 6580603: 210 Analyse 7238275: 210 Analyse 6185061: 210 Analyse 7566979: 210 Analyse 6251116: 210 Analyse 6317166: 210 Analyse 6119786: 210 Analyse 6580593: 210 Organizing colors Done organizing unable to gather colors found text gathering colors in color gatherer Analyse 5988458: 210 Analyse 6580336: 210 Analyse 7238008: 210 Analyse 6317167: 210 Analyse 6909043: 210 Analyse 6251630: 210 Analyse 6382698: 210 Analyse 7369593: 210 Analyse 7106165: 210 Analyse 7237753: 210 Analyse 6580594: 210 Analyse 6777714: 210 Analyse 6251370: 210 Analyse 6054247: 210 Analyse 6317166: 210 Analyse 7304059: 210 Analyse 6317160: 210 Analyse 6185322: 210 Analyse 6119784: 210 Analyse 6448750: 210 Analyse 6119785: 210 Analyse 6383214: 210 Analyse 6185582: 210 Analyse 6317421: 210 Analyse 5791080: 210 Analyse 6382955: 210 Analyse 5922662: 210 Analyse 6185584: 210 Analyse 6251372: 210 Analyse 6053996: 210 Analyse 7435387: 210 Analyse 6185577: 210 Analyse 6119786: 210 Analyse 6054250: 210 Analyse 6382957: 210 Analyse 5988454: 210 Analyse 5988456: 210 Analyse 6317420: 210 Analyse 6777455: 210 Analyse 6514283: 210 Analyse 6251368: 210 Analyse 6975090: 210 Analyse 6382954: 210 Analyse 6580076: 210 Organizing colors Done organizing unable to gather colors Uptext: Walk here / 2 more options Uptext: Walk here / 1 more options found text gathering colors in color gatherer Analyse 5856871: 210 Analyse 5922413: 210 Analyse 7040896: 210 Analyse 6514810: 210 Analyse 8159113: 210 Analyse 7238275: 210 Analyse 6185061: 210 Analyse 7566979: 210 Analyse 6251116: 210 Analyse 6448494: 210 Analyse 7895937: 210 Analyse 6317166: 210 Analyse 6251372: 210 Analyse 6645869: 210 Analyse 5988454: 210 Analyse 5922663: 210 Analyse 6185580: 210 Organizing colors Done organizing unable to gather colors Uptext: Walk here / 2 more options Uptext: Walk here / 1 more options Uptext: Walk here / 1 more options Uptext: Walk here / 1 more options Awe! Successfully executed
So it writes the correct uptext in the debug when I have it set to the wrong uptext, and the opposite when it's set to the right uptext. I don't know if I'm doing something wrong, but either way it's not clicking.
Thanks,
Coh3n
EDIT: When I just run Writeln(rs_GetUpText), it finds the correct uptext every time.
Last edited by Coh3n; 02-25-2010 at 04:20 PM.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
That means that either the Max colors or Min colors setting is not tweaked correctly.Organizing colors
Done organizing
unable to gather colors
SCAR Code:for i:= 0 to High(ColorArray) do
begin
L := AnalyseColor(ColorArray[i], Rock);
if L <= Rock.Details.UNIQUE_COLOR_MAX then
begin
Rock.SCArray[RockColorIndex] := ColorArray[i];
LengthArray[i] := L;
Inc(RockColorIndex);
end;
end;
SCAR Code:FindColors(TPA, Color, MSX1, MSY1, MSX2, MSY2)
L := Length(TPA);
//this will avoid a useless color returning a false positive
if L < Rock.Details.UNIQUE_COLOR_MIN then L := Rock.Details.UNIQUE_COLOR_MAX + 10;
SC_Debug('Analyse '+IntToStr(Color)+': '+IntToStr(L));
so it's finding 210 points, which might be too few or too many points per color, depending on your settings.
~RM
No matter what I set as the ColorMax, it always finds 10 more than what I set it to.
EDIT: Idk, I think I was setting my sizes way too big. I set the ColorMin to 0, ColorMax to 100, and MaxColors to 20, and it worked.Code:Analyse 6514286: 9010 Analyse 5988463: 9010 Analyse 6185587: 9010 Analyse 5922412: 9010 Analyse 6909303: 9010 Analyse 6383211: 9010 Analyse 6514286: 260 Analyse 5988463: 260 Analyse 6185587: 260
EDIT2: I also found out why it was +10 every time after looking through the code a bit.
Last edited by Coh3n; 02-25-2010 at 10:28 PM.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
I want to try using this, I never knew exactly how good it could be until I read this tut on it. The only thing is, I don't know how I would go about getting the hue and sat of a color, can someone please explain how to. Sorry if it's answered already, I searched this thread though and didn't find anything about it.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
I just shat myself. Thank you RM.
I don't check this place often, sorry.
Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path
Funny :P I was wondering if there was a possibility to make this include more efficient by modding it with INIs?
I don't check this place often, sorry.
Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path
I think line 360 is incorrect. The following code segment:Because the indices in SCArray are supposed to correspond to the indices in LengthArray in order to be used in OrganizeColors, correct?Code:L := Length(ColorArray); SetLength(Rock.SCArray, L); SetLength(LengthArray, L); for i:= 0 to High(ColorArray) do begin L := AnalyseColor(ColorArray[i], Rock); if L <= Rock.Details.UNIQUE_COLOR_MAX then begin Rock.SCArray[RockColorIndex] := ColorArray[i]; LengthArray[i] := L; //line 360 Inc(RockColorIndex); end; end; SetLength(Rock.SCArray, RockColorIndex + 1); Rock.SCArray := OrganizeColors(Rock.SCArray, LengthArray); Result := (RockColorIndex > 2);
Is there a way to use SmartColors in custom procedures?
I don't check this place often, sorry.
Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path
There are currently 1 users browsing this thread. (0 members and 1 guests)