Hey Guys...
This is what I try accomplish...
I store the users namnes like this:
Nugg_User.log or Nugg.User
Nibb_Reg.log or Nibb.Reg
Naw_Vip or Naw.Vip
How Can I Open this with just one function and then using my original userinfo get... to fix this...
functions is soft of like this:
!info user
blabla
if offline getofflineinfo
--------------------------
Here comes the difficulty part for me...
I have files with different values how can I check all three...
user,reg,vip ???? hope you get my point...
can I do it like this way maybe, this is just a lonh shot from
nowhere...
function GetOffLine(curUser,data,nick)
local f1 = openfile(InfoPath..""..nick.."_User.log","r")
local f2 = openfile(InfoPath..""..nick.."_Reg.log","r")
local f3 = openfile(InfoPath..""..nick.."_Vip.log","r")
if f1 then sFile = "User"
elseif f2 then sFile = "Reg"
elseif f3 then sFile = "Vip"
end
UserInfo = loadTableFromFile(sUserInfoFile..""..strlower(nick)..""..sFile..".log")
closefile(strlower(nick)..""..sFile..".log")
end
can this work or how should it be done ???
plz help
you can get into trouble the way you did it because you have 3 files opened @ 1 time (in doubt if this even would work, nearly sure that there is a max of 1).
give this a try.
function GetOffLine(curUser,data,nick)
if openfile(InfoPath..""..nick.."_User.log") then
UserInfo = loadTableFromFile(InfoPath..""..nick.."_User.log")
closefile()
elseif openfile(InfoPath..""..nick.."_Reg.log") then
UserInfo = loadTableFromFile(InfoPath..""..nick.."_Reg.log")
closefile()
elseif openfile(InfoPath..""..nick.."_Vip.log") then
UserInfo = loadTableFromFile(InfoPath..""..nick.."_Vip.log")
closefile()
else
curUser:SendData(bot, nick.." is a unknown user")
end
end
plop
*DELETED*
got it fixed myself...
QuoteOriginally posted by NightLitch
*DELETED*
got it fixed myself...
okiedokie.
but now i'm cuorius how you did it and what was in your post before you edited it. lol
plop
Well I found it it will not work.. or maybe... but that will be
another time...
If I inputted a name/file that didn't exist I got No Value
found(exist) and it didn't work with nil or "" so I gave it up...
But gonna install A.I and take a look at your saving system
in userinfo
maybe I come up with some idea's... :-)
But I Am really curious how you get some sort of info from
Stealth that you don't get from other clients... care to share
that knowledge... :-)
The only way I so far have managed to block it some times
is with the Redirect block part timer i did and version checks...
and then DC++k for fake share...
What I am most intressted in your bot is the Database
uplay and the Stealth checks...
Have a good one m8
you now know where you can find my hub.
plop