Well pointed out, napo_p2p. There was a mistake in the GraalWiki. textlines[1] is the destination, where textlines[2] is the data. It was checking the one wrong, but I have fixed it now.
Quote:
|
Originally Posted by napo_p2p
EDIT:
For Script ID: and Params: in the event admin window, how is that used exactly?
(I understand the script id part, but how do you access the params?)
|
The params are passed to the eventsbot when an event begins.
You will get something like this:
textlines[0]: IRCBot
textlines[1]: EventsBot_Rudora
textlines[2][0]: !startevent
textlines[2][1]: 1 (
That's the script ID)
textlines[2][2]: test (
That's the params option)
textlines[2][3]: Team A, Team B (
team names as array)
textlines[2][>=4]: Player and team information
Update: added a parameter for team names (Stefan)