PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Alexandros on 11 July, 2004, 01:45:06

Title: +myip script
Post by: Alexandros on 11 July, 2004, 01:45:06
thats it, i need a script thats shows the IP of the user runing this command.

Thanks
Title:
Post by: NightLitch on 11 July, 2004, 01:58:13
here you go:

-------------------------------------------------
-- +myip by NightLitch
-------------------------------------------------
function DataArrival(sUser,sData)
if (strsub(sData,1,1) == "<") then
sData=strsub(sData,1,strlen(sData)-1)
local s,e,cmd = strfind(sData, "%b<>%s+(%S+)")
if cmd == "+myip" then
sUser:SendData("", sUser.sName.." your IP is: ( "..sUser.sIP.." ) ")
return 1
end
end
end

*UPDATED AGAIN*

forgot a line... works now...

/NL
Title:
Post by: Alexandros on 11 July, 2004, 02:43:12
i have no bot....in other scripts i have:
botname = "SLOTS" with no register bot...and it works fine.
i cant make this script work...
any idea?
Title:
Post by: NightLitch on 11 July, 2004, 13:21:59
Should work now...
Title:
Post by: D-J Valhala on 11 July, 2004, 14:53:33
the bot is not working...
Title:
Post by: NightLitch on 11 July, 2004, 14:58:27
works now... fixed..
Title:
Post by: Madman on 11 July, 2004, 15:04:45
Works just fine here...
Title:
Post by: D-J Valhala on 11 July, 2004, 16:42:48
where is the script? :)
Title:
Post by: D-J Valhala on 12 July, 2004, 00:28:58
ohhh lol high me :P