Poll

Like this?

OMG COOL
Hmm, that's nice
So useful I'm gonna use
Dafuq is this?
I don't get it?

Author Topic: Cmd triggered events. [V2.5!]  (Read 10883 times)

Tried it, loved it, great job.  

Only problem I have with it is having to type /eventcmd is quite annoying, for RPG's using VCE or stuff like that the command looks a lot uglier.

Is there any way to shorten that to just /ecmd or /cmd ?
Very easy edit.
Gonna do.

Done.
Set the name with RTB pref.
« Last Edit: August 02, 2012, 11:02:30 AM by Mold »

maybe a field, for who can trigger a particular event?

minigame / client / trust list / anyone
Good idea, only problem I see is when the client who made the brick is offline.

Edit: Wtf do I say, the brickgroup is still there and has trust variables


Solution: getTrustLevel(%client, %brick) returns trust level
« Last Edit: August 02, 2012, 11:03:16 AM by Mold »

Good idea, only problem I see is when the client who made the brick is offline.

Edit: Wtf do I say, the brickgroup is still there and has trust variables

Hmm, I see another problem.
How to set which brick shall be public commands and which one private?
What if you want Brick 1 to show stats or something for everyone and Brick 2 to be only for yourself?
Btw, you can easily include that with a VCE check

You have to be able to set it per-brick and not globally

Yay triplepost

Restrictions added.
« Last Edit: August 02, 2012, 11:03:46 AM by Mold »


hell, even better

a pref to change it
You cannot change the name of a function with an rtb pref
Stupidity
Of course you can
« Last Edit: August 02, 2012, 11:04:16 AM by Mold »

You cannot change the name of a function with an rtb pref

Well, you could....

« Last Edit: August 02, 2012, 11:04:43 AM by Mold »


It'd have to use the eval() function to create a new function within a function, it'd work but the code will be very messy, plus you'd have to use a backwards slash when you use strings.

eg;

eval("function ServerCmdEventCmd(%cl,%msg,%msg1,%msg2){ echo(\"done deh stuff\"); }");

It'd have to use the eval() function to create a new function within a function, it'd work but the code will be very messy, plus you'd have to use a backwards slash when you use strings.

eg;

eval("function ServerCmdEventCmd(%cl,%msg,%msg1,%msg2){ echo(\"done deh stuff\"); }");
That bad.
Idiots can overwrite important functions.

Have to check whether the function exists before doing so.
But then...
You can't change and change back.
And if you restart server it's back at default

Edit: ^^ No, thats garbage (You get that I talk about MY GARBAGE?)


Done
« Last Edit: August 02, 2012, 11:05:15 AM by Mold »

hell, even better

a pref to change it
Got idea.
Will do.

Expect update including all ideas named in this topic in one hour.


Update released
« Last Edit: August 02, 2012, 11:05:41 AM by Mold »


That bad.
Idiots can overwrite important functions.

Have to check whether the function exists before doing so.
But then...
You can't change and change back.
And if you restart server it's back at default

Edit: ^^ No, thats garbage
use isfunction, then check a list of created commands, adding to that list when somebody creates a command
also, what if you added the ability for parameters to be made
so /eat bread 5
would call the eat command on the bricks, with bread and 5 as values that can be checked

forget mobile internet stick broke D:
Can't upload from iPad.

Outside getting a new mobile internet stick.
Will post update when back home.


Got a new which is way faster (yay)

How rude.
I was talking about the garbage the I said...

It's already done.
Just can't upload until i got a new mobile internet stick for my laptop.


^ ^
« Last Edit: August 02, 2012, 11:06:42 AM by Mold »

UPDATE!

New stuff:
-Restrictions
-Pref to set function name

Removed stuff:
-Useless RTB pref with no sense

Fixed stuff:
-Bug caused by missing !
-Event names shortened to fit in fields

See OP for new example picture.
New download:
DOWNLOAD V2

New update on page 5.
« Last Edit: August 03, 2012, 01:36:20 PM by Mold »