0 Members and 1 Guest are viewing this topic.
I tried several times...
Quote from: Chezor on September 06, 2008, 06:45:16 pmI tried several times... What code?
on *:SIGNAL:vcmp.command2:{ var %id = $1 var %name = $vcmp.name($1)if ($2 == l) { var %b = $vcmp.getid($1) var %c = $vcmp.distince(%id,%b)if ($3 == $null) vcmp.msg %id Please enter text, Cmd: /c l [Text]elseif (%c <= 6) vcmp.msg %b >>localchat - %name says $3}}
if ($2 == l) {var %b = 0if ($3 == $null) vcmp.msg %id Please enter text, Cmd: /c l [Text]else {while (%b <= 50) {if ($vcmp.distance(%id,%b) <= 5) {vcmp.msg %b Localchat - %name says: $3-}}}}
try something like:Code: [Select]if ($2 == l) {var %b = 0if ($3 == $null) vcmp.msg %id Please enter text, Cmd: /c l [Text]else {while (%b <= 50) {if ($vcmp.distance(%id,%b) <= 5) {vcmp.msg %b Localchat - %name says: $3-}}}}
And what's distance alias?
alias vcmp.distince { var %id1 = $1 var %id2 = $2 var %x = $abs($calc($vcmp.location(%id1,x) - $vcmp.location(%id2,x))) var %y = $abs($calc($vcmp.location(%id1,y) - $vcmp.location(%id2,y))) var %z = $abs($calc($vcmp.location(%id1,z) - $vcmp.location(%id2,z))) !return $round($calc($calc(%x + %y + %z) / 2),1)}
Quote from: thijn on September 07, 2008, 09:04:18 pmtry something like:Code: [Select]if ($2 == l) {var %b = 0if ($3 == $null) vcmp.msg %id Please enter text, Cmd: /c l [Text]else {while (%b <= 50) {if ($vcmp.distance(%id,%b) <= 5) {vcmp.msg %b Localchat - %name says: $3-}}}}that code is crashing my mIRC. when i go ingame and use /c l textIt turns mIRC to non responding program.
try something like:Code: [Select]if ($2 == l) {var %b = 0if ($3 == $null) vcmp.msg %id Please enter text, Cmd: /c l [Text]else {while (%b <= 50) {if ($vcmp.distance(%id,%b) <= 5) {vcmp.msg %b Localchat - %name says: $3-}}}}that code is crashing my mIRC. when i go ingame and use /c l textIt turns mIRC to non responding program.
if ($2 == l) { var %b = 0 if ($3 == $null) vcmp.msg %id Please enter text, Cmd: /c l [Text] else { while (%b <= 50) { if ($vcmp.distance(%id,%b) <= 5) { vcmp.msg %b Localchat - %name says: $3- } !inc %b } }}
Acctually i forgot it Anyways does it works now?