PtokaX forum

Archive => Archived 5.0 boards => Finished Scripts => Topic started by: Pothead on 02 March, 2005, 15:28:40

Title: Redirect
Post by: Pothead on 02 March, 2005, 15:28:40
Just a simple script, for the !redirect command :)

--Redirect Script by Pothead.
Bot = frmHub:GetHubBotName()

function ChatArrival(curUser, sData)
local s, e, cmd, addy = string.find(sData, "%b<> (%S+) (%S+)%|$");
if(cmd == "!redirect") then
if (curUser.bOperator ~= nil) then
if (string.find(addy, "[%c|\n\r]")) then
curUser:SendData(Bot, "Invalid address.")
else
SendToOps(Bot, curUser.sName.." changed redirect address to: "..addy)
frmHub:SetRedirectAddress(addy)
end
else
curUser:SendData(Bot, "You aren't aloud to use this.")
end
return 1;
end
end
Title: New idea?
Post by: Snoris on 11 August, 2005, 01:30:56
Great script...Small and perfect...
But is there anyway to make more commands??
!userredirect
!slotredirect
etc etc....
Title:
Post by: EMIN3M on 11 August, 2005, 01:56:23
Thanks Pothead thats just what i was looking for :D:D:D:D:D:D