hub jump 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

hub jump script

Started by gizmo, 15 January, 2004, 15:36:58

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gizmo

Hi is it possible to do a script who redirects to another
hub in the network like this

!hub1   then they come to  xx1.myftp.org
!hub2   then they come to  xx2.myftp.org

and soo on     there is 5 hubs in our network

raz

yeah there is away. i think it is in the channel bot.  :D

plop

#2
QuoteOriginally posted by raz
yeah there is away. i think it is in the channel bot.  :D
not only channelbot has it, allin1 also and some more.
but here's a nice standalone script.
-- multi hub jump script aka Tattood_Mommy (she knows why)
-- by plop


command = "!hub" ---- no need for a number here, that goes in the table below
HUBS = {["1"]="hub1.no-ip.something", ["2"]="some.other.hub" } -- add as much hub's as you like but give them a unique number
Bot = "Tattood_Mommy" -- name of the bot

function DataArrival(user,data) 
   if (strsub(data, 1, 1) == "<") then 
      data = strsub(data,1,strlen(data)-1) 
      s,e,cmd,num = strfind(data, "%b<>%s+(%D+)(%d+)")
      if cmd == command and num ~= nil then
         if HUBS[num] then
            user:SendData(" You are being redirected to: "..HUBS[num].." ... |$ForceMove "..HUBS[num].."|")
         else
            user:SendData(Bot, "No sutch hub number in use.|")
         end
      end
   end
end
plop

*whoeps left some debug stuff in. lol
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 <----<<

Jitway

Heres one that works real well.

--//HubJump
--//Additional Scripting Help By Piglja
--//June 1st 2003

botname = " "
hubA = "forgottenrealm.dyndns.org"
hubB = "hideout.dyndns.org"
hubC = "RPGW.dyndns.org"
hubD = "anime-divx.dyndns.org"
hubE = "cartooncartoon.no-ip.org"
hubF = "black-gryphon.no-ip.com"
hubsA = "!hubA"
hubsB = "!hubB"
hubsC = "!hubC"
hubsD = "!hubD"
hubsE = "!hubE"
hubsF = "!hubF"
cmd = "!jump"

function DataArrival(user, data)
if (strsub(data, 1, 1) == "<") then
data = strsub(data,1,strlen(data)-1)
if (strfind(strlower(data), strlower(hubsA))) then
user:SendData(Bot, "Redirecting to: "..hubA.."")
user:SendData(botname, "Redirecting to: "..hubA.."|$ForceMove "..hubA.."|")
elseif (strfind(strlower(data), strlower(hubsB))) then
user:SendData(Bot, "Redirecting to: "..hubB.."")
user:SendData(botname, "Redirecting to: "..hubB.."|$ForceMove "..hubB.."|")
elseif (strfind(strlower(data), strlower(hubsC))) then
user:SendData(Bot, "Redirecting to: "..hubC.."")
user:SendData(botname, "Redirecting to: "..hubC.."|$ForceMove "..hubC.."|")
elseif (strfind(strlower(data), strlower(hubsD))) then
user:SendData(Bot, "Redirecting to: "..hubD.."")
user:SendData(botname, "Redirecting to: "..hubD.."|$ForceMove "..hubD.."|")
elseif (strfind(strlower(data), strlower(hubsE))) then
user:SendData(Bot, "Redirecting to: "..hubE.."")
user:SendData(botname, "Redirecting to: "..hubE.."|$ForceMove "..hubE.."|")
elseif (strfind(strlower(data), strlower(hubsF))) then
user:SendData(Bot, "Redirecting to: "..hubF.."")
user:SendData(botname, "Redirecting to: "..hubF.."|$ForceMove "..hubF.."|")
elseif (strfind(strlower(data), strlower(cmd))) then
user:SendData(botname, "----------------------------------------------------------------------------")
user:SendData(botname, "Hub Affiliates Of 420 ??+?r????")
user:SendData(botname, "----------------------------------------------------------------------------")
user:SendData(botname, "Type These Commands In Main Chat:")
user:SendData(botname, "----------------------------------------------------------------------------")
user:SendData(botname, "!hubA - let's U connect to "..hubA.." You Are Here Already :)")
user:SendData(botname, "!hubB - let's U connect to "..hubB.." PRIVATE See ?mokey420 for Details")
user:SendData(botname, "!hubC - let's U connect to "..hubC.."")
user:SendData(botname, "!hubD - let's U connect to "..hubD.."")
user:SendData(botname, "!hubE - let's U connect to "..hubE.."")
user:SendData(botname, "!hubF - let's U connect to "..hubF.."")
user:SendData(botname, "----------------------------------------------------------------------------")
end
end
end
It\'s not what you say but how you get your point across!

gizmo

tnx for the scripts works fine =)))

SMF spam blocked by CleanTalk