View Full Version : scar to java?
Ace257
06-09-2010, 12:40 AM
i just recently learned java, is their a way i can transfer my script from scar to java, or do i have to write a whole new sccript?
Nava2
06-09-2010, 01:12 AM
I'm not sure what you are asking, but from what I gather, no.
YoHoJo
06-09-2010, 01:17 AM
Whole new script!
That would be very difficult if not impossible to create a scar script to java script converter lawls.
x[Warrior]x3500
06-09-2010, 01:17 AM
in order to do that, you would have to port your script into the java language. so pretty much you writing a scar script would be rather pointless. you might as well make one from scratch in java
Umm, even if he converted it to a java script, he would have to rewrite any include functions or internal SCAR functions he uses, if I'm understanding correctly.
YoHoJo
06-09-2010, 01:31 AM
Well yes and no Ogre. We can just assume he is converting it into a script for another java bot, in which case most likely every function we have in SRL they also probably have in java too.
Well yes and no Ogre. We can just assume he is converting it into a script for another java bot, in which case most likely every function we have in SRL they also probably have in java too.
I have a feeling he isn't converting it into a script for another java bot. Also, isn't pretty much every java bot Reflection/BCEL/whatever? So they would have no reason to have the color functions that we do.
Ace257
06-09-2010, 01:56 AM
Well yes and no Ogre. We can just assume he is converting it into a script for another java bot, in which case most likely every function we have in SRL they also probably have in java too.
yes it is a bot for puzzle pirates blacksmith, i can see some similarities in the languages, except the color function and mouse movements might be different not sure yet. thanks for the replies let me know if you have anymore input! :D
Ace257
06-09-2010, 01:58 AM
forgot to mention i know most people use scar for runescape, but the bot does work for puzzle pirates, it would just be more efficient on java. since puzzle pirates is java based. thanks
x[Warrior]x3500
06-09-2010, 02:07 AM
^ huh? if i am not mistaken, RS is java based also. why would java be more efficient?
Ace257
06-09-2010, 02:11 AM
lol sorry just what my fellow programmers told me on another website, i was just thinking it would be because you have imports like the JPanel let me knw if im wrong. lol
forgot to mention i know most people use scar for runescape, but the bot does work for puzzle pirates, it would just be more efficient on java. since puzzle pirates is java based. thanks
I don't think it would necessarily be more efficient in Java.
Also, I'm kind of confused, is there a bot people use for this game or are you going to write one in java? If the latter, you would have to do as I said, and recreate any function you use from SCAR, which would be ridiculous (It'd be better to just stick with using SCAR).
Ace257
06-09-2010, 02:15 AM
i have already written one in scar and i think your right about the functions, so i'll prob end up sticking with scar thanks!
x[Warrior]x3500
06-09-2010, 02:19 AM
advice: go to simba for it will the updated by this community and scar will not.
also, scar is the bot, and u wrote a script - not a bot. what ogre is saying is do you have a Scar-alternative that runs java scripts? or are you going to have to make the Scar-alternative, thus having to make tons of functions and so on.
anyway, if i were you, i would try it out on Simba first, then if worst comes to worse, make a java bot with your programming friends. :)
Ace257
06-09-2010, 02:25 AM
sorry i meant to tell yall the thing i was thinking about transfering it over to is called eclipse for java
YoHoJo
06-09-2010, 02:57 AM
Eclipse is just a compiler. And transferring a script you made with SRL/SCAR to just Java with no include (or whatever java uses) is CRAZY.
SCAR/Simba have tons of built in functions and SRL is also A WHOLE LOT OF FUNCTIONS too, you can just transfer it to java that way, find a JAVA BOT first, and then you can try to transfer.
Ace257
06-09-2010, 03:12 AM
alright thanks!
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.