Author Topic: JaF's Slayer Book Maker 3.6.3 Updated 10-9-11 --Now has Donate to Library  (Read 88710 times)

0 Members and 1 Guest are viewing this topic.

Offline 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
I posted this only with the intention of helping others out, as I've been helped a lot here before.

If this post shouldn't exist or if it displeases anyone, please let me know, I will remove it ASAP. Thank you.
On the contrary, good stuff frneo; thanks for sharing. This would be the appropriate way to share your customizations. +rep for the effort!

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline SolidSnake

  • ScriptUO Guild
  • *
  • Posts: 497
  • Activity:
    0%
  • Reputation Power: 6
  • SolidSnake has no influence.
  • Gender: Male
  • Respect: +34
  • Referrals: 1
    • View Profile
Used this recently train up scribe across all my accounts. Just a little note on how FREAKIN AWESOME THIS SCRIPT IS!!!! Thank you brother..

Offline JustAnotherFaceTopic starter

  • Hero Member
  • *
  • Posts: 530
  • Activity:
    0%
  • Reputation Power: 8
  • JustAnotherFace has no influence.
  • Gender: Male
  • My new toy....
  • Respect: +24
  • Referrals: 4
    • View Profile
No Problem Frneo, glad you are getting some use from the script.  I may just add in a pen tinkering option to the script, not something anyone has asked for before except for during the last week my friend Snake asked the same question.  If I do put it in the script and if use any of your code I will credit it to you in the script for the contribution.

Thanks for the input!!

JaF
All that tyranny needs to gain a foothold is for people of good conscience to remain silent.
Thomas Jefferson

Offline JustAnotherFaceTopic starter

  • Hero Member
  • *
  • Posts: 530
  • Activity:
    0%
  • Reputation Power: 8
  • JustAnotherFace has no influence.
  • Gender: Male
  • My new toy....
  • Respect: +24
  • Referrals: 4
    • View Profile
Used this recently train up scribe across all my accounts. Just a little note on how FREAKIN AWESOME THIS SCRIPT IS!!!! Thank you brother..

Thanks Snake!!  As always shoot me any suggestions, and when I have time I will try to implement them.  And btw, thanks buddy for being my crash test dummy on many of my scripts!

JaF
All that tyranny needs to gain a foothold is for people of good conscience to remain silent.
Thomas Jefferson

Offline NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +161
  • Referrals: 2
    • View Profile
+1 to that.  I used this to GM inscription and to stock up some Superslayer books.  First craft training script I ever used that made me money!  Assuming you could always find a buyer for your superslayers, this is probably one of the best, non-detectable ways to mint gold in UO.

Of course, when you exhaust your market... =/

Offline Neo

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
On the contrary, good stuff frneo; thanks for sharing. This would be the appropriate way to share your customizations. +rep for the effort!

X
Thank you 12x, I really appreciate it! :)


No Problem Frneo, glad you are getting some use from the script.  I may just add in a pen tinkering option to the script, not something anyone has asked for before except for during the last week my friend Snake asked the same question.  If I do put it in the script and if use any of your code I will credit it to you in the script for the contribution.

Thanks for the input!!

JaF
Thank YOU for making it available to us, and I would love to see the tinkering option in the script someday. If my code is useful to you at any level, I'd be honored to have helped out, even if it's only a little. :)
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +161
  • Referrals: 2
    • View Profile
No Problem Frneo, glad you are getting some use from the script.  I may just add in a pen tinkering option to the script, not something anyone has asked for before except for during the last week my friend Snake asked the same question.  If I do put it in the script and if use any of your code I will credit it to you in the script for the contribution.

Thanks for the input!!

JaF

+1 for the pen option.  I would have asked earlier, but it felt a little greedy =D  It's already such a great script...

Offline JustAnotherFaceTopic starter

  • Hero Member
  • *
  • Posts: 530
  • Activity:
    0%
  • Reputation Power: 8
  • JustAnotherFace has no influence.
  • Gender: Male
  • My new toy....
  • Respect: +24
  • Referrals: 4
    • View Profile
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
All that tyranny needs to gain a foothold is for people of good conscience to remain silent.
Thomas Jefferson

Offline SolidSnake

  • ScriptUO Guild
  • *
  • Posts: 497
  • Activity:
    0%
  • Reputation Power: 6
  • SolidSnake has no influence.
  • Gender: Male
  • Respect: +34
  • Referrals: 1
    • View Profile
Did it last night on my last account. Works like a dream. I had taken up the time to work up tinkering across all my accounts just for this sort of thing.

Work up Inscribe to 75...then fire this baby up for the finish. Got a nice collection of Super Slayers to finish out all my different mages (20 some) back packs as a bonus, with a few leftovers.

Across 5 accounts and not one single hiccup in the script's operation. C'mon man..what more could you want?

Much appreciation brother!!

Offline Neo

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
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...




« Last Edit: August 02, 2011, 08:52:48 AM by frneo »
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline SolidSnake

  • ScriptUO Guild
  • *
  • Posts: 497
  • Activity:
    0%
  • Reputation Power: 6
  • SolidSnake has no influence.
  • Gender: Male
  • Respect: +34
  • Referrals: 1
    • View Profile
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.

Offline Neo

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
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 :)
« Last Edit: July 31, 2011, 06:07:55 AM by frneo »
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline Neo

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
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!



« Last Edit: August 02, 2011, 12:04:39 AM by frneo »
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline JustAnotherFaceTopic starter

  • Hero Member
  • *
  • Posts: 530
  • Activity:
    0%
  • Reputation Power: 8
  • JustAnotherFace has no influence.
  • Gender: Male
  • My new toy....
  • Respect: +24
  • Referrals: 4
    • View Profile
Hmmm... should we release this or not?...... Well, it is not game breaking or anything like that. And several people have asked for it, but my work has simply not allowed me the time to implement it into the script and test it out. I think it definitely adds value to the script so considering all those things..... I guess we can release it.  I will of course properly credit you and TM for both of your codes. 

I again have not tested this code, but I have walked through it and it looks ok to me.  As with any code or versions of scripts, everyone please test it and post up your findings. 

JaF
All that tyranny needs to gain a foothold is for people of good conscience to remain silent.
Thomas Jefferson

Offline JustAnotherFaceTopic starter

  • Hero Member
  • *
  • Posts: 530
  • Activity:
    0%
  • Reputation Power: 8
  • JustAnotherFace has no influence.
  • Gender: Male
  • My new toy....
  • Respect: +24
  • Referrals: 4
    • View Profile
Re: JaF's Slayer Book Maker 3.5 Updated 8-2-1 --Now has Donate to Library
« Reply #149 on: August 02, 2011, 01:56:44 PM »
0
Version 3.6 Posted up on this threads main page.  This version includes the donation to library code from Frneo. Thank you Frneo for your time and your code!!

Also thanks to TM for his runebook recall subs and his journal scan subs!

JaF
All that tyranny needs to gain a foothold is for people of good conscience to remain silent.
Thomas Jefferson

Tags: