Search 2 Script's
 

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

Search 2 Script's

Started by TheRevenge, 01 September, 2004, 19:14:06

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TheRevenge

Hello,

i search with a script for jump in the network hub's, the user click with rightscript of the hub-addy and then he come in this hub or with other click open a new hub?

the other script is a problemscript. we have 3 network hub's, i search a script with den reguser updatet in the ptokax RegisteredUsers.dat with commands of the all hub's...


sorry for my english, i am german  ;)


TheRevenge

Regenbogen Netzwerk

nErBoS

Hi,

About the first script is possible to force a redirect to one of the addys. About the second i haven't understand it right, you want to update the registered list of every of your Hub network ??

Best regards, nErBoS
--## nErBoS Spot ##--

TheRevenge

yes i have see the first script with the commands jump, i don't find this script  :( the user jump from hub to hub...
i search two commands script, ...

1. jump
2. open new hub windows


the second script:

i search a script that when a op's a user registered of the hub 1, than he give a command and the script registered this user at the all hub's in the Network with the RegisteredUsers.dat

Thanks

TheRevenge

nErBoS

Hi,

Here is the first Script...

--## HUB-Addy Commands
--## Requeste by TheRevenge
--## Made by nErBoS

sBot = "Addy Bot"

arrAddy = {
	["hub1.addy.com"] = "HUB1",
	["hub2.addy.com"] = "HUB2",
	["hub3.addy.com"] = "HUB3",
}

function Main()
	frmHub:RegBot(sBot)
end

function NewUserConnected(user)
	DoCommands(user)
end

OpConnected = NewUserConnected

function DataArrival(user, data)
	if (strsub(data,1,1) == "<" or strsub(data,1,5+strlen(sBot)) == "$To: "..sBot) then
		data = strsub(data,1,strlen(data)-1)
		s,e,cmd = strfind(data, "%b<>%s+(%S+)")
		if (cmd == "!addy") then
			local s,e,addy = strfind(data, "%b<>%s+%S+%s+(%S+)")
			if (addy == nil) then
				user:SendPM(sBot, "Syntax Error, !addy , you must write a addy.")
			else
				user:SendData("$ForceMove "..addy.."|")
			end
		end
	end
end

function DoCommands(user)
	local addy,name
	user:SendData("$UserCommand 255 |")
	user:SendData("$UserCommand 0 3 |")
	for addy, name in arrAddy do
		user:SendData("$UserCommand 1 3 "..name.."$<%[mynick]> !addy "..addy.."||")
	end
end

It can't open a new window because scripts don't have access to that. About second script, to do that we need a sotware to help, there is one HERE but isn't avaible for ptokax yet, the script isn't over.

Best regards, nErBoS
--## nErBoS Spot ##--

TheRevenge

thanks nErBoS,

this is that script where i search  ;)



TheRevenge


Regenbogen Netzwerk

Regenbogen Hub No.1

Regenbogen Netzwerk 2

BottledHate

it is possible to update the RegisteredUsers.dat to a
another hub using a network share. but the new user
won't get loaded into the hub until the hub is completly
restarted.

here is the sample code i used in titmouse to test:

UpdateFiles = {["TestHubname"] = "\\\\slut\\c$\\_ptokax\\registeredusers.dat"} --\\ 'slut' is the pcname... 

function updateHubs(user)
   for k,v in UpdateFiles do
      print(v)
      local f,e = openfile( v, "a+" ) 
      if f then
         write(f, user )
         closefile(f)
         print("Update of "..user.." ok in "..k)
      end
   end
end

newUser = "bloop|test|1"
updateHubs(newUser)

i don't think it is a very good thing since it requires
 a full restart.

-BH
Homepage: www.bottledhate.webhop.org

Compiling  Lua scripts is LAME!!!!!

SMF spam blocked by CleanTalk