add share for script bot
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

add share for script bot

Started by rstandley, 13 April, 2004, 11:46:54

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rstandley

how do you add a share for a script bot?

nErBoS

Hi,

You want your Bot to share it really or fkae it ?? If you want your bot to share it, it?s not possible, if you want to fake it, why ???

Best regards, nErBoS
--## nErBoS Spot ##--

Creator

#2
QuoteOriginally posted by rstandley
how do you add a share for a script bot?

This need to be in you're script replace botname etc whit youre own info

---------------BotInfo---------------
BotName = "(**BioProtectBot**)"
BotDiscr = "(**BioProtect**)"
BotTag = ""
BotConn = "100Mbit"
BotShare = "666Kb"
BotEmail = "biohazardclan@home.nl"

---------------WatToDoOnScriptStart--------------- look for the next 3 lines in youre script if it already in the scipt leave it out
function Main()                                
   frmHub:RegBot(BotName)
end

---------------ToDo---------------
---------------ToUser---------------
function NewUserConnected(curUser)
   curUser:SendData( BotStr )
end
---------------ToOp---------------
function OpConnected(curUser)
   curUser:SendData( BotStr )
end

---------------WatToSend---------------
BotStr = "$MyINFO $ALL "..BotName.." "..BotDiscr.." "..BotTag.."$ $"..BotConn..strchar( 1 ).."$"..BotEmail.. "$" ..BotShare.."$"

--Greetz Creator
!!! Bye bye sukkers i?m taking over !!!
!!!!!!! (BC)*Biohazard clan*(NL) !!!!!!!

HaArD

BotShare = "666Kb"

Should be:

BotShare = "681984"

In other words it should be a string of numbers representing the number of BYTES SHARED.

DC Clients convert that to show "xxx MiB" or "xxx GiB"

Creator

QuoteOriginally posted by HaArD
BotShare = "666Kb"

Should be:

BotShare = "681984"

In other words it should be a string of numbers representing the number of BYTES SHARED.

DC Clients convert that to show "xxx MiB" or "xxx GiB"

I have the script running on my own hub and it works fine and all is displayed ok. look for yourself.
If i want 666kb to show and its shows 666kb its ok for me lol.
!!! Bye bye sukkers i?m taking over !!!
!!!!!!! (BC)*Biohazard clan*(NL) !!!!!!!

Corayzon

#5
a simple way to do this is as follows...

in userconnect() and opconnect() send this data to the connecting users...

user:SendData("$MyINFO $ALL nickname  description $ $Connection$email$sharesize$|")

eg...

user:SendData("$MyINFO $ALL cSlave  This hub is power by cSlave 1.0 $ $Cable$Corayzon@yahoo.com.au$666$|")

noza

*** edited strchar() to 

SMF spam blocked by CleanTalk