So, I feel like a dummy but I really can't figure this out on my own and I've been trying for days. A friend of mine gave me a script in jscript but I "script" (I mainly just patch together ghetto triggers) in Lua so I've been trying to convert this unsuccessfully.
This is for a fishing script on a MUD. The purpose is to detect the distance of the fishing line and, if it is out past 35 feet, to reel it in all the way and cast again and rinse and repeat until you get a desirable distance.
Can anyone help me with this, pretty please?
This is for a fishing script on a MUD. The purpose is to detect the distance of the fishing line and, if it is out past 35 feet, to reel it in all the way and cast again and rinse and repeat until you get a desirable distance.
<trigger>
enabled="y"
group="Fishing"
match="*You cast your hook into the * * feet from the *"
send_to="12"
sequence="100"
<send>var distance = %3;
if (distance > 35) {
DoAfter (1, 'reelin all');
DoAfter (2, 'cast short');
}
else {
send("reelin medium")
}</send>
</trigger>
Can anyone help me with this, pretty please?