im trying to add an autoupdater to some private scripts, is there a form or way to do it so the script stays private online i.e someone bored on pastebin doesnt stumble upon it *unlikely but for future references and knowledge*
thank youuu![]()
im trying to add an autoupdater to some private scripts, is there a form or way to do it so the script stays private online i.e someone bored on pastebin doesnt stumble upon it *unlikely but for future references and knowledge*
thank youuu![]()
View my OSR Script Repository!
Botted to max
Guides: How to Report Bugs to the Scripter
~~~~ Moved to Java. Currently Lurking ~~~~
If you want it to stay private, then you need to post it on a private server/host. Although, if you have a dedicated private script gmail account, that should be decent enough![]()
My Outdated ScriptsEdgeville Log Cutter | Edgeville AIO Jewelry | AIO Pickpocketer | Urn Activator | Slayer Tower | Slaying KuradalMy Working Scripts: Tutorials:Function Pointers and Why You Should Care! | Forms and Saving Settings | The Magic Behind Programming Tutorial | Recursive Recursion![]()
View my OSR Script Repository!
Botted to max
Guides: How to Report Bugs to the Scripter
~~~~ Moved to Java. Currently Lurking ~~~~
Setup a brand new gmail account and keep only private scripts on their svn server attached to that account.
My Outdated ScriptsEdgeville Log Cutter | Edgeville AIO Jewelry | AIO Pickpocketer | Urn Activator | Slayer Tower | Slaying KuradalMy Working Scripts: Tutorials:Function Pointers and Why You Should Care! | Forms and Saving Settings | The Magic Behind Programming Tutorial | Recursive Recursion![]()
mk thanks! ill see if i can figure it out lol. does this look correct and are my comments describing whats going on right? couldnt find a tut so found this in one of Ashaman88's scripts and made some name changes. idk what the CloseFile(NewFile) purpose is though
Simba Code:procedure AutoUpdater;
var NewFile:integer;
OnlineVersion, NewScript, NewFileName:string;
begin
if UseAutoChecker then
begin
OnlineVersion := GetPage('http://zezima.com/version.txt'); //this is just a number?
writeln(OnlineVersion);
writeln(ScriptVersion); //declared at begining of script
if (trim(OnlineVersion) > ScriptVersion) then //checking if the number is greater than the script in uses number?
begin
NewScript := GetPage('http://zezima.com/scriptname.simba'); //getting the new script?
NewFileName := ScriptPath+ 'scriptname' + OnlineVersion + '.simba'; //what we are saving the new script as?
NewFile := Rewritefile(NewFileName, true); //rewriting the old file with the new file
try //if an error occurs when saving??
WriteFileString(NewFile, NewScript);
except
begin
terminatescript;
end;
end;
CloseFile(NewFile); //not sure what its closing?
TerminateScript;
end else
writeLn('You have the latest version of the script!');
end else
WriteLn('We are not checking for updates!');
end;
edit: are you talking about google docs? or google drive they call it now? havent used google for awhile :P then i just add who ever it is to the document and they can view it? but wouldnt they be able to edit the document aswell? sorry im a noob, i have limited experience lol
Last edited by Sk1nyNerd; 05-21-2013 at 09:13 PM.
View my OSR Script Repository!
Botted to max
Guides: How to Report Bugs to the Scripter
~~~~ Moved to Java. Currently Lurking ~~~~
Personally I use google docs just fine for public and/or private scripts (different google accounts for private scripts).
With Google Docs, you can add permissions for edit to a selected list of people while permissions to view is public. However, while permission to view is public, searching for you isn't easy, which is what keeps you fairly safe in respect to keeping your script private
CloseFile(NewFile); "Closes" the file. Basically when you open or write a file, it's now in your memory, so you need to close it in order to "free" it like you would a DTM or BMP.
My Outdated ScriptsEdgeville Log Cutter | Edgeville AIO Jewelry | AIO Pickpocketer | Urn Activator | Slayer Tower | Slaying KuradalMy Working Scripts: Tutorials:Function Pointers and Why You Should Care! | Forms and Saving Settings | The Magic Behind Programming Tutorial | Recursive Recursion![]()
View my OSR Script Repository!
Botted to max
Guides: How to Report Bugs to the Scripter
~~~~ Moved to Java. Currently Lurking ~~~~
My Outdated ScriptsEdgeville Log Cutter | Edgeville AIO Jewelry | AIO Pickpocketer | Urn Activator | Slayer Tower | Slaying KuradalMy Working Scripts: Tutorials:Function Pointers and Why You Should Care! | Forms and Saving Settings | The Magic Behind Programming Tutorial | Recursive Recursion![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)