ScriptUO

Scripting Resources & Utilities => Stealth Client => Topic started by: PBR on May 08, 2016, 12:22:37 PM

Title: Resurrection Gump c#
Post by: PBR on May 08, 2016, 12:22:37 PM
Can anyone give some pointers on gump handling when using the resurrection gump? I have no problems working with say runebook gumps, but I am stuck on the resurrection gump.

Take the following code:
Code: [Select]
            while (true)
            {           
                    List<Gump> gumps = Gump.ActiveGumps;
                    List <Serial> serial   = Gump.Serials;
                    List<uint> type = Gump.Types;
                    Console.WriteLine(gumps.Count);
                    Console.WriteLine(serial.Count);
                    Console.WriteLine(type.Count);
                    bool rezGumpShown = Gump.WaitForGump(2223, 5000); //2223 = rez gump

                    if (rezGumpShown)
                    {
                    Gump rezGump = Gump.GetGump(2223);
    }
                    Thread.Sleep(2000);
            }

If I am dead, and not near a wandering healer, my console output will be 0,0,0. As I approach the healer and the rez gump appears, 0,1,1. Also, once inside the if statement,
Code: [Select]
Gump rezGump = Gump.GetGump(2223); throws a null reference exception.

Is there a reason the rez gump doesn't appear in my list of active gumps? Any ideas about the NR exception?
I really appreciate your help!




Title: Re: Resurrection Gump c#
Post by: Crome969 on May 09, 2016, 03:42:29 AM
Which stealth build? I did no upgrade to Stealth 7 yet.
Title: Re: Resurrection Gump c#
Post by: PBR on May 09, 2016, 12:51:39 PM
Which stealth build? I did no upgrade to Stealth 7 yet.

version 6.7.1
Title: Re: Resurrection Gump c#
Post by: Crome969 on May 09, 2016, 10:27:52 PM
Which stealth build? I did no upgrade to Stealth 7 yet.

version 6.7.1


I will look to test that as soon as possible...
Title: Re: Resurrection Gump c#
Post by: Drabadan on May 09, 2016, 11:38:53 PM
Same as i have with house placing, 1st gump is invisible to dll and others are ok