Results 1 to 13 of 13

Thread: how to make auto-update scripts?

  1. #1
    Join Date
    Sep 2007
    Location
    newcastle australia
    Posts
    240
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default how to make auto-update scripts?

    i have a nasty habit during scripting of updating my scripts on the net about 5 times a week, so it would be easier to just make the script automatically download the update rather then go through the process of having to download the new script.

    so, things i will need to know, if someone would be kind enough to teach.

    how to make scar access an FTP or HTTP server
    how to link that with "getpage"

  2. #2
    Join Date
    Jan 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'd like to know too, I just started making scripts

  3. #3
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default



    Code:
      ScriptStringGetPage('script link');
      FileNum := ReWriteFile('path', False);
      WriteFileString(FileNum, ScriptString);
    done

    Ofcourse the check if it even needs updating is also necessary ...

    Code:
      CurrentVersion := 0.10;
      WebVersion := StrToFloatDef(GetPage('link to text file containing newest version in float type'), 100.0);
      if(CurrentVersion < WebVersion)then
        WhatIPostedAbove;
    Enjoy.
    Administrator's Warning:


  4. #4
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks now to get a web could srl make some space for the links to the updated scripts
    ~Hermen

  5. #5
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hermpie, use www.freehostia.com.

  6. #6
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by itschris917 View Post
    hermpie, use www.freehostia.com.
    Hmm, yes, but once jgex noticed i was hosted there they kindly asked FreeHostia to delete my account which they happily did.
    Administrator's Warning:


  7. #7
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks will give it a look
    ~Hermen

  8. #8
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    True. Sumillion, but for the time being thats where mine is located and i havent had any problems.. plus it supports MySQL.

  9. #9
    Join Date
    Sep 2007
    Location
    newcastle australia
    Posts
    240
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok, last question.
    i wish to combine this with an auth system, is there any way to make it so it must get authentication from the server WITHOUT using a getpage system, as then any old fool could come along and get the page from the script and find the password by themselves.

  10. #10
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    could some1 talk about this on rs?
    ~Hermen

  11. #11
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by elementalelf View Post
    ok, last question.
    i wish to combine this with an auth system, is there any way to make it so it must get authentication from the server WITHOUT using a getpage system, as then any old fool could come along and get the page from the script and find the password by themselves.
    Use PHP, MySQL and PostHTTPPageEx (SCAR).



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  12. #12
    Join Date
    Dec 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wow, I never knew Scar had the power to go online... o_o

  13. #13
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by hermpie View Post
    could some1 talk about this on rs?
    lol i mean msn
    ~Hermen

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Update this scripts and make this one :D
    By you won in forum RS3 Outdated / Broken Scripts
    Replies: 3
    Last Post: 06-06-2008, 10:21 PM
  2. Scripts not working because of the update?
    By elfenlyte in forum News and General
    Replies: 14
    Last Post: 01-16-2008, 07:07 AM
  3. Update, lot things to make our life easier ;)
    By n3ss3s in forum RS has been updated.
    Replies: 48
    Last Post: 12-01-2007, 11:48 PM
  4. Auto update?
    By Timer in forum OSR Help
    Replies: 2
    Last Post: 10-19-2007, 02:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •