Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 48

Thread: Townsmith

  1. #21

    Default

    Put in right after

    have_disk = GameObj.loot.any? { |obj| (obj.noun == 'disk') and obj.name =~ /#{checkname}/ }

    Code:
    ## quick hack to stop running all over creation
    
    boxdb = [ 'box', 'coffer', 'chest', 'strongbox', 'trunk' ]
    unless boxsack = GameObj.inv.find { |obj| obj.name =~ /#{Regexp.escape(UserVars.boxsack.strip)}/i } || GameObj.inv.find { |obj| obj.name =~ /#{Regexp.escape(UserVars.boxsack).sub(' ', ' .*')}/i }
    	echo "Couldn't find boxsack"
    	exit
    end
    fput "open my #{boxsack}"
    fput "look in my #{boxsack}"
    contents = waitfor("In the .+ you see").gsub(/ and (?:an|a|some)/, ',')
    boxes = contents.scan(/\b(?:#{boxdb.join('|')})(?=,|\.)/)
    if (boxes.length == 0 || boxes.nil?)
    	respond ("You got nuttin' here for me\!")
    	exit
    end
    ## end of quick hack to stop running all over creation
    If ya want.

    - Smythe

  2. #22

    Default

    Quote Originally Posted by Boreus View Post
    Could use one small tweak
    Sometimes when my wizard goes out he runs out of mana before he gets any decent loot, so my rest scripts come back and run townsmith to open no boxes and then sloot sell comes up and tells me you got nothing to sell so I run back out. Only now I"m carring the 10000 silver from townsmith. Might we get townsmith to go back and deposit the money you didn't spend when it is done running?
    I can have it deposit everything. The reason it doesn't currently is because most people run it in a sequence with other scripts that sell everything and then deposit it all. I didn't realize sloot sell won't deposit silver if nothing matches. I'll look into it.

    BTW, the reason I don't check for boxes at the start is because of the wait for disks to catch up. If you wait at the start to check for boxes and there are boxes in the disk, you'll have to wait again when you get to the locksmith.

  3. #23

    Default

    I could add a force deposit option to the end of sloot.
    It must be hard to type with ghostcrawlers penis lodged in your ass. - g++

  4. #24

    Default

    Don' ya already have one?

    - Smythe

  5. #25

    Default

    Quote Originally Posted by Smythe View Post
    Don' ya already have one?

    - Smythe
    Nope, I have a force withdraw.
    It must be hard to type with ghostcrawlers penis lodged in your ass. - g++

  6. #26

    Default

    I mus' be dense. I don' see SLOOT withdrawin' coins, but there's this:

    Code:
    	if (silver > 0)
    		SGoto.go2('bank')
    		fput "deposit all"
    	end
    I guess I don' get it. But fer me, SLOOT always deposits coins after sellin'.

    - Smythe

  7. #27

    Default

    Either in towmsmith or in sloot is fine with me, I actually just made a go2 bank, deposit al,l go2 town that I run after sloot sell right now.

    Smythe Sloot also deposits my coins after I sell it's only when my wizard runs out of mana before he finds anything worth selling that I have the problem

  8. #28

    Default

    Ah, I see. That deposit only happens after a sell. Ya, shouldn' be hard fer Spiffy ta always deposit, no matter if a sell happens. 'preciate it!

    - Smythe

  9. #29

    Default

    It's already added.

    P.S. Roleplaying stops when you tab out of Gemstone.
    Last edited by SpiffyJr; 06-18-2010 at 10:49 AM.
    It must be hard to type with ghostcrawlers penis lodged in your ass. - g++

  10. Default

    Code:
    The merchant Blackfinger accepts your silvers.
    Turning his attention to the tanik chest, Blackfinger picks the lock with ease.  "There you go," he says matter-of-factly.
    >
    [townsmith]>get #6125229
    >
    You remove an enruned tanik chest from on a polished wooden counter.
    >
    [townsmith]>open #6125229
    You open an enruned tanik chest.
    >
    [townsmith]>get coins from #6125229
    You gather the remaining 1158 coins from inside your tanik chest.
    Roundtime: 1 sec.
    >
    [townsmith]>_drag #6125232 #5887049
    You need a free hand to pick that up.
    You can't put something that you can't hold.
    >
    [townsmith]>_drag #6125231 #5887014
    You need a free hand to pick that up.
    You can't put something that you can't hold.
    >i
    You are holding an enruned tanik chest in your right hand and some basal moss in your left hand.

Similar Threads

  1. useherb and townsmith not working for me as of today
    By Shari in forum The Lich Project
    Replies: 14
    Last Post: 05-21-2014, 04:50 AM
  2. townsmith
    By Aloris in forum The Lich Project
    Replies: 0
    Last Post: 09-05-2010, 09:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •