Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Exslam
Newbie


Joined: 11 Jul 2005
Posts: 2

PostPosted: 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-
Reply with quote
Kiasyn
Apprentice


Joined: 05 Dec 2004
Posts: 196
Location: New Zealand

PostPosted: Mon Jul 11, 2005 8:14 pm   
 
uhm uhm

#TRIGGER {^You get {@comp} from*} {junk %i}
_________________
Kiasyn
Owner of Legends of Drazon
Coder on Dark Legacy
Check out Talon, an easy IMC connection.
Reply with quote
Exslam
Newbie


Joined: 11 Jul 2005
Posts: 2

PostPosted: 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-
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: 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
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: 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"}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net