@name Internet?. o_O. WUT!!!!!!!!!!!!!!!!!!
@inputs 
@outputs IP:string Connected:array
@persist 
@trigger 

if(first())
{
    IP = randint(0,255)+"."+randint(0,255)+"."+randint(0,255)+"."+randint(0,255)

    dsJoinGroup("Internet")
    dsSetScope(2)
}

Type = dsGetType()

if(Type == "string" & dsGetString() == IP)
{
    Connected:pushEntity(dsGetSender())
    dsSend("Connect_Reply","Internet",1)
}
else
{
    dsSend("Connect_Reply","Internet",0)
}
