Author Topic: RegReport LUA 5.1x [Strict] [API 2]  (Read 2742 times)

0 Members and 1 Guest are viewing this topic.

Offline ATAG

  • Scripter
  • Double Ace
  • ******
  • Posts: 112
  • Karma: +14/-0
  • secret things
    • Metin2 Hungarian Forum
RegReport LUA 5.1x [Strict] [API 2]
« on: 12 November, 2008, 18:47:57 »
Code: [Select]
--[[
reg_report.lua v0.01 API2
by ATAG @ 12/11/08

Requested by P_pan

]]

reglist = {}

function OnStartup()
tmr = TmrMan.AddTimer(1000)
for i, user in ipairs(RegMan.GetRegs()) do
reglist[user.sNick] = true
end
end

function OnTimer()
for i, user in ipairs(RegMan.GetRegs()) do
if not reglist[user.sNick] then
reglist[user.sNick] = true
Core.SendToOpChat(user.sNick.." successfully added to registered users with profile: ".. ProfMan.GetProfile( user.iProfile).sProfileName)
end
end
end

function OnExit()
TmrMan.RemoveTimer(tmr)
reglist = nil
tmr = nil
collectgarbage("collect")
end

PtokaX forum

RegReport LUA 5.1x [Strict] [API 2]
« on: 12 November, 2008, 18:47:57 »

Offline P_pan

  • Fulll Member
  • ****
  • Posts: 71
  • Karma: +1/-3
Re: RegReport LUA 5.1x [Strict] [API 2]
« Reply #1 on: 12 November, 2008, 19:08:53 »
Thank You Atag!!!!

just what i needed

You rock aswell ;D

Offline P_pan

  • Fulll Member
  • ****
  • Posts: 71
  • Karma: +1/-3
Re: RegReport LUA 5.1x [Strict] [API 2]
« Reply #2 on: 01 December, 2008, 21:39:21 »
is it possibble to add the person (nick) who regged the new member?
and how to implent it in this script?

thnx!

Offline P_pan

  • Fulll Member
  • ****
  • Posts: 71
  • Karma: +1/-3
Re: RegReport LUA 5.1x [Strict] [API 2]
« Reply #3 on: 02 December, 2008, 19:29:06 »
thank You Mutor!!

PtokaX forum

Re: RegReport LUA 5.1x [Strict] [API 2]
« Reply #3 on: 02 December, 2008, 19:29:06 »