Log in

View Full Version : picking script



Krayton
08-29-2010, 08:33 PM
Does anyone have a picking script for boxes that are on the ground? Any help is very much appreciated.

Sam
08-29-2010, 09:43 PM
Here's what I currently use.. Originally made by Aethor (not sure what the original name was, but I got it off the repo a year or so ago). I've modified it quite a bit because it didn't work when I downloaded it, and required that the rogue have the box in his hands, etc... It doesn't work 100%, but it only needs minor changes (match strings need changing for disarm). I just don't have a high enough level rogue to motivate me to bother with it.

No comments or anything because i don't give a shit.. also still has the original shitty "goto" format, but if you have any skills you should be able to make this fit your needs.


# please script responsibly. made by Aethor Whiteaxe


#
# count lockpicks in my cloak to know how to cycle through them
#
pickcount = 0
fput "look in my cloak"
line = matchwait("In the .+ you see")

contents = line
pickcount = contents.scan("lockpick").length
respond pickcount
picknoun=['trash','first','second','third','fourth','fifth', 'sixth','seventh','eighth','ninth','tenth']

$boxes = Array.new
GameObj.loot.each {|x|
if x.noun =~ /trunk|strongbox|coffer|chest|box/
$boxes.push(x.id)
end
}



goto "getBoxID"
getBoxID:
if $boxes.empty?
exit
else
box_id = $boxes.shift
goto "openBox"
end



openBox:
waitrt?
fput "get #" + box_id
fput "disarm right"
match "PLATE", "appears to be a plate over"
match "ScaleStrongDisarm", "At first glance"
match "GEM", "Examining the"
match "SCARAB", "scarab"
match "NONE", "You discover no traps"
match "NONE", "no traps"
match "TRAP1", "small tube towards the bottom of the tumbler mechanism"
match "TRAP1", "spring open"
match "TRAP1", "tiny hammer device"
match "TRAP1", "a tiny vial placed just past"
match "TRAP1", "spring-loaded jaws"
match "TRAP1", "too organized to be just wear and tear"
match "TRAP1", "gleaming sliver"
match "TRAP1", "you notice that the casing is coated with a rough"
match "TRAP1", "you feel around the lock and notice the inside chamber"
match "TRAP1", "dark crystal which seems"
matchwait

GEM:
waitrt?
if checkmana > 3 ; fput "inc 404" ; end
multifput "get lock from my cloak", "disarm right"
match "NONE", "you are able to poke the"
match "GEM", "You still have a good enough picture of the trap"
matchwait


ScaleStrong:
waitrt?
if checkmana > 3 ; fput "inc 404" ; end
multifput "get #{picknoun[pickcount]} lockp from my cloak", "pick right with my lockpick"
match "ScaleStrong", "You are not able to"
match "ScaleStrong", "You carefully try to work it"
match "ScaleStrong", "but you get a feeling"
match "ScaleStrongDisarm", "gives off an audible click as the tumblers snap open"
match "ScaleStrongDisarm", "It opens"
match "ScaleStrongDisarm", "It does not appear to be locked."
match "BROKE", "fumble about for a bit before you realize you are using a broken lockpick."
matchwait

ScaleStrongDisarm:
waitrt?
if checkmana > 3 ; fput "inc 404" ; end
multifput "put lockpick my cloak", "get my knife from my cloak","disarm right with my knife"
match "CompleteScaleStrongDisarm", "That oughta do it"
match "ScaleStrongDisarm", "You still have a good enough picture of the trap"
matchwait

CompleteScaleStrongDisarm:
waitrt?
fput "put knife in my cloak"
goto "NONE"

TRAP1:
waitrt?
if checkmana > 3 ; fput "inc 404" ; end
fput "disarm right"
match "TRAP1", "You are not able"
match "NONE", "carefully apply it to the end of the small tube"
match "NONE", "extra lines into the markings hoping to alter their"
match "NONE", "block the tiny hole"
match "NONE", "warp under the tremendous strain"
match "NONE", "bend the weak metal out of striking"
match "NONE", "protecting the small vial"
match "NONE", "strong acrid smell"
match "NONE", "small metal file to scrape away the rough"
match "NONE", "won't come in contact with the crystal"
matchwait


SCARAB:
waitrt?
if checkmana > 3 ; fput "inc 404" ; end
fput "disarm right"
match "SCARAB", "You are not able"
match "SCARAB2", "scarab free"
matchwait


SCARAB2:
waitrt?
multifput "disarm scarab", "say scarab disarmed maybe"
match "NONE", "You tap"
matchwait


PLATE:
waitrt?
fput "say this has a plate I will hold onto it till I am done"
pause 0.5
multifput "put right in my cloak", "glance"
match "getBoxID", "You glance down at your empty hands"
matchwait

NONE:
waitrt?
if checkmana > 2 ; fput "inc 403" ; end
multifput "get #{picknoun[pickcount]} lockp from my cloak", "pick right"
match "CLICK", "It opens"
match "CLICK", "gives off an audible click as the tumblers snap open"
match "CLICK", "It does not appear to be locked"
match "BROKE", "You broke your lockpick in the attempt"
matchwait

BROKE:
waitrt?
multifput "open my #{Lich.lootsack}", "put lock in my #{Lich.lootsack}", "close my #{Lich.lootsack}"
goto "NONE"

CLICK:
fput "put lock in my cloak"
pause 0.5
fput "drop right"

ACCEPT:
goto "getBoxID"

Help:
echo "You are doomed if you dont know how to use this script"

Sam
08-29-2010, 09:45 PM
I also have this one that I made just for checking traps for all boxes in the room. You can run it a second time if you want to actually try to disarm them, but it will hang if you do this, unless you add more matches in the while loop.


$boxes = Array.new
GameObj.loot.each {|x|
if x.noun =~ /trunk|strongbox|coffer|chest|box/
$boxes.push(x)
end
}

fput "inc 402"
fput "inc 404"


getID:
if $boxes.empty?
exit
else
box = $boxes.shift
goto "openBox"
end



openBox:
fput "disarm #" + box.id

while true
thisline = script.gets
if thisline =~ /It looks like.*/
fput "say #{box.name}: #{thisline}"
break
end
if thisline =~ /You discover no traps/
fput "say #{box.name}: no trap found"
break
end

end

goto "getID"

Krayton
08-29-2010, 10:50 PM
Thanks Brute, I'll check em out.

Sam
08-29-2010, 10:54 PM
Also, those are for lich.. Just realized this wasn't the lich folder.

Gibreficul
08-30-2010, 04:37 PM
Does anyone have a picking script for boxes that are on the ground? Any help is very much appreciated.

Yes, i do. Good luck prying it from my hands.

--- Lich: keepalive, icemule, table_picker, infomon, lnet, grouper, sendmana.

Deathravin
08-30-2010, 04:44 PM
Yes, i do. Good luck prying it from my hands.

--- Lich: keepalive, icemule, table_picker, infomon, lnet, grouper, sendmana.

lol, ditto

--- Lich: keepalive, StayJoined, CheckDeath, GndPick, Pick, SpellupGroup.

Krayton
08-30-2010, 09:32 PM
What was the point of replying if you [both] refuse to give it out?

Gibreficul
08-31-2010, 09:59 PM
The point was to let you know that it's possible.

Write your own like we did. It's not our job to automate your character.

nub
08-31-2010, 10:45 PM
The point was to let you know that it's possible.

Write your own like we did. It's not our job to automate your character.

I doubt he was talking to you then. Some people give out scripts, some don't. It's not impossible, there are more complex scripts out there I see that people are giving out.

Gibreficul
09-01-2010, 04:49 AM
I doubt he was talking to you then. Some people give out scripts, some don't. It's not impossible, there are more complex scripts out there I see that people are giving out.

Are you posting just to see yourself post? OOH, but people post scripts all the time. Yup, they're stupid for giving up their advantage in game to you idiots who have no clue how to script on your own.

StrayRogue
09-01-2010, 07:19 AM
Gib just likes to think he's important. He's the rogue version of Virilneus and his lolpetition.

Gibreficul
09-01-2010, 08:59 AM
Gib just likes to think he's important. He's the rogue version of Virilneus and his lolpetition.

I can't say that's not true.

http://2.bp.blogspot.com/_p92h-zwz-yc/TEo6wZNUX4I/AAAAAAAACiU/XP6LJK1NuZ4/s400/i-am-very-important-tweeting-too-hard%5B1%5D.jpg

Deathravin
09-01-2010, 09:28 AM
The scripts I give out are typically... transitional scripts. Maybe that's not the right word. But they're scripts from which I learned something new about Ruby or Lich (or when Tillmen incorporated a new part to Lich, like XMLData or GameObj - I still remember the orgasm of delight I had when he made GamObj... Hi, I'm Deathravin and GameObj was my idea ><, so was Windows 7).

These scripts that I release are to try to teach you guys something about how to make your own scripts. I started in Lich with some extraordinarily simple scripts, generally giving randomization to things like rogue guild slap hands or arrow dodge. And as my understanding of Lich and Ruby improved, my confidence was slowly built.

I see no reason why if I learned how to code Lich scripts, anybody else shouldn't be able to. This is why I don't give out a vast majority of my scripts. I have learned so much from Tillmen (who is and always will be a better coder than I), Gib (who has generally only released 'teaching' scripts as well), and Spiffy (who has a pension for punishment - single-handedly supporting all his users).

What would I be able to learn if most people learned how to code their on scripts? What techniques would they discover that could help me in the future?

I remember when LNet was almost constant coding talk. Even if somebody had a dumb question, people generally didn't bash them at all. "How do I echo a string in a script?", "echo "string"", "Oh, cool, thanks!", "NP man. what are you working on?".


Although I have to admit, I haven't even read LNet in months from what I've seen the few times I've searched through my logs, It seems like popularity brought that mostly to an end. I'm tired and rambling, so i'm going to go get ready for work.


I submit a simple challenge to anybody in Lich. Just try to learn it. Start small, and ask for help in the coding channel. It will take a while, like learning anything worthwhile... but it will be worth it, I promise.

Deathravin
09-01-2010, 09:10 PM
>profile Locksmith
Name: Locksmith
Profession: Locksmith
Race: Sylvankind Gender: Male
Most difficult lock picked: -1005
Most difficult trap disarmed: -373

>profile Deepthroat
Name: Deepthroat
Race: Halfling Gender: Female
Strongest foe vanquished: an Ithzir scout

Good GOD - Guess we're getting there...

Sam
09-01-2010, 09:52 PM
I remember when LNet was almost constant coding talk. Even if somebody had a dumb question, people generally didn't bash them at all. "How do I echo a string in a script?", "echo "string"", "Oh, cool, thanks!", "NP man. what are you working on?".


If someone asks a noob question now, they get fucking trounced. Lots of people on there who think they're the shit because they've used Lich since 2009.

nub
09-01-2010, 10:27 PM
Are you posting just to see yourself post? OOH, but people post scripts all the time. Yup, they're stupid for giving up their advantage in game to you idiots who have no clue how to script on your own.

I'm not even playing the game, so why are you calling me an idiot? Why are you so butt hurt? Chill the fuck out.

Gibreficul
09-02-2010, 02:55 PM
http://www.mangascreener.com/oekaki/pictures/7.png

Deathravin
09-02-2010, 03:10 PM
http://i208.photobucket.com/albums/bb105/shdwlynx/nou.gif