!rdslots etc
 

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

!rdslots etc

Started by Snoris, 01 December, 2003, 23:23:26

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Snoris

How can I change the redirect adress for slots/share/hubs and slots/hubs with a script??

I know this one but how about the others??

if (cmd=="+newrd") then 
arg=strsub(arg,1,strlen(arg)-1) 
frmHub:SetRedirectAddress(arg) 
SendPmToOps(botname, "The redirect adress has been changed to '"..arg.."' by "..user.sName.." with the IP "..user.sIP) 
return 1
end

Would really need some help here =))

*PS* I'll buy U cockies and coffie if u help me out =))

plop

QuoteOriginally posted by Snoris
How can I change the redirect adress for slots/share/hubs and slots/hubs with a script??

I know this one but how about the others??

if (cmd=="+newrd") then 
arg=strsub(arg,1,strlen(arg)-1) 
frmHub:SetRedirectAddress(arg) 
SendPmToOps(botname, "The redirect adress has been changed to '"..arg.."' by "..user.sName.." with the IP "..user.sIP) 
return 1
end

Would really need some help here =))

*PS* I'll buy U cockies and coffie if u help me out =))
you can use that if you use frmHub:GetRedirectAddress() as redirect addres.
for example: user:SendData(" You are being redirected ... |$ForceMove "..frmHub:GetRedirectAddress().."|")

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

Snoris

Quoteyou can use that if you use frmHub:GetRedirectAddress() as redirect addres.
for example: user:SendData(" You are being redirected ... |$ForceMove "..frmHub:GetRedirectAddress().."|")

Yes i know i can do that...But how can I change the redirect adress in the script for slots share and so on...???
Thats what I meant *sorry if I didnt write that way from the beginning*

kepp

You mean one adress for each?
max slots > xxx.no-ip.org
Min Share > xxx2.no-ip.org

And so on...?

i think you need to check for one etc, let's say
Minimum share..

then if not enough something like this:

hub1 = "Address"
hub2 = "address"
hub3 = "address"

user:SendData(" You are being redirected ... |$ForceMove "..hub1.."|")

--and for slots:

user:SendData(" You are being redirected ... |$ForceMove "..hub2.."|")

Just an example
Guarding    

plop

#4
currently there is only frmHub:GetRedirectAddress() unless you use a variable in a script.
0.3.3.0 is gone get it in the end but for now you gotta trust fully on scripts for that 2 work.

plop

* just like kepp says. 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 <----<<

Snoris

So there is no way to make a script that can handle the inbuilt redirect adresses in slots/hubs and so on (I'm talking about B15.18 now of course...I'm a Beta testare and wanna prepare ;) )

I just wanna have a script that u can change those redirect adresses...
Like this----->>>  
!rdslots myhub.no-ip.com
!rdhubs yourhub.no-ip.com
!rdshare another.no-ip.com etc etc =))

(hoping for a final sulution) =))

plop

if (cmd=="+rdslots") then 

arg=strsub(arg,1,strlen(arg)-1) 

hub1 = arg 

SendPmToOps(botname, "The redirect adress for the slots has been changed to '"..arg.."' by "..user.sName.." with the IP "..user.sIP) 

return 1

end
later you have 2 change a littlebit when it's added 2 the beta.
prob something like SetRedirectSlots(arg) but i'm just guesing here.
for now it has 2 go this full script way.

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

Snoris

QuoteOriginally posted by plop
if (cmd=="+rdslots") then 

arg=strsub(arg,1,strlen(arg)-1) 

hub1 = arg 

SendPmToOps(botname, "The redirect adress for the slots has been changed to '"..arg.."' by "..user.sName.." with the IP "..user.sIP) 

return 1

end
later you have 2 change a littlebit when it's added 2 the beta.
prob something like SetRedirectSlots(arg) but i'm just guesing here.
for now it has 2 go this full script way.

plop

Thx plop....I'll try with that then =))

SMF spam blocked by CleanTalk