Guest Posted November 4, 2007 Posted November 4, 2007 I am trying to create an !id command to work in irc for a new server i have set up. (Shows a players ID) but i am having some problems with it. this is the script.: on *:TEXT:!id*:*: {/msg #unifi5h.admin /msg #unifi5h.admin <> $mta.getid ($1,*) } If anyone could shed some light on this it would be great!
xGj Posted November 4, 2007 Posted November 4, 2007 Actually this is the LUA section.. You might want to post in the Add-ons section, but Im sure a mod can move it for you.
Scooby Posted November 10, 2007 Posted November 10, 2007 I am trying to create an !id command to work in irc for a new server i have set up. (Shows a players ID) but i am having some problems with it. this is the script.: on *:TEXT:!id*:*: {/msg #unifi5h.admin /msg #unifi5h.admin <> $mta.getid ($1,*) } If anyone could shed some light on this it would be great! for !id bob try using $mta.getid(1,$2) the 1 being ur server id if u use another tab on mtama change the number accordingly.
Rmst Posted November 10, 2007 Posted November 10, 2007 dis will work definatly on *:TEXT:*:#:{ %serverID = 1 %chan = #yourchannel var %a = $iif($2,$iif($mta.nick(%serverID,$2) != $null,$2,$mta.getid(%serverID,$2))) if ($1 == !getid) { if ($2 == $null) { .notice $nick you have to state a name } else { /msg %chan $$2 $+ 's ID: %a } }
Scooby Posted November 10, 2007 Posted November 10, 2007 yeah.. looks fine, dont forget the final bracket thats missing.
Rmst Posted November 10, 2007 Posted November 10, 2007 yeh lol always forget the last one (oftopic is it me or is this new forum bugged as hell i have to login 3 times to reply and then i check the box login on every visit i have to login to, it just wont work)
Recommended Posts