PDA

View Full Version : Gibreficul's looter script:



Gibreficul
02-22-2010, 10:26 PM
Since GS is down and I have 30 minutes or so to kill, I'm going to make known that I've uploaded two scripts last night to the repository that work in conjunction with gibs_spell_defs which has been on the repo for a while. The two scripts are gibs_script_vars and gib_total_package.

These scripts contain my skinning/looting/gathering/stashing/targeting methods. The script_vars is a simple if/elsif checkname statement, with lists of variables. This was done so my updates do not overwrite your variables.

A quick rundown:

My scripts, gibs_spell_defs, gib_total_package, and to gibs_script_vars all need to be trusted. The reason is I work with global arrays, variables and methods.

gibs_spell_defs contains at least one definition used by non-casters, wait_rt.
Otherwise, gibs_spell_defs frontloads the logic required to cast almost every spell with one line in a script, or with a simple macro calling that script line. Bolt spells are cast with stance-dancing, open cast spells are prep/cast, bard spells are renewed first if applicable before re-si8nging, (some exceptions) and are auto-recast if armor failure is encountered, and the remaining and majority of the spells are cast, non-targeted, with "incant." A RT check is done follewd by a check for a previously prepped spell that is not the spell being cast, followed by a mana-check. The spell is then cast. Using the example spell, 101, we would do the following within a script for selfcast:

spell_101

and the following to cast at the character Gibreficul.

spell_101("gibreficul")

You can also use ID#s, which is nice for casting at NPCs. Example, using Gibreficul as a pc:

spell_101(GameObj.pcs.find{|pc| pc.noun == "Gibreficul"}.id)

As for gib_total_package, here's a quick rundown of the methods containied within it:

mymove is a simple method I use to execute the go2 script within a script and wait for it to terminate before carrying out the next script lines.
USAGE:
mymove 11
fput "depo all"
mymove 188

(Simple script to go to the illistim bank, deposit coins, and go to the dais.)

loot_me and skin_me both work together, and are interchangable. If you don't skin, you can still use skin_me, but it will skip right to loot_me, and vise versa. Both search the GameObj information for a dead npc and skin/loot or loot it, depending on if you have a $skin_weapon variable set to false, or to your skinning weapon.

skin_me needs to be updated to accept a target, loot_me accepts a target.

find_loot scans the room loot for "good" treasure. it's slightly buggy for lower level areas, as it tends to grab more crap than it needs to grab. Modification of the loot arrays may be required.

find_loot, otherwise, auto-disks boxes, and Ithzir crystal weapons, and will sort gems into your gem container. find_loot calls get_me which is a bunch of mumbo jumbo only someone modding the script. get_me is my stash logic, nothing more, nothing less.

My targeting methods are alright... target_me and gib_target. The former targets stuff without a status effect (stuns, webs, ect) and the latter targets stuff WITH those effects first, both based on a prioritized critter list. They set two variables, $target and $id. $target is the entire GameObj object of the critter it targeted, and is NOT cleared if no target is found. $id is a quick access to $target.id, and is cleared if no target is found. An example:

target_me
while $id
spell_1106($id)
target_me
end

is a simple boneshatter loop for clearing a room out with that spell. Since target_me was used, not gib_target, it will change targets if it stuns and another critter is in the room, not stunned.


IN CLOSING:

There's two main ways to use my triple script package. The first and my intended usage was to use these methods to simplify other scripts. I soon learned that it opened a great macro opportunity for me.

My bard's macro set looks like

F1 = \x;eq silence_me;spell_1002\r
SHIFT+F1 = \x;eq silence_me;spell_1015\r
ect...
F4 = \x;eq loot_me\r
SHIFT +F4 = \x;eq find_loot\r (since sometimes loot_me calls find_loot before the room window updates)

I know a handful of people i've shared this with are happy with its performance so far. It's something different from the spiffy library, which I'm foreign to because I've been working on this. OOPS, 5 minutes to leave for work, perfect timing, hope the game is back when I get home.

Swami71
02-22-2010, 11:04 PM
I'm still using ;sorclooter you made :yes:

Gibreficul
02-23-2010, 04:49 AM
I'm still using ;sorclooter you made :yes:

I'm pretty sure the total_package includes the box phasing part of sorclooter.

Gibreficul
03-08-2010, 08:48 AM
My script package has gotten an overhaul, and another addition to it.

There are FOUR scripts now, all should be downloaded and trusted to avoid errors and conflicts.

The 4 scripts are:
gib_total_package
gibs_spell_defs
gibs_script_vars2 (updated to version 2 due to some additional variables added for MA group hunters.)
gibs_looter

Quick rundown
Set your variables in gibs_script_vars2.lic. You must manually open and edit that file. Once your character is included with the variables set, all other scripts should run flawlessly.

Of note, if you hunt solo, make sure $i_skin and $i_loot variables are BOTH true.

gibs_looter

automated background looter script, calls gib_total_package methods. $i_loot and $i_skin variables need to be TRUE if you hunt solo.

Variables currently in gibs_looter.lic are $autoloot and $gsize.
$autoloot is a true/false toggle to wait for you to actually search a critter, or to find dead critters and loot. $gsize is the number of group members you have, to avoid stealing loots from people. Enjoy.

Gibreficul
03-11-2010, 07:54 AM
If anyone has a complete list of skinnable critters, please let me know, I'd like to make sure my scripts are as complete as possible, and I have very little experience with skinning throughout the game. (I'm a CoL skinning master, otherwise... eh.)

So, here's what I have SO FAR... additions, please... please, let me know.


agresh bear
ash hag
banded rattlesnake
bighorn sheep
black bear
black boar
black forest viper
black leopard
bobcat
bog wight
brindle wild hound
brown boar
burgee
cave troll
centaur
cobra
colossus vulture
cougar
coyote
crested basilisk
crocodile
cyclops
dreadnought raptor
fanged goblin
fanged rodent
fanged viper
fenghai
fire cat
fire giant
fire ogre
fog beetle
forest trali
forest trali shaman
forest troll
giant rat
great stag
great weasel
greater faeroth
greater ghoul
greater moor wight
greater orc
greater spider
grifflet
hill troll
horned vor'taz
jungle troll
kiramon defender
kiramon worker
kobold
lesser faeroth
lesser ghoul
lesser griffin
mammoth arachnid
massive black boar
massive troll king
mastodonic leopard
mongrel kobold
mongrel wolfhound
mountain goat
neartofar orc
neartofar troll
pale crab
panther
plains lion
plains ogre
plains orc chieftain
plains orc scout
plains orc shaman
plains orc warrior
plumed cockatrice
pra'eda
ridgeback boar
roa'ter
rolton
sea nymph
shelfae chieftain
snow leopard
snow madrinol
spotted leaper
storm griffin
striped relnak
tawny brindlecat
three-toed tegu
thunder troll
triton dissembler
triton magus
triton radical
tusked ursian
urgh
velnalin
vesperti
waern
war griffin
warthog
water moccasin
whiptail
wild dog
wind witch
wolverine

Riltus
03-11-2010, 02:34 PM
Here's addition skinnable critters for you, Gib.

albino tomb spider
arch wight
arctic manticore
banded rattlesnake
big ugly kobold
black rolton
black wild dog
bone golem
brown gak
caribou
carrion worm
cave gnome
cave lizard
cave nipper
crazed zombie
dark orc
dark panther
dark shambler
death dirge
elder ghoul master
fire ant
fire rat
fire salamander
ghoul master
giant albino scorpion
giant ant
giant marmot
giant veaba
goblin
great boar
great brown bear
greater burrow orc
greater kappa
greenwing hornet
grey orc
ice troll
kobold shephard
krynch
large ogre
lesser burrow orc
lesser minotaur
lesser mummy
lesser orc
lesser red orc
manticore
mist wraith
mongrel hobgoblin
mountain lion
mountain troll
night hound
ogre warrior
puma
rabid squirrel
red bear
relnak
shelfae soldier
skeleton
specter
spotted gak
spotted lynx
storm giant
striped gak
striped warcat
thrak
tomb wight
tree viper
tundra giant
undertaker bat
war troll
werebear
wood wight
wraith
young grass snake
zombie

Mark

Gibreficul
03-12-2010, 05:09 AM
Mark, you kick so much ass.

Swami71
03-18-2010, 02:35 AM
I think you missed lava trolls.

skin troll
You skinned the lava troll, yielding a troll eye.

Do those lists include all the rift/scatter critters?

Seran
05-30-2010, 04:42 PM
Anybody have the latest working version of Gib's Total Package? It's not on the Repository anymore.

SpiffyJr
05-30-2010, 05:33 PM
Gib, a little advice on skinning. Instead of making a huge list of critters to skin just have your script keep track of ones you can't skin. This is easy to program and works for the entire game. This is how sloot works.

Mogonis
05-30-2010, 05:38 PM
^Oh god. You've done a very bad thing.

SpiffyJr
05-30-2010, 07:04 PM
^Oh god. You've done a very bad thing.

Eh?