On the EVEN_ArenaEnter you will see: //////// Arena ////////
case EVENT_ArenaEnter:
{
arena = (char*)event.p[0];
me = (Player*)event.p[1]; // if(me) {/*we are in the arena*/}
bool biller_online = *(bool*)&event.p[2];
}
break; Thus the global variable 'arena' is filled there and contains the arena name the bot currently is in. I don't believe additional parameters for DLLs are possible, instead use a .ini file and read the values from that. The windows.h library has ready-to-use methods available for .ini files: const int BUFFER_LEN = 256;
static char buffer[BUFFER_LEN];
static char INIPath[BUFFER_LEN];
GetCurrentDirectory(192, INIPath);
strcat(INIPath, "\\pluginName.ini");
WritePrivateProfileString("Section", "KeyName", "KeyValue", INIPath);
GetPrivateProfileString("Section", "KeyName", "DefaultValue", buffer, BUFFER_LEN, INIPath);
sendPublic("Value = "+String(buffer)); Be aware that the buffer is large enough to contain the data (and for the path).