|
Exslam Newbie
Joined: 11 Jul 2005 Posts: 2
|
Posted: Mon Jul 11, 2005 7:16 pm
Auto - Junk |
After killing a mob the mud autoloots everything from the corpse.
Nearly every kill will contain some Brewing Components.
I dont brew so i wanna junk them...
I figured I'd setup a #var with the components names and then setup a trigger.
Code: |
#var {comp} {dryad hair|alkanet|sulfur rock|vampire dust}
^You get (%w) from*
#if {%1 = @comp} {junk %1}
|
I would figure this works but, it hasnt yet. Could someone shed some light on this?
Ex- |
|
|
|
Kiasyn Apprentice
Joined: 05 Dec 2004 Posts: 196 Location: New Zealand
|
Posted: Mon Jul 11, 2005 8:14 pm |
uhm uhm
#TRIGGER {^You get {@comp} from*} {junk %i} |
|
|
|
Exslam Newbie
Joined: 11 Jul 2005 Posts: 2
|
Posted: Mon Jul 11, 2005 9:43 pm |
Thanks that helps!
but instead if Junk %i which give (You dont have %{i})
I put junk %comp
now it works !!
Ex- |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Mon Jul 11, 2005 9:46 pm |
The reason your other one didn't work is because you have {} around the IF statement. IF statements are supposed to have ()... but if the other one works, there ya go.
Charneus |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Mon Jul 11, 2005 11:30 pm |
The reason his other one didnt work was because it was greatly flawed :p
and you want to use "%1" and not %i or %comp
#TRIGGER {^You get ({@comp}) from*} {junk "%1"} |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Tue Jul 12, 2005 6:37 am |
All I can say, nexela, is love the advice, and the awesomeness you give, but... bite me. :D Just kidding. :P
I know, I know. I get sloppy in my old age. He was making it harder than it really had to be. :D Oh well.
Charneus |
|
|
|
|
|