Message forwarding [Request Fulfilled]

Macro requests from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

night
orc pawn
orc pawn
Posts: 24
Joined: Sat Jun 22, 2002 7:08 pm

Message forwarding [Request Fulfilled]

Post by night » Sun Aug 18, 2002 11:56 am

Is there someway that I can forward all tells my main char gets to my second char that I am leveling?

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Sun Aug 18, 2002 1:02 pm

Salutations,
Well... here goes... Coded in the browsers so i don't know how bug free it is... but i think it'll work...

Code: Select all

| ---------------------
| - TellForward.mac
| ---------------------
| call with:
|    /macro tellforward <charname>
#chat tell

sub main
 /varset a(0,0) $p0
  :loop
     /doevents
   /goto :loop
/return

sub event_chat
 /if "$p1"~~"$a(0,0) {
  /if $arg(1,"$p2")=="/tell" {
    /varset a(0,1) 0
    :loop2
      /if $arg($calc($a(0,1)+1),"$p2")!="" {
         /varadd a(0,1)
         /goto :loop2
      }
       /for v0 3 to $a(0,0)
         /varset a(0,2) $arg($v0,"$p2")
       /next v0
       /tell $arg(2,"$p2") $a(0,2)
   }
 } else {
   /tell $a(0,0) $p1 told me $p2
 }