convert to ptokax 0.3.6.0i
 

News:

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

convert to ptokax 0.3.6.0i

Started by ?[-?Genius?-]?, 03 February, 2008, 18:47:22

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

?[-?Genius?-]?

Hi its possible convert this scrpit for ptokax 0.3.6.0 i ? 

--=[ Nome do Bot ]=--
sBot = "[!???] ??vdRip?"

	--=[ Nome do OpChat ]=--
OpChatName = "[!???] ?Op Cha??"

	--=[ Exep??es / Deixar entrar um internacional atrav?z do nick ]=--
excepcoes = {
	["[PT]Sniffer"] = 4,
}

	--=[ Ranges permitidas no Hub ]=--

arrIP = { 
   ["127.0.0.1"] = "127.0.0.1",			-- ? Test
} 



function Main() 
   frmHub:RegBot(sBot) 
end 

	--=[ Mensagem ao user n?o constante na Range ]=-

function NewUserConnected(user) 
   if (excepcoes[user.sName] == nil) and (isGoodIP(user.sIP) == nil) then 
	user:SendData(sBot, "??  Este Servidor/Hub apenas permite Ips que constem na nossa Base. Voce ir? ser redirecionado para um Servidor/Hub secund?rio para verifica??o de informa??o do seu provedor de Internet. Gratos pela Prefer?ncia.") 
	SendPmToOps(sBot, "?? Utilizador ["..user.sName.."] reenviado para SuperDvdRip.sytes.net devido a sua IpRange n?o constar na Base de Dados. ") 
      user:SendData("$ForceMove SuperDvdRip.sytes.net")
	user:Disconnect() 
   end 
end 

OpConnected = NewUserConnected 

function isGoodIP(sIP) 
   sIP = ipToNumber(sIP) 
   local iFirst,iLast 
   for iFirst, iLast in pairs(arrIP) do 
      if (sIP >= ipToNumber(iFirst) and sIP <= ipToNumber(iLast)) then 
         return 1 
      end 
   end 
   return nil 
end 

function ipToNumber(sIP) 
   iAux = "" 
   string.gsub(sIP,"(%d+)", function(w) 
      w = tonumber(w) 
      if (w < 10) then 
         iAux = iAux.."00"..w 
      elseif (w < 100) then 
         iAux = iAux.."0"..w 
      else 
         iAux = iAux..w 
      end 
   end) 
   return tonumber(iAux) 
end

?[-?Genius?-]?

Nice script. But i want my script. Its because have redirect and exceptions.

Sory my bad inglish
Tankx

?[-?Genius?-]?


?[-?Genius?-]?

I just teste 3rd script you posted and don?t work. but dont send errors.
Today i test scipt 2 and Its working :)

Is not possible change my script for new ptokax?

SMF spam blocked by CleanTalk