View Single Post
Old 07-31-2006, 07:44 PM   #9 (permalink)
mordero
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
Default

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 senderRelayInfo 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
mordero is offline   Reply With Quote