a login script
 

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

a login script

Started by [DK]DjBent, 19 April, 2004, 21:47:42

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[DK]DjBent

Looks like this....

BotName = "[MMZ]Bot" --// Set here your bot name

function NewUserConnected(user)
   Message(user)
end

function OpConnected(user)
   Message(user)
end

--// Profile Counter
function ProfileCounter(profile)
   local table, count = GetUsersByProfile(profile), 0
   for i, User in table do
      if GetItemByName(User) then
         count = count + 1
      end
   end
   return count
end

function Message(user)
   local disp = ""
   doGetProfile =  GetProfileName(user.iProfile) or "Not registerd"
   local s,e,share = strfind(user.sMyInfoString, "$(%d+)%$")
   share = format("%0.2f", ( share / (1024*1024*1024)))
   local hubshare = format("%0.2f",  ( frmHub:GetCurrentShareAmount() / (1024*1024*1024)))
   border1 = "<>=========================H=U=B==I=N=F=O==============================="
   border2 = "<>======================================================================"
   disp = "\r\n\r\n"..border1.."\r\n"
   disp = disp.."   ?Welcome:         "..user.sName.."\r\n"
   disp = disp.."   ?To this fine place Called:   "..frmHub:GetHubName().."\r\n"
   disp = disp.."   ?Your IP:         "..user.sIP.."\r\n"
   disp = disp.."   ?Your Status in this Hub:   "..doGetProfile.."\r\n"
   disp = disp.."   ?Actual Share in the Hub:   "..hubshare.." GB\r\n"
   disp = disp.."   ?There are now:         "..frmHub:GetUsersCount().." of "..frmHub:GetMaxUsers().." users connected\r\n"
   disp = disp.."   ?Hub description is:      "..frmHub:GetHubDescr().."\r\n"
   disp = disp.."   ?Hub register address is:   "..frmHub:GetRegServer().."\r\n"
   disp = disp.."   ?Hub minshare is:      "..frmHub:GetMinShare()/(1024).." GB\r\n"
   disp = disp.."   ?Redirect address is:      "..frmHub:GetRedirectAddress().."\r\n"
   disp = disp.."   ?Hub is Powered by:      "..frmHub:GetHubBotName().."\r\n"..border2.."\r\n"
   user:SendData(BotName, disp)
end



But it wont get the bot name..... and i would like it to do that..... or say that the hub is powered by Robocop 7.0a

Please help me

plop

your talking about this i guess.
frmHub:GetHubBotName()
it returns the name of the ptokax build-in bot, not a scripted bot.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

imby

Anyone have LUA 5 version of this?

TTB

Try this threat and use the search next time!

*CLICK*
TTB

(? ?.??.-> Admin @ Surfnet hubs <-.??.???)

imby

I did use search, the latter has functions I don't need and parts I don't understand therefore it'll end up as bloat since I wont know what code to remove, the former is perfect for my needs.

SMF spam blocked by CleanTalk