This is what I did...
atom(script) VG_OnIncomingText(string Text, string ChannelNumber, string ChannelName)
{
call F_HandleChat "${Text}" "${ChannelNumber}"
}
function F_HandleChat(string IncTxt, int CnlNum)
{
declare X int local 1
declare Ctrlr bool local FALSE
declare Sender string local
do
{
if ${IncTxt.Find[${Controllers[${X}]}]}
{
Ctrlr:Set[TRUE]
Sender:Set[${Controllers[${X}]}]
break
}
}
while ${X:Inc}<=${Controllers.Size}
if ${IncTxt.Find[resurrect you]} && ${CnlNum} == 32
{
VG:ExecuteCmd[/rezaccept]
}
if ${CnlNum}==0 && ${IncTxt.Find[summon you]} && ${Ctrlr}
{
VG:ExecuteCmd[/callpcaccept]
}
}
1st thing I did in my script was made an array of characters allowed to interact with my bot (Controllers[5]). I then check the incoming text to see if they can play and find out who they are if they can. This allows me to do a lot of things handeling chats...
if ${IncTxt.Find[accepts the trade]} && ${CnlNum}==0
{
VG:ExecuteCmd[/tradeok]
}
Accept ropes from only people i say. Summon people who ask for it who are on the ok list etc.
detach the Atom at exit:
function atexit()
{
Event[VG_OnIncomingText]

etachAtom[VG_OnIncomingText]
}
I have a very good script (at least works great for me) for a 2 box, rog, disc, cleric or ranger if you want any samples or to try them let me know I will send them to you.
also Kazman, I am trying to find if there is a way to click the accept button on the ${VGUI[_quest_details_offer]} any help on this would be awesome. Thanks!