Author Topic: Custom Welcome Msg  (Read 3154 times)

0 Members and 1 Guest are viewing this topic.

Offline GeceBekcisi

  • Scripter
  • Lord
  • ******
  • Posts: 311
  • Karma: +10/-1
  • You don't need eyes to see, you need vision..
Custom Welcome Msg
« 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:
Code: [Select]
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:
Code: [Select]
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,
Code: [Select]
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?
« Last Edit: 04 June, 2005, 12:47:33 by 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...

PtokaX forum

Custom Welcome Msg
« on: 04 June, 2005, 12:47:01 »

Offline kepp

  • Scripter
  • King
  • ******
  • Posts: 790
  • Karma: +2/-0
(No subject)
« Reply #1 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)
Guarding    

Offline GeceBekcisi

  • Scripter
  • Lord
  • ******
  • Posts: 311
  • Karma: +10/-1
  • You don't need eyes to see, you need vision..
(No subject)
« Reply #2 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...
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...

Offline GeceBekcisi

  • Scripter
  • Lord
  • ******
  • Posts: 311
  • Karma: +10/-1
  • You don't need eyes to see, you need vision..
(No subject)
« Reply #3 on: 04 June, 2005, 20:05:23 »
No reply? :(
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...

Offline kepp

  • Scripter
  • King
  • ******
  • Posts: 790
  • Karma: +2/-0
(No subject)
« Reply #4 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
Guarding    

Offline GeceBekcisi

  • Scripter
  • Lord
  • ******
  • Posts: 311
  • Karma: +10/-1
  • You don't need eyes to see, you need vision..
(No subject)
« Reply #5 on: 04 June, 2005, 21:10:51 »
I think I found my way.
Code: [Select]
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...

Offline GeceBekcisi

  • Scripter
  • Lord
  • ******
  • Posts: 311
  • Karma: +10/-1
  • You don't need eyes to see, you need vision..
(No subject)
« Reply #6 on: 05 June, 2005, 00:16:12 »
Code: [Select]
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...

Offline htb222

  • Member
  • ***
  • Posts: 36
  • Karma: +0/-0
(No subject)
« Reply #7 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

Offline Dessamator

  • Scripter
  • Emperor
  • ******
  • Posts: 1 262
  • Karma: +13/-9
(No subject)
« Reply #8 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???
Ignorance is Bliss.

PtokaX forum

(No subject)
« Reply #8 on: 05 June, 2005, 19:10:58 »