hello all ,
any body got any ideas on how to turn scripts like genbot,ragaman,trivbot etc .. in to .dll plugins for DC Hub V2.0 or where i can get plugins for it ...
all help will be appercaited
DC Hub V2.0
Moderator: Moderators
-
- Posts: 4
- Joined: 2003-08-13 07:29
DC Hub V2.0
Co-Owner of -=UKSafeNet=- dc network
Im in the process of writing one. iv wrote a class so that when a user comes in it will get all there information and store it in a vector . . its in working progress and am currently working on +userinfo . . its going to take some time but fingures crossed when its done it will do quite a few things
A sneek at what im doing is below. Its only the header file as the .cpp file contains too much code to past.
Code: Select all
#ifndef _DCUSER_
#define _DCUSER_
#include "String.h"
#include "InStr.h"
#include <time.h>
struct DCTag
{
int iRegHubs;
int iOPingHubs;
int iNormalUserHubs;
int iSlots;
int iOpenSlots; // this one will not always be present
};
class DCUser
{
private:
String sUsersName;
String sUsersIP;
bool userIsOp;
String Description;
long lShairSize;
String sConectionType;
String sEMail;
String sRawDCTag; // The DC Tag in its raw state e.g.<++ V:0.241,M:A,H:0/3/1,S:4>
bool HasUserLogedInBefore;
String sTimeLogedOn;
struct DCTag UsersTag;
public:
DCUser();
//Default Constructor
DCUser(String sTheUsersName);
// Constructor
char *GetUsersName();
char *GetUsersIP();
bool GetIsUserOp();
char *GetDescription();
long GetShairSize();
char *GetConectionType();
char *GetEMail();
struct DCTag GetTagInfo();
int GetNoOfRegHubsIn();
int GetNoOfOPingHubsIn();
int GetNoOfNormalHubsIn();
bool operator == (DCUser& User);
void SetIP(char *cIP);
void SetIsUserOp (bool bOP);
void SetUserDescription(char *cDescription);
void SetShairSize(long lSize);
void SetConnectionType(char *cConnection);
void SetEMail (char *cTheEMail);
private:
long WorkOutShairSize(long lSizeInBytes);
void WorkOutDCTag();
};
#endif
-
- Posts: 4
- Joined: 2003-08-13 07:29
Version 0.3 is out and it does basic slot checking. It will check to see if some one is in more hubs than u specify and if they have to many slots open. If eather of these turn out to be true the user it sent a message of why and then disconected
you can get it here
In this version you have text file (which is where you say how many slots and hubs a person can be in and have) which must be in the same directory as the DLL.
Im still working out bugs as they pop up and if u find any plz let me know.
Gizmo
oh btw it does not check this for ops . . may be ill add later the option to wether it will check ops or not.
you can get it here
In this version you have text file (which is where you say how many slots and hubs a person can be in and have) which must be in the same directory as the DLL.
Im still working out bugs as they pop up and if u find any plz let me know.
Gizmo
oh btw it does not check this for ops . . may be ill add later the option to wether it will check ops or not.