Need help with replacing GetRandomArgument()

I have opie setup for random emotes in one ring, but I see the GetRandomArgument is removed and my emotes aren’t working anymore. Trying to fix the script but it just doesn’t work I’m probably making mistake with the proper argument:
Originally:

/script DoEmote(GetRandomArgument(“bye”,“wave”))

Trying this:

/script DoEmote(Random("bye","wave"))
and /script DoEmote(SecureRandom("bye","wave"))

The error is the usual “nil value” error when I try any of the above replaced scripts.
Help appreciated…

it returns a number sooo just go like this:

/run local a={“eat”,“pat”,“sing”}
DoEmote(a[random(getn(a))])

Can trim it down a bit more

/run local t={"bye","wave"} DoEmote(t[random(#t)])

Sorry for the late response…
@Cheinii and @Elvenbane, many thanks you guys are awesome!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.