I tried this but took some stuff out so only the chat stuff would be there. I am new to this still and dont know how to fix it.This is what I got....
roleplay.mac
#chat group
#chat tell
#chat say
#chat shout
#chat ooc
Sub Main
:Loop
Sub Event_Chat(string ChatType,string ChatSender,string ChatText)
/if (${ChatText.Equal[?]}) && (${ChatText.NotEqual[${Charactername}]}) && (${ChatSender.NotEqual[${Charactername}]}) {
/if (${ChatType.Equal[TELL]}) /tell ${ChatSender} Dude?
/if (${ChatType.Equal[GROUP]}) /gsay Dude?
/if (${ChatType.Equal[OOC]}) /ooc Dude?
/if (${ChatType.Equal[SHOUT]}) /shout Dude?
/if (${ChatType.Equal[SAY]}) /say Dude?
}
/if (${ChatText.Equal[.]}) && (${ChatText.NotEqual[${Charactername}]}) && (${ChatSender.NotEqual[${Charactername}]}) {
/varset statementvar ${Math.Rand[2]}
/if (${ChatType.Equal[TELL]}) {
/if (${statementvar}==0) /tell ${ChatSender} Okie.
/if (${statementvar}==1) /tell ${ChatSender} Sure.
/if (${statementvar}==2) /tell ${ChatSender} Right on.
}
/if (${ChatType.Equal[GROUP]})
/if (${statementvar}==0) /gsay Okie.
/if (${statementvar}==1) /gsay Sure.
/if (${statementvar}==2) /gsay Right on.
}
/if (${ChatType.Equal[OOC]})
/if (${statementvar}==0) /ooc Okie.
/if (${statementvar}==1) /ooc Sure.
/if (${statementvar}==2) /ooc Right on.
}
/if (${ChatType.Equal[SHOUT]})
/if (${statementvar}==0) /shout Okie.
/if (${statementvar}==1) /shout Sure.
/if (${statementvar}==2) /shout Right on.
}
/if (${ChatType.Equal[SAY]})
/if (${statementvar}==0) /say Okie.
/if (${statementvar}==1) /say Sure.
/if (${statementvar}==2) /say Right on.
}
}
/if (${ChatText.Equal[${Charactername}]}) && (${ChatSender.NotEqual[${Charactername}]}) {
/if (${ChatType.Equal[TELL]}) /tell ${ChatSender} Lag
/if (${ChatType.Equal[GROUP]}) /gsay Lag
/if (${ChatType.Equal[OOC]}) /ooc Lag
/if (${ChatType.Equal[SHOUT]}) /shout Lag
/if (${ChatType.Equal[SAY]}) /say Lag
}
/goto :Loop
/return
When I do /mac roleplay it say this in the mq2 window...Flow ran into another subroutine. roleplay.mac@14 (Event_Chat(string ChatType,string ChatSender,string ChatText)):Sub Event_Chat (string ChatType,string ChatSender,string ChatText).
I got no clue on how to fix it so can anybody help me plz...would really like to include this with my rh.mac so it can look like I am actually playing by giving reponses instead of telling everybody I missed them talking to me for the past 20min because of battle spam lol.
roleplay.mac
#chat group
#chat tell
#chat say
#chat shout
#chat ooc
Sub Main
:Loop
Sub Event_Chat(string ChatType,string ChatSender,string ChatText)
/if (${ChatText.Equal[?]}) && (${ChatText.NotEqual[${Charactername}]}) && (${ChatSender.NotEqual[${Charactername}]}) {
/if (${ChatType.Equal[TELL]}) /tell ${ChatSender} Dude?
/if (${ChatType.Equal[GROUP]}) /gsay Dude?
/if (${ChatType.Equal[OOC]}) /ooc Dude?
/if (${ChatType.Equal[SHOUT]}) /shout Dude?
/if (${ChatType.Equal[SAY]}) /say Dude?
}
/if (${ChatText.Equal[.]}) && (${ChatText.NotEqual[${Charactername}]}) && (${ChatSender.NotEqual[${Charactername}]}) {
/varset statementvar ${Math.Rand[2]}
/if (${ChatType.Equal[TELL]}) {
/if (${statementvar}==0) /tell ${ChatSender} Okie.
/if (${statementvar}==1) /tell ${ChatSender} Sure.
/if (${statementvar}==2) /tell ${ChatSender} Right on.
}
/if (${ChatType.Equal[GROUP]})
/if (${statementvar}==0) /gsay Okie.
/if (${statementvar}==1) /gsay Sure.
/if (${statementvar}==2) /gsay Right on.
}
/if (${ChatType.Equal[OOC]})
/if (${statementvar}==0) /ooc Okie.
/if (${statementvar}==1) /ooc Sure.
/if (${statementvar}==2) /ooc Right on.
}
/if (${ChatType.Equal[SHOUT]})
/if (${statementvar}==0) /shout Okie.
/if (${statementvar}==1) /shout Sure.
/if (${statementvar}==2) /shout Right on.
}
/if (${ChatType.Equal[SAY]})
/if (${statementvar}==0) /say Okie.
/if (${statementvar}==1) /say Sure.
/if (${statementvar}==2) /say Right on.
}
}
/if (${ChatText.Equal[${Charactername}]}) && (${ChatSender.NotEqual[${Charactername}]}) {
/if (${ChatType.Equal[TELL]}) /tell ${ChatSender} Lag
/if (${ChatType.Equal[GROUP]}) /gsay Lag
/if (${ChatType.Equal[OOC]}) /ooc Lag
/if (${ChatType.Equal[SHOUT]}) /shout Lag
/if (${ChatType.Equal[SAY]}) /say Lag
}
/goto :Loop
/return
When I do /mac roleplay it say this in the mq2 window...Flow ran into another subroutine. roleplay.mac@14 (Event_Chat(string ChatType,string ChatSender,string ChatText)):Sub Event_Chat (string ChatType,string ChatSender,string ChatText).
I got no clue on how to fix it so can anybody help me plz...would really like to include this with my rh.mac so it can look like I am actually playing by giving reponses instead of telling everybody I missed them talking to me for the past 20min because of battle spam lol.