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 - Neo

Pages: 1 ... 44 45 [46] 47
676
Crafting / Re: frneo's Weapon Crafter v2.0 out 08/07/11
« on: August 06, 2011, 10:43:03 PM »
Ok guys, followed your tips and suggestions and just finished adding them. Version 2.0 is out! :)

Please continue giving me feedback about it so I can keep improving it!

Hope you enjoy!

Cheers.

677
Combat/Healing/Looting / frneo's Golem Weapon Safety
« on: August 05, 2011, 09:00:55 AM »
Just a simple snippet I use to train skills with a golem. Thought of sharing with you guys! :)
It's very simple, but has saved me a lot of time.

Code: [Select]
;=======================================================================
; Script Name: frneo's Golem Weapon Safety
; Author: frneo
; Version: 0.1
; Client Tested With: 7.0.16.1
; EUO version tested with: 1.50 198
; Shard OSI / FS: OSI
; Revision Date: 08/05/2011
; Public Release: 08/05/2011
; Global Variables Used: none
; Purpose: Checks the durability of your weapon while you train with your
;          golem. If durability of the weapon falls to the value you choose,
;          it will remove the weapon from your paperdoll as to not destroy it, and
;          then logout.
;          Will NOT check Golem's Health!
;--------------------------------------------------------------------------------
; Instructions: Just have your weapon in hand and hit play, then follow the screen
;               instructions.
;---------------------------------------------------------------------------------
; Thank you goes to:
; dxrom: I used the logout sub from your Lame 2.1, hope you don't mind. If you
;        want, just ask me and I'll remove it. I was too lazy to write my own! :)
;        Also thank you for sharing Lame with us, great script!
;================================================================================

Edit: I forgot to mention, if the menu bar is open on top, can cause a slight issue with the gump selection for Kill.
It's best to minimize it or just close it...

678
Crafting / Re: frneo's Weapon Crafter v1.1 uploaded 08/05/11
« on: August 05, 2011, 07:13:58 AM »
http://www.scriptuo.com/index.php?topic=7890.0

I have a few weapons for my main sampire that I use which have damage spread over two types.  After I made the list in the link I found that these were almost as good as 100%.
That's a nice list... It's good reference to what weapons one should craft for each champ... Thks for sharing!

Can't you enhance 40 fire onto stuff? So wouldn't 60 fire be the minimum you would want instead of 70?

Personally, I keep stuff that will enhance to 90. That gives enough elemental damage in my book.

Also, not sure if you want to include this... Saving a weapon that is 70% in an elemental damage doesn't always mean it can be enhanced to more. Take this example:

70 Fire Damage
20 Cold Damage
10 Energy Damage

That can't be enhanced any more at all. The "other" damage type has to be physical to make the weapon able to increase the elemental damage.
You're right... I should rewrite this so that it saves weapons with 60 fire and the rest to physical, and else trash... I gotta do some research about the other elements too to see a better way to add a save weapon check to the code...

If this goes well, I'll put in an option to save "weapons that can be enhanced to 100% elemental" to the menu, once I know all the correct values needed...

And then just keep a regular option of saving generic elemental damage => X%, maybe 50%?

Thank you for the input  Cerveza...

For instance, yesterday Ultima and NObama told me that poison weapons can't be enhanced to 100, I didn't know about that...

So, if one wants 100% elemental weapons, would this be the way to go?:

100% fire: 60% fire or above, rest physical -> enhance with bronze.
100% cold: 70% cold or above, rest physical -> enhance with agapite
100% energy: 80% energy or above, rest physical -> enhance with copper
100% poison: you have to craft 100% poison, else it can't be enhanced further?

If anyone can confirm this, it would be greatly appreciated...

Cheers!

679
Crafting / Re: frneo's Weapon Crafter Updated 08/04/11
« on: August 04, 2011, 11:20:37 PM »
Very nice Frneo! Scripts like this are near and dear to my heart. ;)

I just burned up the last of my runic hammers today and I'm all out of BODs so I can't say for sure when I'll get a chance to test it but I can assure you I will.

I typically use shadow, copper and dull copper hammers when crafting elementals. I believe the ID is the same so it shouldn't be a problem.

Great submission! :)
After you use the first tool, it will remember the type and search for it in your resource container. Since all the hammers have the same type, I guess it will use whatever hammer it finds inside your secure.

[]s

680
Crafting / Re: frneo's Weapon Crafter v1.1 uploaded 08/05/11
« on: August 04, 2011, 08:36:08 PM »
Thanks for trying this out guys... Version 1.1a is up and fixes some issues I came across...

I also appreciate the feedback, so I can keep working on this!

Cheers!

:)

EDIT: Ok, been testing this for the last 20 minutes or so, so far working flawlessly for me...


681
Code: [Select]
;===================================================================================
; Script Name: frneo's Weapon Crafter with TM's Advanced CLAw support
; Author: frneo
; Version: 5.0.1
; Client Tested With: 7.0.16.3
; EUO version tested with: 1.50 199
; Shard OSI / FS: OSI
; Revision Date: 08/31/2011
; Public Release: 08/04/2011
; Purpose: Makes weapons and checks whatever property the user wants to check for
;          in it. Elemental Damage, Slayers and anything else the user wants
;          to add. Weapons with the determined criteria will be saved, and the rest
;          will be unraveled.
;-------------------------------------------------------------------------------------
; Now supports TM's Advanced CLAw!
; Thank you TM for letting me use the CLAw with this.
;-----------------------------------------------------------------------------------
; Url:     http://www.scriptuo.com/index.php?topic=8105
;===================================================================================
; Version 5.0.1      - Fixed pause button
;                    - Removed wait time from gumpwait sub. Should make the script run
;                      even faster now!
;------------------------------------------------------------------------------------
; Version 5.0.0      Now supports TM's Advanced CLAw! Thank you TM for letting me use it!
;                    You can download the claw here:
;                    http://www.scriptuo.com/index.php/index.php?topic=17.0
;                    If you choose to use the CLAw with this, you must thank TM for it in
;                    the above topic! :)
;--------------------------------------------------------------------------------------
; Version 4.1.8      - A few minor fixes
;-------------------------------------------------------------------------------------
; Version 4.1.7      - Fixed some minor code that could cause issues.
;                    - Also removed some unnecessary code.
;-------------------------------------------------------------------------------------
; Version 4.1.6      - Previous version would cause an issue with the weapon view button
;                      not displaying the whole property of the weapon. Should be fixed
;                      now.
;--------------------------------------------------------------------------------------
; Version 4.1.5      - Added timeout to "event property safe check".
;                    - Changed the way the event property safe check works.
;                    - New cool way to check for properties! :)
;----------------------------------------------------------------------------------
; Version 4.1.4      - Added event property safe check. Thank you EN for this tip.
;---------------------------------------------------------------------------------
; Version 4.1.3      - Added colored material option to menu
;                    - Added dmc to click sub (Thank you EN for both suggestions)
;                    - Will now check if save file exists for current character
;                    - Minor change to the way the unravel sub works
;                    Keep in mind that this version does not automatically check for
;                    color of the material, you must set it yourself before starting
;                    the script. Also, only keep the desired color for material
;                    inside the resource container.
;-----------------------------------------------------------------------------------
; Version 4.1.2      Fixed gumpwait sub. Apparently I wrote it wrong the first time
;                    round, and kept using the wrong version in all my scripts.
;                    I never noticed it before because it didn't really change the
;                    functioning of the script. So, nothing too serious, but still
;                    deserved a fix.
;---------------------------------------------------------------------------------
; Version 4.1.1      Minor drop wait time fix.
;--------------------------------------------------------------------------------
; Version 4.1        - Added pause/resume button. While paused you can edit the
;                    criteria you choose, and also save/load your user config.
;                    - Added View Selected Weapon Button. This button will display
;                    the properties of the weapon you select in the menu, and give
;                    you a choice to move the selected weapon to your backpack.
;                    - Will now pause the script if you run out of ingots/boards
;                    or tools, so that you can get more and resume. Remember
;                    to reopen your containers if you go get more.
;=================================================================================
; Version 4.0a       Fixed minor issue with removing property from list.
;--------------------------------------------------------------------------------
; Version 4.0        Major changes:
;                    - Will now allow user to set any amount of properties to look
;                    for in a weapon. As far as I'm concerned, there are no limits
;                    to the amount of properties the user can set.
;                    - Menus rebuilt, inspired by TM's advanced claw! Thank you
;                    for sharing the claw with us TM! :)
;                    - Check code re-written entirely for this
;                    - Now uses TM_NGFS to save user setup. Thank you again TM
;                    for sharing your awesome code with us!
;                    - Lag check
;---------------------------------------------------------------------------------
; Version 3.0        Major changes:
;                    - Allows user to input own custom property minimum to look
;                      for in weapon
;                    - Allows user to input own custom Slayer to look for in weapon
;                    - Allows user to choose the material he's going to use to craft
;                      stuff, i.e. boards or ingots.
;                    - Allows user to use whatever runic tool type he chooses,
;                      as long as the material to be used is either ingots or
;                      boards.
;                    - I thought of a new way to check for properties, the entire code
;                      was re-written in a more compact and efficient manner.
;                    Minor changes:
;                    - Changed amount of weapons to make before unraveling down to ten
;                      I figured this would be safer. If one wishes to make
;                      more weapons at a time, info about how to do that
;                      can be found in the script topic at SUO.
;---------------------------------------------------------------------------------
; Version 2.2        Increased amount of weapon to make before unraveling to 20
;                    I don't think this will cause a weight issue. Should run even
;                    faster now!
;--------------------------------------------------------------------------------
; Version 2.1b       Removed all goto's as a birthday gift for Cerveza! :)
;--------------------------------------------------------------------------------
; Version 2.1a       Minor fix: Fixed issue that would prevent Elemental Slayers
;                    with Fire or Poison Damage to be saved.
;--------------------------------------------------------------------------------
; Version 2.1        Some changes to make the script run faster:
;                    - Will craft weapons directly IN unravel bag now, weapons
;                      will no longer have to be dragged one by one.
;                      Thank you MeWonUo for the tip! :)
;                    - Changed the way crafting subs work. Will craft weapons
;                      faster now.
;                    - Removed the trash barrel option. After burning
;                      more than 40 hammers using this, and not needing the
;                      trash barrel, I guess it was about time to remove it
;
;                      I want to thank everyone who's giving me feedback
;                      so I can keep improving this! Cheers!
;--------------------------------------------------------------------------------
; Version 2.0        Menus rebuilt. Most of the code was rewritten for stability.
;                    Added option for user to set minimum damage wanted
;                    for each damage type. Added option for user to set
;                    minimum Swing Speed Increase to look for in each weapon.
;                    Added individual counters for all Damage Types and for
;                    each different slayer.
;--------------------------------------------------------------------------------
; Thank you Cerveza and Canuker for the input/tips. Version 2.0 was based on your
; comments! I appreciate it.
; Also thank you Ultima for the kind words, it's really nice to work hard on things
; when other people seem to value them. Thank you guys!
;================================================================================
; Version 1.1a       Fixed an issue with lag causing unravel to break.
;--------------------------------------------------------------------------------
; Version 1.1        Rewrote the check sub, for some reason it was trashing
;                    some weapons that should have been saved. Should be
;                    fixed now. I used a similar structure to JaF's in
;                    his Slayer Book Maker, so thank you JaF for the great
;                    code you shared with us! :)
;--------------------------------------------------------------------------------
; Version 1.0        Added Menu. Added selection of weapons you want to keep.
;                    Selection includes: Swing Speed Increase, Slayers and
;                    Elemental Damage 70% or above.
;--------------------------------------------------------------------------------
; Version 0.1a       Fixed issue with unravel
;--------------------------------------------------------------------------------
; Version 0.1        Currently only works with Dull Copper Runic Hammers, but
;                    other crafting options could be added easily with this
;                    setup structure. Future versions will have community
;                    suggestions added. If there are any suggestions that is! :)
;                    I also plan on adding menu customization for weapons people
;                    want, in future versions...
;================================================================================
;================================================================================
; Thank you goes to:
;
;
; TM for your clickoffset generator, saved me loads of time, thank you:)
; TM for his NGFS used from v4.0 on.
; TM for letting me use his Advanced CLAw :)
;
; Coragin for posting SUO Elemental Weapon Maker. Alas, I tried it out
; with no success, I guess it was a little outdated. However, it inspired me
; to write this! :) So thanks for that!
;=================================================================================
; Instructions:
; You must have a secure next to you with the Runic Tools and material to craft your stuff
; Also, you must have a container near you to put the weapons you crafted in
; You must have a bag INSIDE your backpack, where the trash weapons will be sent
; to for unraveling.
;
; You must be near a forge and anvil if Smithing,
; and also have a Soulforge near you, so you can unravel.
; Last, you must have 1 Tool and enough material to make your first weapon
; in you backpack.
; Once all these conditions are met, hit play, and follow the screen instructions
; If this works for you, or not, please tell me, I want to keep updating this
; according to what people think of it.
;===========================================================================

Pic shows the View Weapon button in action:


V5.0.1 with TM's CLAw in action! :)


Menu was inspired by claw's menu, thank you TM for sharing it with us!

Have in mind I haven't put many safe checks for what you write in your custom properties. So, if you write a property wrong, or a value that shouldn't be where you wrote it, the script won't function properly!

Input the number of the minimum value you want, without the '%' i.e. if you want 90% poison, you write 90 in the box.

That said, enjoy! :)

Version 5.0 has TM's Advanced CLAw support.

If you want to use it, remember to start it up on another tab BEFORE running the crafter... The crafter will use the settings on the CLAw to see what to keep and what to unravel...

Thank you TM for letting me use this!

neo


682
It was nothing, I'm glad I could help! :)

I was also thinking about the possibility of both locations being blocked when you try to recall, it would break the script...

I'm thinking about a way to fix that, should it happen... As soon as I figure it out, I'll post it here...

EDIT: Ok, I thought of a simple way to prevent that from happening, the donatesub should be changed to this

Code: [Select]
;Donation SUB Begin
sub frneodonate
menu delete status
menu text status 40 245 Donating at Library
if #contname = generic_gump && #contsize = 530_497
set %closex #contposx + 30
set %closey #contposy + 455
click %closex %closey f
libraryrecall:
gosub TM_TravelFromRunebook RE 1 2 %librarybook
donateloop:
finditem %npc
if #findcnt < 1
   {
   goto libraryrecall
   }
set #lobjectid #findid
event macro 17
gosub donationgumpwait generic_gump 345_359
set %donatex #contposx + 40
set %donatey #contposy + 165
click %donatex %donatey f
set #ltargetid %trash
while #targcurs <> 1
wait
event macro 22
gosub donationgumpwait generic_gump 500_360
set %donatex #contposx + 355
set %donatey #contposy + 340
click %donatex %donatey f
wait 10
finditem * C_ , %trash
homerecall:
gosub TM_TravelFromRunebook RE 1 2 %homebook
finditem %resource
if #findcnt < 1
   {
   goto homerecall
   }
set #lobjectid %resource
event macro 17 0
wait 20
return
This fixes the last issue I could think of for now... It will now keep attempting to recall, changing between both runes, until it succeeds...

Sorry for not putting this in the code in the first place JaF, sometimes I read the code over and over and miss these little issues that could arise...

But now I guess it's pretty safe to run without breaking... :)


Ah, one more thing!

Thank you TM for your subs, this wouldn't have worked without them!

Cheers!

683
JaF, I gotta say once more, this script is so great!

I've been burning through endless piles of scrolls with this, getting awesome books... I love this! :D

Congratz once more!


I was reading the posts here, and saw the suggestion of an option to donate at the library...

Then I went ahead and put in some code to add the option of donating... I've been using it for a couple of hours, and it's working flawlessly so far...

I won't post it here because I read that you were not sure if you were willing to release this option to the public, so I must respect that...

So, if you want, I can send you the code so you can check it out and if you like it, then you could post it here afterwards, or not... :)

I've also updated the tinker option, now you can choose from the menu if you want to craft pens or not... Same thing goes for donating books...


Anyways, I'm posting this only to try and help, and again, if I shouldn't have done this, just tell me and I'll get rid of it!


Cheers!




684
12TimesOvers' Script Library / Re: XIIxOveR's Miner For Dummies 3.0
« on: August 01, 2011, 03:34:06 PM »
Trying to add a Timer in there for Hours/sec/min but having problems :( any way u could help out or add on in there for me ?
Well, I thought about adding a timer for this as well, just to keep track of the amount of ore/hour easier. So I've added a few changes to the original script to add a built-in timer...
Hope this can help you out.

First, you need to replace sub DropnStock with this:
(Actually I just added the line "gosub frneotimer" there, but I posted the entire sub again as to avoid any problems where you should place the gosub)

Code: [Select]
sub DropnStock
gosub frneotimer
   finditem %SecureID
   while #findkind = -1
      {
      gosub TM_TravelFromRuneBook %TravelMethod 1 1 %RunebookID
      if %ToBank = yes
         {
         event macro 1 0 Bank
         gosub GumpWait container_gump container_gump 180_240 ;bankbox
         }
      finditem %SecureID
      }
   set #lobjectid %SecureID
   event macro 17
   gosub GumpWait %SecureGmpName %SecureGmpName %SecureGmpSize
   wait %mWait

   ;Deal with ghost items in pack by re-opening
   event macro 8 7
   wait %lWait

   ;Drop Items
   Repeat
      finditem %AllMinedTypes C_ , #backpackid
      while #findkind <> -1
         {
         if #findtype IN %GemTypes
            set %DropBag %GemBagID
         if #findtype IN %CrystalBRTypes
            set %DropBag %GemBagID
         if #findtype IN %GoldTypes
            set %DropBag %SecureID
         if #findtype IN %OreTypes
            set %DropBag %OreBagID
         if #findtype IN %StoneTypes
            set %DropBag %GemBagID
         if #findtype IN %BlackrockTypes && #findcol <> 0
            set %DropBag %BlkRkBagID
         exevent drag #findid #findstack
         wait %dragWait
         exevent dropc %DropBag
         wait %dragWait
         ;SOMETIHNG HERE THAT CONFIRMS THE ITEM HAS BEEN MOVED TO THE SECURE BEFORE COUNTING SO COUNTERS STOP GETTING EFF'd UP WHEN BANKBOX FULL
         gosub ResourceCnt #findtype #findstack #findcol
         gosub TM_NGFS_SaveVariables XIIxMining
         finditem %AllMinedTypes C_ , #backpackid
         }
   Until #findkind = -1
      
   ;Stock Items
   if %ToTinker = yes
      {
      finditem %IngotTypes C_ , #backpackid
      if #findstack < 20
         {
         set %amount 20 - #findstack
         finditem %IngotTypes C_ , %SecureID
         if #findstack < %amount
            {
            display You need to have at least 20 iron ingots to continue, get some more ingots and resume. Script pausing.
            Gosub Pause
            }
         else
            {
            exevent drag #findid %amount
            wait %dragWait
            exevent dropc #backpackid
            wait %dragWait
            }
         }
        
      repeat
         finditem %TinkerToolTypes C_ , #backpackid
         set !_cnt #findcnt
         if !_cnt < 2
            {
            finditem %TinkerToolTypes C_ , %SecureID
            if #findkind = -1
               gosub Tinker Tools
            else
               {
               exevent drag #findid
               wait %dragWait
               exevent dropc #backpackid
               wait %dragWait
               }
            }
            else
               {
               if #findkind = -1
                  {
                  Display You seem to be out of tinker tools with no way to make more. Script pausing.
                  Gosub Pause
                  }
               }
      until !_cnt > 1
      }
      
   finditem %MineToolTypes C_ , #backpackid
      while #findcnt < 2
         {
         set %amount 2 - #findcnt
         while %amount > 0
            {
            finditem %MineToolTypes C_ , %SecureID
            if #findcnt < 1
               {
               if %ToTinker = no
                  {
                  display You are out of mining tools, get more tools and resume. Script pausing.
                  gosub Pause
                  }
               if %ToTinker = yes
                  {
                  gosub Tinker Shovel
                  finditem %MineToolTypes C_ , #backpackid
                  set %amount %amount - #findcnt
                  }
               }
            else
               {
               exevent drag #findid
               wait %dragWait
               exevent dropc #backpackid
               wait %dragWait
               set %amount %amount - 1
               }
            }
         }
   gosub MenuButtonCheck
Return

Also, you should replace the original "sub Display_M_Tracking" with this one. All I did was add the Timer to this sub. And also, the time will start counting as soon as this menu appears.

Code: [Select]
sub Display_M_Tracking
  set %starttime #scnt
  set %runtime 0h:00m:00s
  menu Clear
menu Window Title XIIxOveR's Mining For Dummies
menu Window Color Gray
menu Window Size 391 300
menu Font Transparent #true
menu Font Align Right
menu Shape M_TrackingBorder 8 24 377 273 4 7 3 Maroon 7 Gray
menu Font Name Comic Sans MS
menu Font Size 10
menu Font Style bi
menu Font Color Black
menu Font Transparent #false
menu Font Align Center
menu Font BGColor Gray
menu Text Title 45 0 XIIxMining Resource Tracking System
menu Font Name MS Sans Serif
menu Font Size 8
menu Font Style b
menu Text IronCnt 28 48 Iron:
menu Text DullCnt 28 72 Dull:
menu Text ShadCnt 28 96 Shad:
menu Text CoppCnt 28 120 Copp:
menu Text BronCnt 28 144 Bron:
menu Text GoldCnt 28 168 Gold:
menu Text AgapCnt 28 192 Agap:
menu Text VariCnt 28 216 Veri:
menu Text ValoCnt 28 240 Valo:
menu Text EcruCnt 120 48 Ecru:
menu Text FireCnt 120 72 Fire:
menu Text TurqCnt 120 96 Turq:
menu Text BlueCnt 120 120 Blue:
menu Text PerfCnt 120 144 Perf:
menu Text DarkCnt 120 168 Dark:
menu Text BlacCnt 120 192 Blac:
menu Text CrysCnt 120 216 Crys:
menu Text SandCnt 120 240 Sand:
menu Text DiamCnt 212 48 Diam:
menu Text RubyCnt 212 72 Ruby:
menu Text StarCnt 212 96 Star:
menu Text SappCnt 212 120 Sapp:
menu Text CitrCnt 212 144 Citr:
menu Text AmbeCnt 212 192 Ambe:
menu Text TourCnt 212 216 Tour:
menu Text AmetCnt 212 240 Amet:
menu Text EmerCnt 212 168 Emer:
menu Text NormStnCnt 304 48 Norm:
menu Text DullStnCnt 304 72 Dull:
menu Text ShadStnCnt 304 96 Shad:
menu Text CoppStnCnt 304 120 Copp:
menu Text BronStnCnt 304 144 Bron:
menu Text GoldStnCnt 304 168 Gold:
menu Text AgapStnCnt 304 192 Agap:
menu Text VeriStnCnt 304 216 Veri:
menu Text ValoStnCnt 304 240 Valo:
menu Font Style
menu Text IronCntVal 70 48 %IronCnt
menu Text DullCntVal 70 72 %DullCnt
menu Text ShadCntVal 70 96 %ShadCnt
menu Text CoppCntVal 70 120 %CoppCnt
menu Text BronCntVal 70 144 %BronCnt
menu Text GoldCntVal 70 168 %GoldCnt
menu Text AgapCntVal 70 192 %AgapCnt
menu Text VeriCntVal 70 216 %VeriCnt
menu Text ValoCntVal 70 240 %ValoCnt
menu Text EcruCntVal 160 48 %EcruCnt
menu Text FireCntVal 160 72 %FireCnt
menu Text TurqCntVal 160 96 %TurqCnt
menu Text BlueCntVal 160 120 %BlueCnt
menu Text PerfCntVal 160 144 %PerfCnt
menu Text DarkCntVal 160 168 %DarkCnt
menu Text BlacCntVal 160 192 %BlacCnt
menu Text CrysCntVal 160 216 %CrysCnt
menu Text SandCntVal 160 240 %SandCnt
menu Text DiamCntVal 254 48 %DiamCnt
menu Text RubyCntVal 254 72 %RubyCnt
menu Text StarCntVal 254 96 %StarCnt
menu Text SappCntVal 254 120 %SappCnt
menu Text CitrCntVal 254 144 %CitrCnt
menu Text AmbeCntVal 254 192 %AmbeCnt
menu Text TourCntVal 254 216 %TourCnt
menu Text AmetCntVal 254 240 %AmetCnt
menu Text EmerCntVal 254 168 %EmerCnt
menu Text NormStnCntVal 343 48 %NormStnCnt
menu Text DullStnCntVal 343 72 %DullStnCnt
menu Text ShadStnCntVal 343 96 %ShadStnCnt
menu Text CoppStnCntVal 343 120 %CoppStnCnt
menu Text BronStnCntVal 343 144 %BronStnCnt
menu Text GoldStnCntVal 343 168 %GoldStnCnt
menu Text AgapStnCntVal 343 192 %AgapStnCnt
menu Text VeriStnCntVal 343 216 %VeriStnCnt
menu Text ValoStnCntVal 343 240 %ValoStnCnt
menu Font Size 10
menu Font Style bi
menu Font Align Left
menu Text Ingots 24 260 Ingots
menu Text Stone 304 260 Stone
menu Shape EUOShape2 20 256 57 4 3 7 1 Black 7 Maroon
menu Shape EUOShape3 300 256 57 4 3 7 1 Black 7 Maroon
menu Font Size 8
menu Font Style
menu Font Align Center
menu Text runtime 192 32 %runtime
menu Font Style b
menu Text timerunning 104 32 Time Running:
menu Font Style
menu Font Color WindowText
menu Font BGColor BtnFace
menu Button M_TrackingStart 105 265 60 25 Start
menu Button M_TrackingReset 225 265 60 25 Reset
;menu Show 0 450
return

And last, you should add this anywhere in the script:

Code: [Select]
;####################
;SUB frneotimer
;####################
sub frneotimer
set %currenttime #scnt
set %time %currenttime - %starttime
set %hh %time / 3600
set %rest1 %time % 3600
set %minutes %rest1 / 60
if %minutes < 10
   {
   set %mm 0 , %minutes
   }
else
    {
    set %mm %minutes
    }
set %seconds %rest1 % 60
if %seconds < 10
   {
   set %ss 0 , %seconds
   }
else
    {
    set %ss %seconds
    }
set %runtime %hh , h , : , %mm , m , : , %ss , s
menu set runtime %runtime
return

That's it, hope I didn't forget to post any of the code.

The end result should be something like this:



The timer will be updated every time you recall home to drop off the resources...

Hope this is what you meant, and if so, hope you like it... :)

If you give it a try, send some feedback!  ;)

PS: XII, if you don't like this, just tell me and I'll remove this post!  :-[

Cheers...




685
12TimesOvers' Script Library / Re: XIIxOveR's Miner For Dummies 3.0
« on: August 01, 2011, 01:49:34 PM »
Glad it's working out for you frneo! As you'll notice by some of the intermittent issues some folks seem to have, it's overdue for a slight overhaul but it's still working great for me overall! I really need to spend some time on the Ter Mur issues, I'm finding half my locations not mining at all suddenly for whatever reason; at some point I'll figure that one out...

X
I haven't used this in Ter Mur yet. If I stop being so lazy and mark a few runes in Ter Mur, I'll try it out there to see what happens...

I gotta read the other pages about this script, to see the issues people are having...

For me, the only issue is that it crashes sometimes at drop off... But that's probably something that is wrong at my end, because apparently every script that has exevent drag/dropc sometimes tend to crash on me... I'm gonna try to increase %dragWait and see if that solves it for me...

Cheers


686
IDOC tools / Re: TrailMyx's IDOC Finder v1.6
« on: August 01, 2011, 06:29:17 AM »
This works great for me... Found several decaying houses with this, in no time.

This script is actually the reason that I decided to write a repeating house placer that doesn't activate the tool cooldown, to try and place homes after IDOC...

Thank you for this!

687
12TimesOvers' Script Library / Re: XIIxOveR's Miner For Dummies 3.0
« on: August 01, 2011, 06:22:09 AM »
Great script, worked like a charm for me! I loved that it searches all spots, and saves the ones that work...

I'm gonna keep my 3 accounts mining like hell now! :)

Thank you for sharing this!

688
I did notice I had a lot of pens in my backpack when i woke up this morning but paid no attention to it since i was GM in skill.
Same thing happened here, I woke up this morning, all my scrolls where gone from the secure, and it was full of pens... That's when I guessed there was something off with the code...

Then I started looking at it, and found several things that could be improved...

Thx for trying out the code snake :)

689
I tried this out for the first time yesterday. I wanted to make potions for my plants... I'm currently growing 1500 plants, so you could imagine what I'd have to go through to make the potions without this script right? :) This is great stuff, worked like a charm...

Great job C2...

Thank you for sharing it with us!

690
Version 3.5.1 uploaded includes Frneo's code to craft pens. I do not have a scribe with tinkering to test the code, so please try out the new version and provide feedback.

Thanks,

JaF
Hi JaF, thx for trying out my code, I was really happy to see it in such a great script...

However, I was taking a look at my code, and I saw several flaws in it. Like I said, I wrote it kind of in a hurry...

For example, if you would run out of scrolls, the script would go into a loop making pens until your resource container was full...

Same thing would happen if your secure was full of books...

Anyways, I re-wrote some of the code, and improved it a little bit, and also fixed these issues.

So here goes the fixed version of the code.

First of all, you should change "sub button2" back to it's original form, my code won't use it anymore.

Code: [Select]
sub button2
set #menubutton n/a
menu delete status
menu window color white
menu text status 40 245 PAUSED
while #menubutton = n/a
  wait 10
gosub #menubutton
return

What I did change was "sub getpen". It should be changed to this:
Code: [Select]
sub getpen
if #menubutton <> n/a
   gosub #menubutton
menu delete status
menu text status 40 245 Getting Pen
finditem pbg C_ , %resource
if #findcnt < 1
   {
   if %tinker = #true
      {
      menu delete status
      menu text status 40 245 Making Pens
      gosub frneopen
      return
      }
   menu delete status
   menu text status 40 245 Out of Pens
   set #menubutton button2
   event ExMsg #charID 3 0 GET MORE PENS and hit RESUME
   return
   }
Exevent Drag #findid
Wait 10
Exevent Dropc #BACKPACKID
wait 10
finditem pbg C_ , #BACKPACKID
wait 10
while #findcnt < 3
       {
       finditem pbg C_ , %resource
          if #findcnt < 1
          {
           menu delete status
           menu text status 40 245 Out of Pens
           set #menubutton button2
           event ExMsg #charID 3 0 GET MORE PENS and hit RESUME
           return
          }
       Exevent Drag #findid
    wait 10
    Exevent Dropc #BACKPACKID
    wait 10
       }
set #menubutton BUTTON4
return

And also, I redid the rest of the code in accordance to these changes, so the previous version I posted here should also be deleted. This is the new version of the code, and should be inserted anywhere in the script:

Code: [Select]
;+++++++++++++++++++++++++++++++++++++++++++++++++++++++
sub frneopen
namespace push
namespace local frneopen
set !ingots ENK
set !tinker JTL
set !pen PBG
finditem !ingots C_ , %resource
if #findcnt < 1
   {
   namespace pop
   return
   }
if #findstack > 30
   {
   exevent drag #findid 30
   wait 20
   exevent dropc #backpackid
   wait 20
   }
if #findstack <= 30
   {
   exevent drag #findid #findstack
   wait 20
   exevent dropc #backpackid
   wait 20
   }
finditem !tinker C_ , #backpackid
if #findcnt < 1
   {
   namespace pop
   return
   }
if #findcnt = 1
   {
   finditem !ingots C_ , #backpackid
   if #findcnt < 1
      {
      namespace pop
      return
      }
   finditem !tinker C_ , #backpackid
   set #lobjectid #findid
   event macro 17
   wait 25
   gosub frneowait generic_gump
   }
frneotinker:
finditem !tinker C_ , #backpackid
if #findcnt < 2
   {
   finditem !ingots C_ , #backpackid
   if #findcnt < 1
      {
      namespace pop
      return
      }
   set !clickx #contposx + 30
   set !clicky #contposy + 130
   click !clickx !clicky f
   gosub frneowait generic_gump
   set !clickx #contposx + 235
   set !clicky #contposy + 130
   click !clickx !clicky f
   gosub frneowait generic_gump
   goto frneotinker
   }
finditem !tinker C_ , #backpackid
set #lobjectid #findid
event macro 17
wait 25
gosub frneowait generic_gump
frneopen:
finditem !ingots C_ , #backpackid
if #findcnt < 1
   {
   namespace pop
   return
   }
finditem !pen C_ , #backpackid
if #findcnt < 4
{
finditem !ingots C_ , #backpackid
if #findcnt < 1
   {
   namespace pop
   return
   }
set !clickx #contposx + 30
set !clicky #contposy + 130
click !clickx !clicky f
gosub frneowait generic_gump
set !clickx #contposx + 385
set !clicky #contposy + 270
click !clickx !clicky f
gosub frneowait generic_gump
set !clickx #contposx + 385
set !clicky #contposy + 270
click !clickx !clicky f
gosub frneowait generic_gump
set !clickx #contposx + 235
set !clicky #contposy + 110
click !clickx !clicky f
gosub frneowait generic_gump
goto frneopen
}
finditem !ingots C_ , #backpackid
exevent drag #findid #findstack
wait 20
exevent dropc %resource
wait 20
namespace pop
return

;+++++++++++++++++++++++++++++++++++++++++++++++++++++++
sub frneowait
namespace push
namespace local frneowait
wait 10
set !timeout #SCNT
waitforgump:
if #contname = %1
{
namespace pop
return
}
if #SCNT > !timeout + 5
{
finditem JTL C_ , #backpackid
set #lobjectid #findid
event macro 17
wait 25
namespace pop
return
}
goto waitforgump
;+++++++++++++++++++++++++++++++++++++++++++++++++++++++

And last, I added a "switch code" for the tinker option. So, if you want to use the tinker option, you should add this to the very beginning of the script:

Code: [Select]
set %tinker #true ; can be changed to #false if you don't want to craft pens

So, I guess the issues I could think of are all covered in this new code... If any bugs should still appear, I'd be more than happy to try and help fix them...

Sorry for the inconvenience of having to change the code again...

And thanks again for giving it a try...

Cheers!

EDIT 08/01: Added a security code to the gumpwait sub to avoid endless loops, in case something weird happens while you're crafting and you lose your gump... Also fixed some flaws in case for some reason you ran out of ingots in the middle of crafting....

EDIT 08/02: Used namespace to avoid any possible issues with var names...





Pages: 1 ... 44 45 [46] 47