Search results

  1. E

    File naming in the relay folder.

    Recently I attempted to update upups pricegun with my own set of item values, and on my road to doing so found it to be more difficult than I thought it would be. I know pricegun is a greasemonkey script, but one of my attempts to update will give the reason for posting here. In the relevant...
  2. E

    Personal script settings (no need to edit scripts)

    I can see the potential in this to grow into something great! I haven't tested it yet, but the screenshot looks cool. I can see one potential upgrade to make it more user-friendly. Add a link to the newly created page on the account menu, or in the menu pane. I myself will probably add it to my...
  3. E

    Mad Hatrack equip helper (relay override)

    I don't know if I will ever get out of concept stage with it or not, but the thought of making a inventory override that offers a fourth page with only hats in inventory, the info shown by this script, and the ability to equip to the Mad Hatrack comes to mind. Time has it's limits at the moment.
  4. E

    Discussion: Standards in relay over-ride scripts

    The quote above may very well say it all. I second that notion. I occasionally create my own pages, and in order to link to such pages I have to modify another page. This currently requires 2 (or more) scripts to achieve. With the concept model, both pages could be handled in one script.
  5. E

    Discussion: Standards in relay over-ride scripts

    I believe that is how it is, that it is checked. I should have been more clear, if Kolmafia does check to see if the script has been modified, then eliminating that step might be an option that could increase the performance of relay over-ride scripts. While debugging a script in progress...
  6. E

    Discussion: Standards in relay over-ride scripts

    Hmm, what would happen if the script I wrote for the degrassi knoll general store were to have the additional items it adds to the store passed to the server? Nothing interesting, but that concept does add a new list of problems. This takes us right back where I was in the first post. The...
  7. E

    Discussion: Standards in relay over-ride scripts

    The very root of this topic...the first post is about making 2 or more scripts work on the same page. In order for 2 or more scripts to work on the same page, they must not break each other. I'm lost ??? No, not "I don't think so", just no. Doing so would severely limit your ability to upgrade...
  8. E

    Discussion: Standards in relay over-ride scripts

    In general, method 1 = method 2, as you said except that method 1 uses register() and method 2 uses script comments. That is where the big difference is though. The Register method would allow adding a new relay over-ride script without restarting kolmafia. Since kolmafia would only have to load...
  9. E

    Discussion: Standards in relay over-ride scripts

    Sorry I didn't get back sooner. I have been offline for a while because my ISP wanted to raise the price of my internet service to a silly level. My thoughts are that rather than having Kolmafia search for a script every time it encounters a kol page, Kolmafia should already know if there is...
  10. E

    No relay override in next fight if something goes wrong

    It has long been the case that while kolmafia is in error state, relay over-ride scripts do not execute. a quick click on status refresh in kolmafia will bring kolmafia out of error state. This is actually at some points preferable to me as it helps me to know when something goes wrong while I...
  11. E

    Discussion: Standards in relay over-ride scripts

    Relay over-ride scripts end up having naming conflicts with other relay over-ride scripts that function on the same page. I've been considering this, and there is a simple solution which might save you (the script writer) time in the future. It is fairly simple, and would make importing the...
  12. E

    Could someone help me clean up this script?

    You may have to follow the code through. I did not test it, and there may be a bug. also, if kolmafia didn't register that you had put them in your store, then kolmafia would think you had them, and just try to drink them (and fail). Did you have any inebriety at all at that time?
  13. E

    variable inheritance when using import

    The answer is no across the board. What you have done will create an error. The import statements must be first in the script otherwise it will not work. That aside: 1 yes 2/3 no---remember import must come before the variable declaration. 4/5 I believe it is possible by importing each script...
  14. E

    Could someone help me clean up this script?

    OK you will want to create either the number you can create, or the number needed whichever is lower. You could use a if...else statement, and repeat the code, but creating a function which returns the lower of 2 integers seems more logical so: int lower(int number1, int number2) { if( number1...
  15. E

    is this possible

    I really should pay more attention. The sad thing is I tried to help this person. I don't think I will bother anymore. It's not funny. It's sad. I mean The makers of Kolmafia ask so little, and never charge for it. Far more work goes into Kolmafia than any script written to run in Kolmafia.
  16. E

    Could someone help me clean up this script?

    I do believe it should. My mistake, and you may find a few more. Be sure you check the if statement for eating also. Presently it will buy the third. You would want to test int creatable_amount( item it ) Returns the number of copies of the item that you are capable of creating with your...
  17. E

    is this possible

    Now that you have posted that here, all the multiczar has to do is look at killsomeone's inbox (even if ya delete the messages) to know who all your multi's are. I can't quit laughing. It shows!!! :)
  18. E

    question about daily builds

    On some systems you will have to right click, then select open with, and select java from the list. This tends to be the case with a system that has winrar installed. If you use the "choose program" option on the open with menu then there will be a "always use this program..." checkbox, if you...
  19. E

    Could someone help me clean up this script?

    Working..... I can see a few issues in the script, like for instance if you don't have a bartender, you buy 1, then never use it. Logic says you intended to use it. Where I see such things I will auto-correct.[hr]here ya go: # #So my other characters don't use this script. # //rather than...
  20. E

    How does mafia handle void xxxx()

    void main() is the main function within a script. It is not required. void xxx() would be a function you are creating. In a way it's like a goto statement. why would you want to create a function? Well maybe you have a group of commands which you will execute multiple times an example...
Back
Top