Help me find the right command please

by Accalia

Back to Mechanic's Corner.

Accalia2007-02-20 13:17:56
I'm tring to set up a tell trigger that will display something I see on my screen with an alias. The alias is really just a shortcut to see one item in my rift, tell me how many I have for sale and remind me of the price.

It looks like this:
#alias irjun
#echo ""
#echo Juniper %eval( @rift_count.juniper-@goods_reserve.juniper) Price @goods_price.juniper

I see: Juniper 800 Price 9

I cant seem to find the command to go in the trigger that will return a reply showing the same. Any help?

Trigger would be off of something like: Shiloh tells you "Juniper."
Gwylifar2007-02-20 15:32:13
#tr {(%w) tells you, "(%w)."} {tell %1 %2: %eval(@rift_count.%2 - @goods_reserve.%2) Price: @goods_price.%2}

If course, if someone tells you "Yes." you'll get it answering as if Yes were an herb, so you might want to add some conditional logic like this:

#tr {(%w) tells you, "(%w)."} {#if (%number(@rift_count.%2) > 0) {tell %1 %2: %eval(@rift_count.%2 - @goods_reserve.%2) Price: @goods_price.%2}}

It'd be better to do this using a listvar of herbs or something, but I'm trying to work with the data you already have.
Unknown2007-02-20 17:34:50
Be careful, though, as triggers like that are easily abused. I've always preferred to keep it a little more IC and actually have conversations with people about the prices and quantities, though posting an ad never hurts.