I know this trig needs more work and am planing on working on it more just have been getting a char built up lately. Keep checking and maybe it will be complete soon. OH and thanx eglin for the | help.
Hey I've added some more to my loot trig. Now you can have it autoloot the corpse for specifics.
#CLASS {autoloot|ThingsIWant}
#VAR ThingsIWant {"whip|ring"}
#TRIGGER "AutoGetTrig" {^corpse ~(here~) :} {}
#COND {(%w)$} {#if (%ismember( %1, @ThingsIWant)) {get %1 corpse}} {looplines|param=10}
#CLASS 0
Just fill in the #VAR with one word terms you want it to get from the corpse. In the example above it has adam(1)ring(1)etc(1). It is not fool proof, but works pretty good. The reason I say it isn't fool proof is because it will loot anything that has that one word in it. example: you are wanting silver staff's but it will loot anything that has the word staff in it. You could get it to loot the silver staff by using the keyword silver though. Its not fail safe but it is easier than looting everything and having to go thru what you got manualy. Also another note below is the whole trigger I am using.
#CLASS {autoloot}
#ALIAS DelTest {#var loot %delitem( heavy, @loot)}
#ALIAS loot {#show %expandlist( @loot, ", ")}
#ALIAS sellall {#forall @loot {sell %i}}
#ALIAS lootdel {#var loot %delitem( %1, @loot)}
#VAR loot {staff|staff|helm|staff} {}
#TRIGGER {You get *%s(%w) from the corpse of} {#if (%1!="sovereigns" and %1!="coin") {#var loot %additem( %1, @loot)}}
#TRIGGER {The shopkeeper now has *%s(%w).} {#var loot %delitem( %1, @loot)}#TRIGGER {^You receive %d experience points.$} { examine corpse get all.coin corpse }
#CLASS 0
#CLASS {autoloot|ThingsIWant}
#VAR ThingsIWant {"adam|whip|sterling|mint"}
#TRIGGER "AutoGetTrig" {^corpse ~(here~) :} {}
#COND {(%w)$} {#if (%ismember( %1, @ThingsIWant)) {get %1 corpse}} {looplines|param=10}
#CLASS 0
There is a chance if you already have say a whip (Sorry Piper) in your inventory before selling, it will sell your whip. The way this trigg works is when you loot something it will take the last word before from a corpse and add it too a string list. Then when you go to a shop you type sellall which is an alias it sells all the items from the string list. So basicly what I'm trying to say is make sure that you put all the things you want to keep in a container. But also before you sell make sure you type the allias loot to make sure that you haven't looted say a bag and you already had a bag in you invontory. If you want to keep your bag you need to use the alias lootdel XXXX where XXXX is equal to the item you dont want to sell. Example: lootdel wand. This will that the keyword wand out of your loot list. If you have multipal wands that you want to keep then you will have to type that for as many wands as you looted. If it is just one wand you want to keep then you put that wand in a container that you have not looted this round of money running or drop prior to sell and pick up after wards. Remember check your loot alias before selling all and check you inventory to make sure that you haven't been disarmed or anything like that. Well good luck and good hunting.
04 March 2007
Subscribe to:
Post Comments (Atom)
1 comment:
You can probably use the HTML entity | to display the pipe symbol (|).
Post a Comment