--====COPY FROM THIS LINE===== --Description Tag by ¨˜”°º•Hawk•º°”˜¨ 05-07-2004 --===Sets the tag to be shown in reg's descriptions================= regTagInDescription = "{Reg}" --\\ Tag --================================================================== --===Sets the tag to be shown in Vip's descriptions================= VipTagInDescription = "{Vip}" --\\ Tag --================================================================== --===Sets the tag to be shown in op's descriptions================== OpsTagInDescription = "{Op}" --\\ Tag --================================================================== --===Sets the tag to be shown in masters's descriptions============= MastersTagInDescription = "{Admin}" --\\ Tag --================================================================== --===Sets the time for the tags to be updated======================= Mins = 1 --================================================================== timer = 60000 * Mins function Main() SetTimer(timer) StartTimer() end function OnTimer() TagInDescription() end function TagInDescription() local aux,usr for aux, usr in GetUsersByProfile("vip") do if (GetItemByName(usr) ~= nil) then local userToShow = GetItemByName(usr) if (userToShow.sMyInfoString ~= nil) then local s,e,name,desc,speed,email,share = strfind(userToShow.sMyInfoString, "$MyINFO $ALL (%S+)%s+([^$]*)$ $([^$]*)$([^$]*)$([^$]+)") SendToAll( "$MyINFO $ALL "..name.." "..VipTagInDescription.." "..desc.."$ $"..speed.."$"..email.."$"..share.."$") end end end for aux, usr in GetUsersByProfile("operator") do if (GetItemByName(usr) ~= nil) then local userToShow = GetItemByName(usr) if (userToShow.sMyInfoString ~= nil) then local s,e,name,desc,speed,email,share = strfind(userToShow.sMyInfoString, "$MyINFO $ALL (%S+)%s+([^$]*)$ $([^$]*)$([^$]*)$([^$]+)") SendToAll( "$MyINFO $ALL "..name.." "..OpsTagInDescription.." "..desc.."$ $"..speed.."$"..email.."$"..share.."$") end end end for aux, usr in GetUsersByProfile("master") do if (GetItemByName(usr) ~= nil) then local userToShow = GetItemByName(usr) if (userToShow.sMyInfoString ~= nil) then local s,e,name,desc,speed,email,share = strfind(userToShow.sMyInfoString, "$MyINFO $ALL (%S+)%s+([^$]*)$ $([^$]*)$([^$]*)$([^$]+)") SendToAll( "$MyINFO $ALL "..name.." "..MastersTagInDescription.." "..desc.."$ $"..speed.."$"..email.."$"..share.."$") end end end for aux, usr in GetUsersByProfile("reg") do if (GetItemByName(usr) ~= nil) then local userToShow = GetItemByName(usr) if (userToShow.sMyInfoString ~= nil) then local s,e,name,desc,speed,email,share = strfind(userToShow.sMyInfoString, "$MyINFO $ALL (%S+)%s+([^$]*)$ $([^$]*)$([^$]*)$([^$]+)") SendToAll( "$MyINFO $ALL "..name.." "..regTagInDescription.." "..desc.."$ $"..speed.."$"..email.."$"..share.."$") end end end end --====FINISH COPYING HERE=====