Results 1 to 6 of 6

Thread: Usage og GetPage + more

  1. #1
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Usage og GetPage + more

    Hello again dear SRL users, it's been a looong time

    I've made a seller in my current script, and a buyer, but i want them to co-operate.
    So, i want a function that can calculate how much money I've made, and some functions calculating how many ... lets say coal and iron I can buy for smelting steel bars?

    I've made this like half function half note :P:

    Code:
    if WantToBuySteelMats = True then
    
     GetAmount(ID of Gold)= a
     GetPage(blabla) price on iron = b
     GetPage(blabla) price on coal = c
     Unit = e
     e = a/(b+2*c)
     Player.CurrentPlayer.Integer[9] = e
     Player.CurrentPlayer.Integer[8] = e*2
    Hope someone can help me makeing this an actual function

    /Thanks
    I ... Am ... CARTMANN!

  2. #2
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Add me on MSN. kyle@kyleis1337.info.
    This will be fairly easy to create but I need you to be more specific. Iron ore? Or iron bars?
    We'll discuss this on MSN.
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  3. #3
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

  4. #4
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks, another important addment, as the number given prolly would be something like 1345,1233 for e, i want it to round off.
    I ... Am ... CARTMANN!

  5. #5
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I got this done for him.
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  6. #6
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    +rep to Sex!
    I ... Am ... CARTMANN!

Thread Information

Users Browsing this Thread

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

Posting Permissions

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