Scripts Request @ Dkt
 

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

Scripts Request @ Dkt

Started by dkt, 27 May, 2005, 12:27:54

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dkt

Request #1
Message in main at regular intervals say ( interval = one hours ).
Message shld be displayed in main chat.
Message shld be taken from txt file present in scripts\automessage folder.
Any number of files present in scripts\automessage folder to be displayed in main chat at tat regular interval.
means
If there are three files say ( abc.text , rules.txt and regcommands.txt)
thn for the timer of one hr it shld display first abc.txt thn agian after one hour display rules.txt thn after one hour display regcommands.txt thn after one hour again display rules.txt and so on ....
Option to start and stop message for Master of Hub.
I searched in forums for this , but did not get what i want.

Request #2

I need a command to register users.
although there is an inbuilt PtokaX command...but when u register a user..it just shows ***user  was successfully added to user list.. but what i want is that when i register a user i shld get a pm from hub bot like this -


User has been registered by you.
please tell the user to add the following details in favourite hubs

hub name - dkt's hub
Hub address - 56.23.51.2
nick -
password -

i would really appreciate someone if he gives me the above scripts...
 






dkt

I am using this script for intro and outro for registered users but it doesnt show intro - ouro for operator or master..can anyone modify it to show intro outro for registered users, operators and master.

Bot = "Dkt's Bot"
--If users should have random intro/outros then set to 1
RandomUser = 1

function NewUserConnected(curUser)
if RandomUser == 1 then
local RandMsg = string.gsub(Intros[math.random(1,table.getn(Intros))], "%[CURUSER%]", curUser.sName)
SendToAll(Bot, RandMsg)
end
end

function UserDisconnected(curUser)
if RandomUser == 1 then
local RandMsg = string.gsub(Outros[math.random(1,table.getn(Outros))], "%[CURUSER%]", curUser.sName)
SendToAll(Bot, RandMsg)
end
end

--//User enters the hub text
Intros = {
" ---> [CURUSER] Has Entered The Hub. <--- ",  
}

Outros = {
" <--- [CURUSER] Has Left The Hub. ---> ",
}

dkt

I am using this time bot..i want this time bot to automatically display time and date in main chat at regular interval say ( 30 minutes). can smeone modify it for me ?

sBot = "Time-Bot"

function ChatArrival(user, data)
   if (string.sub(data,1,1)=="<") or (string.sub(data,1,5+string.len(sBot))=="$To: "..sBot) then
      data = string.sub(data,1,string.len(data)-1)
      s,e,cmd = string.find(data,"%b<>%s+(%S+)")
      if (cmd == "!time") then
         user:SendData(sBot, GetTime())
      end
   end
end

function GetTime()
   s = os.date("%S")
   h = os.date("%H")
   m = os.date("%M")
   d = os.date("%d")
   mm = os.date("%m")
   y = os.date("%y")
   Date = "Date: "..d.."/"..mm.."/20"..y.."           Time: "..h..":"..m..":"..s
   return Date
end

Dessamator

#3
for  the first and second script, click the links on my signature !
for the last script,even though it already exists, just add this functions :

min= 30 -- choose how many mins here
function Main()
       SetTimer(60*1000*min)
       StartTimer()
end

function OnTimer()
SendToAll(sBot,GetTime())
end
Ignorance is Bliss.

dkt

#4
QuoteOriginally posted by Dessamator
for the last script,even though it already exists, just add this functions :

min= 30 -- choose how many mins here
function Main()
       SetTimer(60*1000*min)
       StartTimer()
end

function OnTimer()
SendToAll(sBot,GetTime())
end

Thanks m8.. working fine Now :)

SMF spam blocked by CleanTalk