New to Mudlet - Simple targetting script?

Post Reply
Glaznik
Posts: 1
Joined: Sun Jan 17, 2010 7:45 am

New to Mudlet - Simple targetting script?

Post by Glaznik »

Hey there. I'm very new to Mudlet and Lua, and am having trouble doing just a simple targetting script. I was wondering if someone could help? Thanks.

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: New to Mudlet - Simple targetting script?

Post by Vadi »

Sure. Have you watched the aliases screencast? a targetting alias is setup there. If it still doesn't work, post screenshots of what you did.

User avatar
Jules
Posts: 118
Joined: Sun Oct 11, 2009 5:41 pm
Location: Plymouth State University - Sophomore

Re: New to Mudlet - Simple targetting script?

Post by Jules »

While I encourage you to watch Vadi's video, something easy to reference for all future people:

ALIAS:
Name: Targetting Alias
Pattern: ^tar (\w+)$
Script: target = matches[2]

KEYBINDING:
Name: Attack
Key: Pick one, you have a keyboard full of 'em!
Script: Wherever your attack calls for a target, put in the variable "target". For instance, if you wanted to perform a Hunting Kata in Lusternia, you would have the script be "kata perform " ..target.. " hunting". Notice the quotations after "perform" and before "hunting", there's a space. If you didn't put in that space, it would come out looking like "kata performtargethunting", instead of "kata perform target hunting".

Hope that helps!

Post Reply