#chat tell
sub main
/doevents
/return
#event_chat
/echo it worked
/return
I'm wondering how i can exclued 2 NPC vendors that "tell me" how much a price for something is
Moderator: MacroQuest Developers


Code: Select all
/if "@Param0"~~"vendorname tells you" /return

Code: Select all
Sub Event_Chat
/if "@Param1"=="Vendorname" /return
..blahahbha...
/return
Along the same idea as blueninja...blueninja wrote:Sorry, forgot the difference between chat events and other events. Other events will send the whole line of text that triggered the event as @Param0, chat events will send the name of the sender as @Param1 so do this instead
Code: Select all
Sub Event_Chat /if "@Param1"=="Vendorname" /return ..blahahbha... /return
Code: Select all
Sub Event_Chat
/if "@Param1"!="Vendorname1" {
/if "@Param1"!="Vendorname2" {
code for what you want to do if not these two vendors
}
}
/return