Search:

Type: Posts; User: Shaelun

Page 1 of 18 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    25
    Views
    2,392

    When you run a Ruby script, the first thing that...

    When you run a Ruby script, the first thing that happens is the entire file getting scanned so that any method or class defs can be stored for later use. So when you start the script, first the old...
  2. Replies
    25
    Views
    2,392

    Unless Tillmen changed Lich to sandbox scripts...

    Unless Tillmen changed Lich to sandbox scripts specifically so that they can't redefine core methods, it would be easier to just alias "fput()" to "_fput()" or "original_fput()" or something and...
  3. Replies
    2
    Views
    1,843

    Damn; it suddenly hit me in the middle of...

    Damn; it suddenly hit me in the middle of something totally unrelated that what I provided won't work properly unless the mana is consistently available to activate the signs in descending order as...
  4. Replies
    2
    Views
    1,843

    Yeah, well, that certainly isn't me... I don't...

    Yeah, well, that certainly isn't me... I don't even script in GS for the scripting program I wrote anymore, let alone anybody elses. Still, the parts you have are enough of a "how-to" for me to feel...
  5. Replies
    7
    Views
    1,230

    Just a suggestion... you probably really want a...

    Just a suggestion... you probably really want a pause in there:



    start:
    pause 0.1
    if(%me.health < %me.maxhealth){
    goto blood

    ...
  6. Thread: Lich v4

    by Shaelun
    Replies
    89
    Views
    16,612

    Wow. Well ain't that a bitch. It may fix it to...

    Wow. Well ain't that a bitch. It may fix it to evaluate this code (in a ";exec" script if that's still the same in Tillmen's versions or a script you run as usual -- either should work.)

    ...
  7. Replies
    50
    Views
    5,882

    I dunno, personally I think that's hilarious. ...

    I dunno, personally I think that's hilarious. Granted, I've been insulted for thinking MegaTokyo is cute, but whatever :whistle:
  8. Replies
    81
    Views
    60,211

    Sticky: The last version of Lich I released, v3.57, is a...

    The last version of Lich I released, v3.57, is a compiled executable that uses an embedded version of Ruby. Tillmen's versions are Ruby scripts themselves.

    More plainly, v3.57 and earlier start...
  9. Thread: Lich v4

    by Shaelun
    Replies
    89
    Views
    16,612

    First thought that comes to mind: open up the...

    First thought that comes to mind: open up the task manager (in WinXP hit control-alt-delete, no clue about Vista or Windows 7) and check to see if your CPU usage is spiking. If it is, Lich is...
  10. Replies
    13
    Views
    2,051

    Old copies of SGE use different information to...

    Old copies of SGE use different information to launch your game programs, and Tillmen's latest version of Lich doesn't check it. The old versions of SGE still log you in fine & dandy though; anyway,...
  11. Thread: WTF Banned?

    by Shaelun
    Replies
    2
    Views
    1,268

    If you don't know of any good reason that you'd...

    If you don't know of any good reason that you'd be permanently banned, it's possible that it's just temporary. Assuming it hasn't been changed, I wrote a 24-hour ban (or 12 hours, or something like...
  12. Replies
    2
    Views
    1,160

    I'm gonna be honest here and just say that I gave...

    I'm gonna be honest here and just say that I gave up trying to trace the script after 2-3 minutes. I'm assuming you're not sure what the herb = herbs['majorwounds'][area][$times] line is actually...
  13. Replies
    2
    Views
    917

    Since you asked, check out...

    Since you asked, check out http://www.ruby-doc.org/docs/ProgrammingRuby/html/ref_c_string.html#String.scan for details on how scan works.

    I'm not sure if it's still available with Tillmen's...
  14. Replies
    1
    Views
    854

    As an aside, code is really ugly and hard to...

    As an aside, code is really ugly and hard to follow when not enclosed in '[ code ] (stuff goes here) [ / code ]' brackets (strip out the spaces and the code would be in a "code" box without having...
  15. Thread: BUG: Checkmind

    by Shaelun
    Replies
    4
    Views
    1,066

    I wish I knew what to tell you... I just tested...

    I wish I knew what to tell you... I just tested the code in IRB (Interactive Ruby, it's a Ruby shell [basically]), and it should work just fine:



    irb(main):001:0> def checkmind; "old...
  16. Thread: Waitfor Oddity

    by Shaelun
    Replies
    8
    Views
    1,234

    I hate dealing with the inconsistencies between...

    I hate dealing with the inconsistencies between SF and Wizard... try this:



    line = matchafter("In the [^,]+ you see", "There is nothing in there.")
    if line.empty? or line.nil?
    # There's...
  17. Thread: BUG: Checkmind

    by Shaelun
    Replies
    4
    Views
    1,066

    No, it isn't dead, but its only developer doesn't...

    No, it isn't dead, but its only developer doesn't have anywhere near the amount of free time he did when he originally wrote most of the program.

    Perhaps it will help explain this list of "quite a...
  18. Replies
    6
    Views
    1,455

    Just make a zip of StormFront's directory, email...

    Just make a zip of StormFront's directory, email it to yourself, and after you reinstall SF, download the zip file and replace all your files with it. Should work fine.

    Please note the strong...
  19. Replies
    11
    Views
    2,943

    Odd... offhand it sounds like the glib DLL isn't...

    Odd... offhand it sounds like the glib DLL isn't compatible. What's that mean, you may ask -- a DLL file is a DynamicLinkLibrary file. It's code just like any other program's .exe file, but it's in...
  20. Thread: XML Stuffs

    by Shaelun
    Replies
    6
    Views
    1,360

    My thoughts precisely.

    My thoughts precisely.
  21. Replies
    2
    Views
    1,471

    Use a second hash with the character name as the...

    Use a second hash with the character name as the key for the first hash, and "lootsack" (or whatever) as the key for the second hash. It would require a little extra checking to make sure you don't...
  22. Thread: Watchfor

    by Shaelun
    Replies
    4
    Views
    1,079

    The "watchfor" code is still in the project, but...

    The "watchfor" code is still in the project, but if memory serves I disabled them... quite frankly I can't even remember why. Some bug or problem that I put off until later; as it turned out,...
  23. Thread: Start_Script

    by Shaelun
    Replies
    3
    Views
    1,116

    Same idea, extra word in the command: ...

    Same idea, extra word in the command:



    start_wizard_script("scriptName")


    The "insecure operation" error is showing up because the script is attempting to access a file on the hard drive. ...
  24. Thread: XML Stuffs

    by Shaelun
    Replies
    6
    Views
    1,360

    Offhand, it looks as though SF has a stream...

    Offhand, it looks as though SF has a stream devoted to whatever your STOW container is set to. It appears (and I stress appears) to be working off of that.

    Try changing your stow container and...
  25. Replies
    14
    Views
    1,833

    You may well be right, and ultimately since most...

    You may well be right, and ultimately since most people use Lich in Windows, it's pretty much a moot point.

    There's a number of places in Ruby's eval.c where it makes reference to native threads,...
Results 1 to 25 of 426
Page 1 of 18 1 2 3 4