PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: acethecase on 22 April, 2004, 17:05:24

Title: Auto [TAG] in Name when enter!?
Post by: acethecase on 22 April, 2004, 17:05:24
heya!:
I need something like this:
When user enters hub is it posible to make script that
adds automaticly [TAG] in front of there names:
Greetings
Title:
Post by: nErBoS on 23 April, 2004, 23:55:27
Hi,

If i understood you want the separator with the tag to appear in first place. If yes that is not made by scripts but in the client.

Best regards, nErBoS
Title:
Post by: kepp on 14 May, 2004, 01:47:23
i could easily be made by a server side script, However, that will fail on $MyINFO being sent later on, or vica verca
Title:
Post by: ??????Hawk?????? on 14 May, 2004, 02:42:01
you could try something like this...

function ShowTag(user, Tag)
local s,e,v,w,x,y,z = strfind(user.sMyInfoString, "$MyINFO $ALL (%S+)%s+([^$]*)$ $([^$]*)$([^$]*)$([^$]+)")
SendToAll( "$MyINFO $ALL "..Tag..""..v.."  "..w.."$ $"..x.."$"..y.."$"..z.."$")
end


maby  ??
Title:
Post by: kepp on 14 May, 2004, 02:51:00
i belive you can chnage pretty much anythibng but the name...
The name is used in $ValidateNick|
$Hello|
and so on..
Title:
Post by: ??????Hawk?????? on 14 May, 2004, 02:58:17
if your wanting to force tags your probably better off trying to get your users to add the tags.