PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: GaMeFaNaTiC on 26 October, 2003, 11:08:45

Title: help with skybot prefix....
Post by: GaMeFaNaTiC on 26 October, 2003, 11:08:45
hi people, need some help on this tiny thing. on one line it says..

prefix = "+"                            --// Set the Cmd prefix Ex. !help, +help, -help ecc...


Wher it sayz "+". is ther a way so you can make it mor than one command like ? and ! instead of just +. plz help thnks!!
Title:
Post by: NightLitch on 26 October, 2003, 11:12:31
prefix = "+" or "?"

try that...

/NightLitch
Title:
Post by: GaMeFaNaTiC on 26 October, 2003, 11:17:01
hmm. stil no luck.. it just reads the first one "+".
Title:
Post by: NightLitch on 26 October, 2003, 11:18:42
notice that to... needed to test..
Title:
Post by: GaMeFaNaTiC on 26 October, 2003, 11:20:18
lol... any other solutionz ??
Title:
Post by: GaMeFaNaTiC on 26 October, 2003, 12:14:01
dont wory people, i found out now :)
Title:
Post by: pHaTTy on 26 October, 2003, 12:53:34
imagine this is the command

if cmd == prefix.."whatever" then

well use wordpad and replace all of these with:

if cmd == prefixa.."whatever" or cmd == prefixb.."whatever" then

and also change the prefix = "!" to

prefixa = "+"
prefixb = "!"

l8rr,,