View Full Version : box selling script
anyone have one or know where I could get one for sf?
AnticorRifling
10-07-2004, 02:19 PM
You could just make one real quick basically
start:
put look in my %container
match sellbox box
match selltrunk trunk
match sellstrongbox strongbox
match sellcoffer coffer
match sellchest chest
match done empty
matchwait
sellbox:
put Get box from my %container
put sell box
goto start
etc,
done:
(Put the directions from the pawn to the bank)
put deposit all
put check bal
exit
Here's one for Blackfinger in Icemule but it should be pretty easily changed to work for any NPC, you'll need to set your pack as user0 and you'll need to put your characters name in for the disk. Also for the match you need to put the name of your pack or cloak when you look in it. IE, "In your heavy backpack you see," you'd put in "heavy backpack". I wrote that in caps, it's about 8 lines down.
#Blackfinger Picking
if_1 save %1
if_1 goto ARG
match CHEST chest
match TRUNK trunk
match STRONGBOX strongbox
match BOX box
match COFFER coffer
match GLANCE There is nothing in there.
match GLANCE In the NAME OF YOUR PACK/CLOAK
put look in my %user0
matchwait
GLANCE:
match GLANCE_CHEST chest
match GLANCE_TRUNK trunk
match GLANCE_STRONGBOX strongbox
match GLANCE_BOX box
match GLANCE_COFFER coffer
match DISK You glance down at your empty hands.
match DISK hand.
put glance
matchwait
DISK:
match DISK_CHEST chest
match DISK_TRUNK trunk
match DISK_STRONGBOX strongbox
match DISK_BOX box
match DISK_COFFER coffer
match DONE I could not find what you were referring to.
match DONE There is nothing in there.
put look in YOURCHARACTER'S NAME disk
matchwait
CHEST:
save chest
put get my %s from my %user0
goto ARG
TRUNK:
save trunk
put get my %s from my %user0
goto ARG
STRONGBOX:
save strongbox
put get my %s from my %user0
goto ARG
BOX:
save box
put get my %s from my %user0
goto ARG
COFFER:
save coffer
put get my %s from my %user0
goto ARG
GLANCE_CHEST:
save chest
goto ARG
GLANCE_TRUNK:
save trunk
goto ARG
GLANCE_STRONGBOX:
save strongbox
goto ARG
GLANCE_BOX:
save box
goto ARG
GLANCE_COFFER:
save coffer
goto ARG
DISK_CHEST:
save chest
put get %s from YOURCHARACTER'S NAME disk
goto ARG
DISK_TRUNK:
save trunk
put get %s from YOURCHARACTER'S NAME disk
goto ARG
DISK_STRONGBOX:
save strongbox
put get %s from YOURCHARACTER'S NAME disk
goto ARG
DISK_BOX:
save box
put get %s from YOURCHARACTER'S NAME disk
goto ARG
DISK_COFFER:
save coffer
put get %s from YOURCHARACTER'S NAME disk
goto ARG
ARG:
put put %s on counter
pause 1
put ring bell
waitfor Gimme
put pay
put get %s from counter
waitfor You
put open my %s
waitfor You open
put get my coins
put look in my %s
DONE:
exit
Oh, that'll teach me to pay attention. I read box picking. Well, there's one anyway.
Latrinsorm
10-07-2004, 03:03 PM
If you tend to have other things in your container (crystals, herbs, etc.) you should change the "empty" in Anticor's script to whatever that other thing is. You could also throw a few waitfors in there to avoid type ahead issues.
actually drew your is something I kinda wanted, something I can throw into a going home script that will sell all my boxes. Tried yours and it got stuck not sure why. Made a change to get a note and put glance you see blah blah blah and it does nothing, also doesn't get all the boxes and sticks when there are none.
Ok so this is what I tried to do. Before entering bank I get a 5k note
put go bui
pause
START:
if_1 save %1
if_1 goto ARG
match CHEST chest
match TRUNK trunk
match STRONGBOX strongbox
match BOX box
match COFFER coffer
match GLANCE There is nothing in there.
match GLANCE In the great
put look in my %user0
matchwait
GLANCE:
match GLANCE_CHEST chest
match GLANCE_TRUNK trunk
match GLANCE_STRONGBOX strongbox
match GLANCE_BOX box
match GLANCE_COFFER coffer
match DISK You glance down to see a City-States promissory note in your right hand and nothing in your left hand.
match DISK hand.
put glance
matchwait
DISK:
match DISK_CHEST chest
match DISK_TRUNK trunk
match DISK_STRONGBOX strongbox
match DISK_BOX box
match DISK_COFFER coffer
match DONE I could not find what you were referring to.
match DONE There is nothing in there.
put look in xxx disk
matchwait
CHEST:
save chest
put get my %s from my %user0
goto ARG
TRUNK:
save trunk
put get my %s from my %user0
goto ARG
STRONGBOX:
save strongbox
put get my %s from my %user0
goto ARG
BOX:
save box
put get my %s from my %user0
goto ARG
COFFER:
save coffer
put get my %s from my %user0
goto ARG
GLANCE_CHEST:
save chest
goto ARG
GLANCE_TRUNK:
save trunk
goto ARG
GLANCE_STRONGBOX:
save strongbox
goto ARG
GLANCE_BOX:
save box
goto ARG
GLANCE_COFFER:
save coffer
goto ARG
DISK_CHEST:
save chest
put get %s from xxx disk
goto ARG
DISK_TRUNK:
save trunk
put get %s from xxx disk
goto ARG
DISK_STRONGBOX:
save strongbox
put get %s from xxx disk
goto ARG
DISK_BOX:
save box
put get %s from xxx disk
goto ARG
DISK_COFFER:
save coffer
put get %s from xxx disk
goto ARG
ARG:
put put %s on counter
pause 1
put ring bell
waitfor Gimme
put pay
put get %s from counter
waitfor You
put open my %s
waitfor You open
put get my coins
pause 3
put look in my %s
put empty %s in my user0
put drop %s
goto START
DONE:
pause
move out
AnticorRifling
10-08-2004, 02:42 PM
Originally posted by Latrinsorm
If you tend to have other things in your container (crystals, herbs, etc.) you should change the "empty" in Anticor's script to whatever that other thing is. You could also throw a few waitfors in there to avoid type ahead issues.
Yeah that would make sense. I was just throwing it together more as an example than a complete script.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.