Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - The Reaper

Pages: [1] 2 3
1
Scripting Chat / Re: Execution Issues?
« on: June 08, 2011, 03:58:41 PM »
Sorry to detract from the OP, but why use #findcnt over #findkind?? if #findcnt = 0 then #findkind should always be -1?? no? That was my understanding of it. :S

2
Try this one:

FYI this script isn't finished, you have to select ALL LOGS for it to work correctly. Don't think it counts them or anything. I'm not officially releasing it, but it's there if you want it.

Over-all, it's faster running the two things seperately because otherwise your wasting time chopping 20 oak boards, as opposed to the 250 when script is dedicated to chopping logs into boards.

Been slowly working on a way to get it to be selective, and display properly. Not to far off, so look out for the propper release of my log splitter.

3
Scripting Chat / Re: Execution Issues?
« on: June 08, 2011, 08:13:35 AM »
Yes, EN's code would be faster than mine although they do the same thing effectively. Sorry I didn't explain myself about needing to check that you actually have shovels to move.

4
Scripting Chat / Re: Execution Issues?
« on: June 08, 2011, 02:54:02 AM »
Code: [Select]
Finditem %Shovels C_ , %Wherevermyshovelsare
For #Findindex 1 %ShovelsToGet
  {
   exevent drag #FindID
   Wait 10
   exevent dropc #BackpackID
   Wait 10
   }

This is really risky coding  :o

Try something like this instead:
Code: [Select]
For %xyz 1 %ShovelsToGet
    {
    Finditem %Shovels C_ , %Wherevermyshovelsare
    if #kindkind = -1
       {
       display ok You've run out of shovels
       halt
       }
    exevent drag #FindID #findstack
    wait 10
    exevent dropc #BackpackID
    wait 10
    }

The use of #findindex was probably screwing it up. Much easier to just search for a new shovel in the secure. Note that the variable %xyz isn't called anywhere, it doesn't need to be.

And I know exevent drag defaults to 1, but I prefer to state it, it then becomes a re-useable sub for much more.

5
"You can't do that" wasn't in my list :S

Now been changed to:
Code: [Select]
if You_can't_ in #sysmsgThis will incorporate the new and old #sysmsg's

Also, Gimlet, added dispel sub for you.

Although I think I've found the issue over-all, when implimenting TM's travel subs, I think I missed the return to tree's after dropping off wood.

Let me know if it works, I haven't have time to test the updates as I'm frantically trying to get mace and shield glasses :p

6
It is most likely trying to continue chopping from your last know point because your recall book hadn't recharged, or it simply failed to recall. Don't stop the script, let it sort it's self out. It's written to not stop just because it can't find any trees, it should simply go to another rune eventually. What is the system message produced when your at your secure and it tries to chop?? The script is designed to search for several system messages whilst chopping:

Code: [Select]
if You_can't_use_ in #sysmsg
   {
   break
   }
if Target_cannot_be_seen in #sysmsg
   {
   break
   }
if too_far in #sysmsg
   {
   break
   }
until not_enough_wood in #sysmsg
return

If it's non of those, then it won't stop. So I need a little more information on your part.

7
When it tries to chop at the secure, don't stop the script. Just let it run it out.

It will get bored of your house and move on.

But as a guess I'd say your carrying too much weight.

Did you re-download the script?

8
Sweet, my logger will be ready for Ter Mur soon then :P

God am I glad I don't have to add 6400 variables :P

9
Really quick question, would this work for registering variables, I'm wayyyy to lazy to type out all 25 x 64 x 4 possibilites :S

Code: [Select]
for %TR_rune 1 64
    {
    for %TR_no 1 25
        {
        if %TR_x_ , %TR_rune , _ , %TR_no <> n/a
           {
           gosub TM_NGFS_RegisterVariables TheReapers_Log_Harvester std std TR_x_ , %TR_rune , _ , %TR_no TR_y_ , %TR_rune , _ , %TR_no TR_z_ , %TR_rune , _ , %TR_no TR_tt_ , %TR_rune , _ , %TR_no
           }
        }
    }
gosub TM_NGFS_SaveVariables TheReapers_Log_Harvester

Now I understand that the "%" wouldn't normally appear in this gosub command, however, I'm using it to construct the variable name. So set of variables that would be called would be: "TR_x_1_1" "TR_y_1_1" "TR_z_1_1" and "TR_tt_1_1"
Next set would then be: "TR_x_1_2" "TR_y_1_2" "TR_z_1_2" and "TR_tt_1_2"
Until we reach: "TR_x_64_25" "TR_y_64_25" "TR_z_64_25" and "TR_tt_64_25"
I know it's a hell of a lot of variables, but when I've finished there will only be about 300, as not every tile will need to be recorded, instead of 6400 :P

10
Your overweight to start with if it's doing that.... think the threshhold is 40 below your max carrying capacity.

If it's casting a spell you don't have it might be trying to heal using chiv, will double check that the heal and cure subs are working properly.

If a script isn't working, try pressing F7 to start the script, continue pressing it until you get to the coding that you believe is wrong, then reply stating where in the script it is.


Actually, I found it, the heal subs weren't working properly. Should be working now. Please make sure your at full health before starting the script. If it still goes to first rune, then straight back to house to heal then increase the value of %TR_wait however this will then reduce the efficiency of the over-all script.

The other option is to wear a suit that DOES NOT have any +hp or +str on it. When you recall, it only takes your chars stats while naked, then re-equips your suit once you arrive at your destination. This means that your not at full HP when you get there. So the script is taking you back to a safe spot to heal you back up.

11
Scripting Chat / Re: Execution Issues?
« on: June 02, 2011, 09:41:48 AM »
In that case the only thing left are corrupt Global (saved) variables. In which case you'd need to write a sub to reset them. Not that I can of much help, my windows update on my PC corrupted this morning, and I'm left with an OS that won't boot. Not much chance of recovering some of my stuff, but a lot will be backed up on my laptop or my portable hard drive.

oooooo, it would appear that the repair function on the win CD is actually trying to do something, first time I've ever had it actually work :S

12
Scripting Chat / Re: Execution Issues?
« on: June 01, 2011, 10:05:46 AM »
I too have had one or two similar issues recently.

I've narrowed it down to scripts that have been using out-dated commands. IE event drag, instead of exevent drag etc.

Basically, scripts like this were often written back in EUO 1.4

Also, check the "Repeat" and "While" commands. If they call subs out of the loop, make sure they return to the loop. If they contain "Goto" commands this could be causing your issue.

All in all, it's often easier to re-write the coding from scratch than de-bug someone elses code :S

13
Bucklers are 50g each, Spewy's Runebook Miner makes ingots free :P Sorry 12x but your mining script don't work on my freeshard :(

And gimlet, sorry mate, nope. I really need to get TM's travel subs into my scripts for ya :S

The main problem with this process is that in 1hour I've used 30k ingots, so your looking at 30 hours of continuous scripting for one pair of glasses. Not to mention the week of scripting for the ingots.

Although, you can sell the rarer ingots ofc.

I'll look into TM's travel subs soon, I promise :P Been too busy with IRL :(

14
This script makes bucklers at your house and takes them to brit library to hand them in.

Been tested, managed to get 25k points all by itself, so I'm letting you lot loose on it.

Any feedback is much appreciated.

Will be adding a menu box to keep track of what you've used etc, but I don't really have time right now. ATM, it works, that's all that matters.

Small note, you'll be needing about 900,000 plain ingots!!!!!!!!

Updated to Version 2.0 - NOW HAS GATE SUPPORT, GO GO GIMLET!!
Updated to version 1.1 to remove 1 or 2 bugs, should now make smiths hammers instead of tinker tools when your lagging :S

Still to do:
- Add a menu interface - DONE
- Add gate travel - DONE

15
TM I've spent most of the day thinking about how to do it, whilst at work, it wasn't a very productive day.

That's exactly what I've decided to do.

My next update will be for ML facets though. After that V2.0 will be for TerMur as well.

Should be ok to add to finished scripts library next week, as I've have ironed out all the little bugs.

Then the mammoth task of V2.0. Shouldn't take too long in all fairness, especially since I know know how to use your save subs :P

Pages: [1] 2 3