Author Topic: Resurrection Gump c#  (Read 4561 times)

0 Members and 1 Guest are viewing this topic.

Offline PBRTopic starter

  • Jr. Member
  • **
  • Posts: 11
  • Activity:
    0%
  • Reputation Power: 1
  • PBR has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Resurrection Gump c#
« on: May 08, 2016, 12:22:37 PM »
0
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!





There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
error.png

Offline Crome969

  • Moderator
  • *
  • *****
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Resurrection Gump c#
« Reply #1 on: May 09, 2016, 03:42:29 AM »
0
Which stealth build? I did no upgrade to Stealth 7 yet.

Offline PBRTopic starter

  • Jr. Member
  • **
  • Posts: 11
  • Activity:
    0%
  • Reputation Power: 1
  • PBR has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Resurrection Gump c#
« Reply #2 on: May 09, 2016, 12:51:39 PM »
0
Which stealth build? I did no upgrade to Stealth 7 yet.

version 6.7.1

Offline Crome969

  • Moderator
  • *
  • *****
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Resurrection Gump c#
« Reply #3 on: May 09, 2016, 10:27:52 PM »
0
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...

Offline Drabadan

  • Jr. Member
  • **
  • Posts: 28
  • Activity:
    0%
  • Reputation Power: 1
  • Drabadan has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: Resurrection Gump c#
« Reply #4 on: May 09, 2016, 11:38:53 PM »
0
Same as i have with house placing, 1st gump is invisible to dll and others are ok

Tags: gumps