Search results

  1. P

    Gender function

    I have always needed to unequip things through the CLI rather then through ash. Also, if you want to unequip everything you can just call unequip w/ no args and I think it will unequip everything. CLI_Execute("unequip"); I think that should take care of it..
  2. P

    Default argument values....

    Actually I guess I may have thought of a work around. Basicly create an alias that calls the script with an arbitrary character or string plus the input argument of the alias. Say the script is called myScript in which void main(string args) would it be possible to create an alias which...
  3. P

    Default argument values....

    Would it be easy to add a settings option which would allow you to set it as either true or false where setting it as true made the prompt appear and setting it as false allowed scripts to run without the prompt? Or, I don't know much about how ash works this might be alot harder then I...
  4. P

    Default argument values....

    Right, that is pretty much exactly how I do it with maximize.ash right now. But there is no way to do it without the prompt. Which is why I was requesting either a) a way to use default argument values so void main(string args=" ") { <use the args to set flags and such>...
  5. P

    fight.php override - action buttons and a little fight-related library

    I have never used relay override scripts before so I don't know if i am doing something wrong but, using 12.1, and 12.2 generate errors "undefined reference to item_type()" using the daily build from today Feb. 26 2008 the script seems to run, however using my lvl 14 pastamancer the...
  6. P

    Default argument values....

    Mainly I would use it for scripts that took no input but allowed switches. For instance: Lets say that I wanted a script that would drink the best drink it could find, by default it would drink only drinks that you currently had in your inventory and not buy any items or drinks from NPCs or...
  7. P

    Default argument values....

    Would it be difficult to allow function declarations to have default argument values. Such as void print_default(string s = "This is the default string") { print (s); } So that it could be called: print_default(); print_default("I like cheese"); which...
  8. P

    Smithing bot? Need advice on workarounds and such.

    I know this may not be the most desired way to do things... but if your clannie kmailed with the name of the item that they were attempting to create in the msg title you could use that title to figure out what ingredianets you are looking for rather then having ingerdients and looking for a...
  9. P

    Standardized ash libs

    @Zarqon: I'd like to add the obtain and use_upto functions from the wossit script to this lib. if it is ok with you. Also, if it is good with you I'd like to add a line of code to allow -1 to be passed as n to signify that we should use as many of the item that we have no matter what number of...
  10. P

    Fuzzy matching change

    Yea... I think I need to change my vote.... and my claims...
  11. P

    Standardized ash libs

    Ok... I started a StdAsh.ash lib right now it hasn't got too much in it but I kind of wanted to get the ball rolling. Each function is documented and credited in the .ash file. If I used a function you want me to not have used, or if I credited the wrong code monkey. Let me know. Remeber to feel...
  12. P

    More library funtions wanted

    Um... I am not sure if I agree with range_weapon(item) being useless... unless all moxie weapons are now, and will (likely) forever be ranged weapons. If that is true then range_weapon(item) probably is useless. However weapon_type is still useful as returning the type of weapon it is...
  13. P

    Fuzzy matching change

    On, I usually don't know what something is called so I take guesses until it gets fuzzy matched.
  14. P

    Help with text manipulation....

    Nevermind... I *think* fightoptimizer.ash just short circuited on non damaging actions to save time, so by eliminating the quickouts I think I can get the actual damage... with the possible exception of battlefield healing items...
  15. P

    Help with text manipulation....

    I was hoping that would be the case but it seems that monster_hp() is only updated at the start of the round... it doesn't seem to update between rounds.
  16. P

    Help with text manipulation....

    So I was trying to write a consult script like FightOptimizer. I am having trouble extracting the amount of damage that I did to the enemy. I tried borrowing some code from FightOptimizer (um... by borrow i mean pretty much copy) but it doesn't work correctly when I miss or do a non damage...
  17. P

    How to use optional arguments in main()

    I was wondering if anyone knew if there was a way to have an ash script that had a main function that would take optional arguments. I.E void main (string arg1) { } where calling the script with no arg would not pop up an input box. Can I overload the main function? void main...
  18. P

    fight.php override - action buttons and a little fight-related library

    Does get damage get the amount of damage that you did to the opponet, or does it get the amount of damage you expect to do to the opponent?
  19. P

    Maximize.ash, maximize equipment in one command.

    Wow, you are right... it is working amazingly slow for some reason... i guess I had been working on it so much that I didn't even notice... I can probably fix that up something quick. Anyway, about following veracities suggestion... Her(?) suggestion was to use the data built in directly rather...
  20. P

    Maximize.ash, maximize equipment in one command.

    Thanks for the info on numeric modifiers and such. Due to the fact that no matter what I would still need something along the lines of the extra files I have and that I have already written the code I have decided to not rewrite the script. The only way to get rid of those extra files would be...
Back
Top