Subj : Door Scores...
To   : echicken
From : Android8675
Date : Tue Apr 10 2018 04:11 pm

 Re: Door Scores...
 By: echicken to Android8675 on Tue Apr 10 2018 03:45 pm

I was thinking something like this:

function launch(code) {
bbs.exec_xtrn(code);
console.crlf();
var f = new File(system.ctrl_dir + 'scores.ini');
f.open('r');
var ini = f.iniGetObject();
f.close();
if (ini[code]) {
 console.clear(BG_BLACKIGHTGRAY);
 if (console.yesno('Display score file')) {
  if (ini[code].search(/^http/) > -1) {
   const http = new HTTPRequest();
   const ans = http.Get(ini[code]);
   console.putmsg(ans);
  } else {
   console.printfile(ini[code]);
  }
  console.pause();
 }
}
}

So it'll first see if there's even an entry then ask if the player wants to
display the score file? I'm tinkering with it now, will post when finished.

An>> pull the score file from BBS Links

ec> I did recently make a thing for displaying BBSLink scores:

ec> https://github.com/echicken/bbslink-things

ec> It's a bit redundant to the example provided above, but it might be worth
ec> looking at.

I am looking at it now. I might even fork it, get some git practice, etc.

Thanks again,
-A.


... Music is essentially useless, as life is.

---
� Synchronet � Shodan's Core @ ShodansCore.com