PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: lawler on 08 December, 2004, 19:10:42

Title: redirect nonregged
Post by: lawler on 08 December, 2004, 19:10:42
hi. im usig a ptokax 0330 build 15.25 with robocop 9b. i need a script that redirects users that are NOT REGGED to another address. the "registered users only" option is checked in the Advanced Options of the ptokax hub. can this script be done?
Title:
Post by: nErBoS on 08 December, 2004, 21:31:32
Hi,

Here you go...

--## SIMPLE NON-REGGED USERS BOT
--## Requested by lawler
--## Made by nErBoS

sBot = "SNRU-Bot"

sAddy = "redirect.mine.nu" -- HUB Addy to redirect the non regged

function NewUserConnected(user)
if (user.iProfile == -1) then
user:SendData(sBot, "Only for registered users."
user:SendData(sBot, "Redirecting..."
user:SendData("$ForceMove "..sAddy.."|")
end
end

Best regards, nErBoS
Title:
Post by: lawler on 08 December, 2004, 23:10:11
great! thx man  :]
Title:
Post by: imby on 08 December, 2004, 23:58:42
thankyou, the first script ever that i understand every single part of it :)