Custom Welcome Msg
 

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

Custom Welcome Msg

Started by GeceBekcisi, 04 June, 2005, 12:47:01

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

GeceBekcisi

Hi!

I am trying to create a custom welcome message for HubList.org's pinger. Just tryed this code:
function BotINFOArrival(curUser, sData)
	curUser:SendData(" GeceBekcisi greets HubList.org! Welcome! :D (UniTurk Oda G?venligi V:0.3)|")
	curUser:SendData("$HubINFO "..frmHub:GetHubName().."$"..frmHub:GetHubAddress()..":"..frmHub:GetHubPort().."$"..frmHub:GetHubDescr().."$"..frmHub:GetMaxUsers().."$"..frmHub:GetMinShare().."$"..frmHub:GetMinSlots().."$"..frmHub:GetMaxHubs().."$PtokaX$")
	return 1
end
and this is HubList.org's log:
Hub:	$Lock EXTENDEDPROTOCOL6Pqx1lAIeH=Hc>yWoZyp<^Gal15;M Pk=PtokaX
Client:	$Supports BotINFO|
Client:	$Key c????A ????0?f??????WW??t??S2??&?b??@?g|$ValidateNick {HubListPinger}|$Version 1,0091|
Hub:	$Supports HubINFO
Hub:	$Hello {HubListPinger}
Client:	$BotINFO {HubListPinger} [URL]www.hublist.org[/URL] hublist pinger for [URL]http://www.hublist.org/PublicHubList.config.bz2[/URL]|
Hub:	 GeceBekcisi greets HubList.org! Welcome! :D (UniTurk Oda G?venligi V:0.3)
Client:	$GetNickList|
Hub:	$HubINFO
Hub:	$NickList
Hub:	$OpList
but there is no welcome message in hub's page.

I examined how Verli and YnHub does this,
Hub:	$Lock EXTENDEDPROTOCOL_verlihub Pk=version0.9.8c
Client:	$Supports BotINFO|
Client:	$Key u????A ????01?1q?P?q|$ValidateNick {HubListPinger}|$Version 1,0091
Hub:	 This Hub is running version 0.9.8c (Tue Mar  8 11:00:00 CET 2005) of VerliHub (RunTime:8weeks 6hours ).
Hub:	$Supports OpPlus NoGetINFO NoHello UserIP2
Hub:	$HubName
Hub:	$Hello {HubListPinger}
Client:	$MyINFO $ALL {HubListPinger} Hublist pinger <++ V:0.674,M:A,H:1/0/0,S:10>$ $LAN(T3)$[URL]www.hublist.org[/URL]$131313131313$|
Hub:	$HubTopic
Client:	$GetNickList|
Hub:	$Hello {HubListPinger}
Hub:	$NickList
Hub:	$OpList
Client:	$BotINFO {HubListPinger} [URL]www.hublist.org[/URL] hublist pinger for [URL]http://www.hublist.org/PublicHubList.config.bz2[/URL]|
Hub:	$HubINFO

and 

Hub:	$Lock EXTENDEDPROTOCOL::This_hub_was_written_by_Yoshi::CTRL[p6??] Pk=YnHub
Client:	$Supports BotINFO|
Client:	$Key ?????A ????0g/%DCN000%/????s?q?a!?P??/%DCN000%/??b/%DCN096%/c??5/%DCN000%/?q/%DCN096%/?q?d?K??|$ValidateNick {HubListPinger}|$Version 1,0091|
Hub:	$Supports NoHello NoGetINFO UserIP2 BotInfo Feed MCTo 
Hub:	$HubName
Hub:	 YnHub version: 1.031 produced by Yoshi and Nev.
Hub:	$Hello {HubListPinger}
Client:	$MyINFO $ALL {HubListPinger} Hublist pinger <++ V:0.674,M:A,H:1/0/0,S:10>$ $LAN(T3)$[URL]www.hublist.org[/URL]$131313131313$|
Client:	$GetNickList|
Hub:	$NickList 
Hub:	$OpList
Client:	$BotINFO {HubListPinger} [URL]www.hublist.org[/URL] hublist pinger for [URL]http://www.hublist.org/PublicHubList.config.bz2[/URL]|
Hub:	$HubINFO

What should I use? Or what I've done wrong?
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

kepp

Your problem is that you only send the welcome message to
the pinger, which is not purpose is it? :P

SendToAll([Bot],Data)
Guarding    

GeceBekcisi

You can see welcome messages in Verli or YnHub Hubs' pages in Hublist.org but since pinger handling is implemented in PtokaX, welcome messages are lost. That is why, I want to display a custom welcome message in my hub's page (it was like "This hub is running PtokaX DC Hub 0.3.3.0 build 17.09 [debug] (UpTime: 0 days, 9 hours, 40 minutes)
" before implemention ) and couldnt do it. My hub sends data the same way but I wonder when to send it. After pinger sends $Supports or $Key, instead of $BotINFO maybe.. But dont know how to do this then...
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

GeceBekcisi

Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

kepp

Ok, im loosing the picture, i thought you wanted to notify to all other users that a pinger entered your hub
Guarding    

GeceBekcisi

I think I found my way.
function SupportsArrival(curUser, sData)
	if string.sub(sData, 11, 12, 13) == "Bot" then
		curUser:SendData(" GeceBekcisi greets HubList.org! Welcome! :D (UniTurk Oda G?venligi V:0.3)|")
		return 0		
	end
end
waiting for pinger to see the result
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

GeceBekcisi

Hub:	$Lock EXTENDEDPROTOCOLr>ZM45>w:b98PrQAqDHNjxG]BAHo5 Pk=PtokaX
Client:	$Supports BotINFO|
Client:	$Key ?????A ????0??Fq??????"2S?/%DCN096%/B!???0?r?|$ValidateNick {HubListPinger}|$Version 1,0091|
Hub:	$Supports HubINFO
Hub:	$Hello {HubListPinger}
Client:	$BotINFO {HubListPinger} [URL]www.hublist.org[/URL] hublist pinger for [URL]http://www.hublist.org/PublicHubList.config.bz2[/URL]|
Hub:	 GeceBekcisi greets HubList.org! Welcome! :D (UniTurk Oda G?venligi V:0.3)
Client:	$GetNickList|
Hub:	
Hub:	$HubINFO 
Hub:	$NickList 
Hub:	$OpList


doesnt work. i cant make it to be sent before $Hello {HubListPinger} . I think that is the problem...


By the way.. I am alone in this thread.. I think nobody liked my idea :(
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

htb222

why a message for hublistpinger?
Make him VIP or reg him and then set the welcome message, but i thing that hublistpinger doesn't need welcome message.
C ya

Dessamator

hm, great question, i dont see much use of that script, just to greet a bot? and get that info in the hublist.org page???
Ignorance is Bliss.

SMF spam blocked by CleanTalk