basic alias with timer

Post Reply
mrbain
Posts: 1
Joined: Sun May 11, 2025 12:02 pm

basic alias with timer

Post by mrbain »

Hi very new to this.
Please help me understand how i may get this to work.
So i want to cast create food.
if i give for instance cff terry
i want to cast create food
give food to terry
if there is no argument with cff
so just cff
i want to cast create food
eat food

the first part works but after else does nothing.

see below and thanks



Name Create Food
Pattern ^cff(.*)$

if matches[2] then
tempTimer(1,"send('cast create food')")
tempTimer(5, [[ send("give food to]]..matches[2]..[[")]])
else
tempTimer(1,"send('cast create food')")
tempTimer(5,"send('eat food')")
end

Post Reply