ScriptUO

Scripting Resources & Utilities => Stealth Client => Stealth Snippets\Library => Topic started by: Crome969 on February 24, 2012, 02:34:09 AM

Title: Mondains Quest Handler [Heartwood as Example]
Post by: Crome969 on February 24, 2012, 02:34:09 AM
Title: Re: Mondains Quest Handler [Heartwood as Example]
Post by: b@ndito on April 27, 2012, 08:05:41 PM
i cant find the mondainquester library file, is it published yet?
Title: Re: Mondains Quest Handler [Heartwood as Example]
Post by: Crome969 on April 28, 2012, 10:13:22 AM
Title: Re: Mondains Quest Handler [Heartwood as Example]
Post by: rwo001 on April 10, 2013, 08:21:42 PM
Hi Crome969,

Did you try your program recently?
I try to make a quest handler myself, but found that i can't use 'WaitGump(1)' to accept the quest..
Do you have the same problem?
Title: Re: Mondains Quest Handler [Heartwood as Example]
Post by: Crome969 on April 11, 2013, 03:57:45 AM
Hi Crome969,

Did you try your program recently?
I try to make a quest handler myself, but found that i can't use 'WaitGump(1)' to accept the quest..
Do you have the same problem?
You need to check the value you send to server when press accept. and replace 1 with the value on your server is required.
Title: Re: Mondains Quest Handler [Heartwood as Example]
Post by: rwo001 on April 11, 2013, 04:57:01 AM
Code: [Select]
Serial: 76F576
GumpID: 0320
X: 004B
Y: 004B
Pages: 1
Gump Options: NoClose

GumpPicTiled: X Y   Width   Height   Gump_ID   ElemNum
GumpPicTiled: 50  20  400  460  5124  2
GumpPicTiled: 50  29  30  450  10460  3
GumpPicTiled: 34  140  17  339  9263  4
GumpPicTiled: 83  15  350  15  10250  9
GumpPicTiled: 51  479  392  17  10101  12
GumpPicTiled: 415  29  44  450  2605  13
GumpPicTiled: 415  29  30  450  10460  14
GumpPicTiled: 130  65  175  1  9101  21

GumpPics: X  Y  ID  Hue  Page  ElemNum
GumpPic: 48  135  10411  0  1  5
GumpPic: -16  285  10402  0  1  6
GumpPic: 0  10  10421  0  1  7
GumpPic: 25  0  10420  0  1  8
GumpPic: 34  479  10306  0  1  10
GumpPic: 442  479  10304  0  1  11
GumpPic: 370  50  1417  0  1  16
GumpPic: 379  60  5545  0  1  17
GumpPic: 425  0  10441  0  1  18
GumpPic: 90  33  9005  0  1  19
GumpPic: 107  147  1209  0  1  24

XmfHTMLGumpColor: X   Y   Width   Height   ClilocID   Background   scrollbar   Hue   ElemNum   ClilocText
0   XmfHTMLGumpColor: 130  45  270  16  1072201  0  0  16777215  20  Reward
1   XmfHTMLGumpColor: 135  146  280  16  1074282  0  0  90000  25  Craftsman's Satchel

XmfHTMLTok: X   Y   Width   Height   Background   scrollbar   Color   ClilocID   Arguments   ElemNum   ClilocText
0   XmfHTMLTok: 130  68  220  48  0  0  10000  1114513  [@#1073882]  23  Arch SupportDIV ALIGN=CENTER>Gump Options: NoCloseArch Support/DIV>

GumpTexts: X   Y   Color   Text_ID   Page   ElemNum
0   GumpText: 100  50  1153  0  1  15

Text Lines:


GumpButtons: X   Y   Released_ID  Pressed_ID   Quit   Page_ID   Return_value   Page   ElemNum
0   GumpButton: 95  455  12000  12002  1  0  1  1  22

I think it should be use the Return_value of the GumpButtons but it seems to be incorrect..@@
Title: Re: Mondains Quest Handler [Heartwood as Example]
Post by: Crome969 on April 11, 2013, 05:25:37 AM
I just did a short tryout
Code: [Select]
GumpButtons: X   Y   Released_ID  Pressed_ID   Quit   Page_ID   Return_value   Page   ElemNum
0   GumpButton: 95  455  12000  12002  1  0  1  1  22
1   GumpButton: 313  455  12018  12020  1  0  2  1  23
2   GumpButton: 275  430  12009  12011  0  2  0  1  27
3   GumpButton: 95  455  12000  12002  1  0  1  2  50
4   GumpButton: 313  455  12018  12020  1  0  2  2  51
5   GumpButton: 275  430  12009  12011  0  2  0  2  53
6   GumpButton: 130  430  12015  12017  0  1  0  2  54
7   GumpButton: 275  430  12009  12011  0  3  0  2  74
8   GumpButton: 95  455  12000  12002  1  0  1  3  97
9   GumpButton: 313  455  12018  12020  1  0  2  3  98
10   GumpButton: 130  430  12015  12017  0  2  0  3  100

If we check The GumpArt Values we can see :
(http://i.imagebanana.com/img/5hoviqcm/thumb/Fiddler_Questbutton.png) (http://www.imagebanana.com/view/5hoviqcm/Fiddler_Questbutton.png)

So the Line 0   GumpButton: 95  455  12000  12002  1  0  1  1  22 with the Value 1 is right.

I accepted the Value with
Code: [Select]
Previous gump reply:
  Button id: 1

So Value 1 Should be right :)
Title: Re: Mondains Quest Handler [Heartwood as Example]
Post by: rwo001 on April 11, 2013, 05:47:08 AM
yes ...i can get the quest, but when i completed the quest item and return.

The accept cannot be function.. :'(