PDA

View Full Version : Any good digging scripts



vamosj
10-25-2014, 11:36 PM
I tried diggerpro but it just kills all other scripts and sits there.

I've tried dig and digger but I keep on having to give it shovels and cleaning out all the junk


I'm not AFK'ing this, but I am working on college classes as I do something to try and make EG worth while in between GALD and raffles.

So anyone know a good script for digging?

Tgo01
10-25-2014, 11:54 PM
Should be easy enough to make one.

Gotta get the room number for where the digging is done, where you buy shovels, how you buy shovels, examples of you digging.

Assuming there are lich room numbers for these festivals. Never been to one :(

vamosj
10-28-2014, 04:32 AM
So I've been trying to adjust the ;dig script for use with me but running into a problem. Though I have it set to wait for the RT it seems like it just blows by each waitrt? check.

Here is what I'm seeing.


You continue to dig with your shovel, plunging into the muck and flinging it aside.
Roundtime: 7 sec.
R>
[dig]>dig
You hit something hard in the muck, causing the shovel to break. You toss the broken shovel aside.
You reach down and pull a dented iron coffer from the muck.
Roundtime: 4 sec.
R>
[dig]>pry my coffer
[dig]>pry my coffer
[dig]>get coins from my coffer
[dig]>empty my coffer into my backpack
[dig]>put my coffer in hole
[dig]>get my shovel
Pry what?
>
Pry what?
>
Get what?
>
The coffer is closed.
>
There appears to be an item or items attached to the container you are throwing away that is either scripted or of significant value.
If you wish to continue, throw the item away again within fifteen seconds.
>
[dig: * * You're out of shovels! * *]
--- Lich: dig has exited.
You remove a long-handled rusted iron shovel from in your spidersilk cloak.


Here is the coding (I stole the defining of rt portion from bigshot

=begin
modified version of the dig script
=end

Settings.load
sav = Settings['sav'] || String.new
before_dying { Settings['sav'] = sav; Settings.save }

def waitrt?
if (XMLData.roundtime_end.to_f - Time.now.to_f + XMLData.server_time_offset.to_f) > 0
sleep((XMLData.roundtime_end.to_f - Time.now.to_f + XMLData.server_time_offset.to_f).abs)
end
end

dig:
waitrt?
clear
put "dig"
match "dig", "Roundtime"
match "dig", "wait"
match "strongbox", "strongbox"
match "box", "box"
match "crate", "crate"
match "chest", "chest"
match "coffer", "coffer"
match "trunk", "trunk"
match "coffin", "coffin"
match "root", "root"
match "new", "Grave Robber"
matchwait

root:
waitrt?
put "put root into my backpack"
goto "new"

box:
waitrt?
sav = "box"
goto "open"

chest:
waitrt?
sav = "chest"
goto "open"

crate:
waitrt?
sav = "crate"
goto "open"

coffer:
waitrt?
sav = "coffer"
goto "open2"

coffin:
waitrt?
sav = "coffin"
goto "open2"

strongbox:
waitrt?
sav = "strongbox"
goto "open"

trunk:
waitrt?
sav = "trunk"
goto "open"

open:
waitrt?
clear
put "open my #{sav}"
waitrt?
clear
put "get coins from my #{sav}"
waitrt?
clear
put "empty my #{sav} into my backpack"
goto "trash"

open2:
waitrt?
clear
put "pry my #{sav}"
waitrt?
put "pry my #{sav}"
waitrt?
clear
put "get coins from my #{sav}"
waitrt?
clear
put "empty my #{sav} into my backpack"
waitrt?
goto "trash"

trash:
waitrt?
clear
put "put my #{sav} in hole"
goto "new"

new:
waitrt?
clear
put "get my shovel"
match "dig", "You remove"
match "done", "Get what\\?"
matchwait

done:
echo "* * You're out of shovels! * *"
exit

vamosj
10-28-2014, 06:11 AM
So I've been able to get it to run a little more smoothly, but I would like to share this and need a little assistance. Instead of making everyone have to go in and change the setting, how would I pull the lootsack from the ;setting list? I tried stealing a line or two from sloot4 but of course this is still above me and it doesn't work.


=begin
modified version of the dig script. I'm not good at this shit so don't get too frustrated if it doesn't work all the time.

this area is for old code I'm messing with

put "empty my #{sav} into my backpack"
=end

Settings.load
sav = Settings['sav'] || String.new
before_dying { Settings['sav'] = sav; Settings.save }

Gtk.queue {gtk_globals['lootsack'] = Gtk::Entry.new.set_text(UserVars.lootsack || "")} <------This is the line I stole

def waitrt?
if (XMLData.roundtime_end.to_f - Time.now.to_f + XMLData.server_time_offset.to_f) > 0
sleep((XMLData.roundtime_end.to_f - Time.now.to_f + XMLData.server_time_offset.to_f).abs)
end
end

dig:
waitrt?
clear
put "dig"
match "dig", "Roundtime"
match "dig", "wait"
match "strongbox", "strongbox"
match "box", "box"
match "crate", "crate"
match "chest", "chest"
match "coffer", "coffer"
match "trunk", "trunk"
match "coffin", "coffin"
match "new", "no buried"
match "root", "root"
match "new", "Grave Robber"
matchwait

root:
waitrt?
put "put root into my backpack"
goto "new"

box:
waitrt?
sav = "box"
goto "open"

chest:
waitrt?
sav = "chest"
goto "open"

crate:
waitrt?
sav = "crate"
goto "open"

coffer:
waitrt?
sav = "coffer"
goto "open"

casket:
waitrt?
sav = "casket"
goto "open2"

coffin:
waitrt?
sav = "coffin"
goto "open2"

strongbox:
waitrt?
sav = "strongbox"
goto "open"

trunk:
waitrt?
sav = "trunk"
goto "open"

open:
waitrt?
clear
put "open my #{sav}"
match "open", "seconds"
match "empty", "You open"
match "empty", "You lift"
matchwait

open2:
waitrt?
clear
put "pry my #{sav}"
match "open2", "seconds"
match "open2", "You begin"
match "empty", "A plume of dust spews out"
matchwait

empty:
clear
put "get coins from my #{sav}"
waitrt?
clear
fput "empty my #{sav} in my #{UserVars.lootsack}" <---- wanted to use it here

goto "empty2"

empty2:
waitrt?
clear
put "empty my #{sav} into my backpack"
waitrt
goto "empty3"

empty3:
waitrt?
clear
put "put my #{sav} in hole"
goto "new"

new:
waitrt?
clear
put "get my shovel"
match "dig", "You remove"
match "done", "Get what\\?"
matchwait

done:
echo "* * You're out of shovels! * *"
exit

ROTOR
10-28-2014, 06:32 AM
i'm no scripting pro, but i use this line:

fput "put metacarpal in my #{Lich.lootsack}"

vamosj
10-28-2014, 03:27 PM
Looks like a perfect fit Rotor, thank you.

It's still not a perfect script in it's own right, but it alleviates most of the tediousness of this. Least this way I can work a bit on my classes while I watch this thing do most of the work.

Buckwheet
10-28-2014, 03:47 PM
Looks like a perfect fit Rotor, thank you.

It's still not a perfect script in it's own right, but it alleviates most of the tediousness of this. Least this way I can work a bit on my classes while I watch this thing do most of the work.

In before post about missing a script check while working on the other classes.

Tgo01
10-28-2014, 03:49 PM
afk scripter.

AFK SCRIPTER!

caelric
10-28-2014, 04:15 PM
AFK digging scripters are why ISIS is winning.

And ebola.

Haldrik
10-28-2014, 04:51 PM
scripter.

SCRIPTER!


digging scripters are why ISIS is winning.

And ebola.

FTFY