PtokaX forum

Development Section => Your Developing Problems => Topic started by: GeceBekcisi on 04 June, 2005, 12:47:01

Title: Custom Welcome Msg
Post by: GeceBekcisi on 04 June, 2005, 12:47:01
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?
Title:
Post by: kepp on 04 June, 2005, 13:32:11
Your problem is that you only send the welcome message to
the pinger, which is not purpose is it? :P

SendToAll([Bot],Data)
Title:
Post by: GeceBekcisi on 04 June, 2005, 14:31:45
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...
Title:
Post by: GeceBekcisi on 04 June, 2005, 20:05:23
No reply? :(
Title:
Post by: kepp on 04 June, 2005, 21:01:45
Ok, im loosing the picture, i thought you wanted to notify to all other users that a pinger entered your hub
Title:
Post by: GeceBekcisi on 04 June, 2005, 21:10:51
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
Title:
Post by: GeceBekcisi on 05 June, 2005, 00:16:12
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 :(
Title:
Post by: htb222 on 05 June, 2005, 19:02:15
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
Title:
Post by: Dessamator on 05 June, 2005, 19:10:58
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???