Ok, never used gumps before in my life, but use the concept of what Jeff said, not the exact code. In your script though, it would be in the OnResponse function and would be similar to this (I think lol):
PHP Code:
OnResponse(Server.Network.NetState sender, RelayInfo info)
{
//do whatever you need to get to this point
TextRelay passEntry = info.GetTextEntry(0);
TextRelay passVerify = info.GetTextEntry(1);
string pEntry = ( passEntry == null ? null : passEntry.Text.Trim() );
string pVerify = ( passVerify == null ? null : passVerify.Text.Trim() );
//do whatever to make sure they are the same
//now check for the char or phrase
if (pEntry.IndexOf("words or char u dont want") != -1)
{
//Do Action
}
}
I think the concept of all that is what you want, but youll of course have to test it and all that (especially since ive never worked with gumps before). Hope this helps
