Guest Posted November 4, 2007 Share 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! Link to comment
xGj Posted November 4, 2007 Share 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. Link to comment
Scooby Posted November 10, 2007 Share 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. Link to comment
Rmst Posted November 10, 2007 Share 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 } } Link to comment
Scooby Posted November 10, 2007 Share Posted November 10, 2007 yeah.. looks fine, dont forget the final bracket thats missing. Link to comment
Rmst Posted November 10, 2007 Share 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) Link to comment
Recommended Posts