Yoko
http://forum.yoko.com.ua/

Input Text Reply
http://forum.yoko.com.ua/viewtopic.php?f=4&t=12148
Page 1 of 1

Author:  newzid [ 2007-06-24 21:33:08 ]
Post subject:  Input Text Reply

think its a easy feature to be implemented, its used in some pol shards.

packet from server:
Code:
- 000818734+0016 --- server Text Input Dialog
0000: ab 00 46 00 54 72 52 00 00 00 32 51 75 61 6e 74 : ..F.TrR...2How M
0010: 6f 73 20 69 74 65 6d 73 20 64 65 73 73 65 20 74 : any Items would y
0020: 69 70 6f 20 76 6f 63 65 20 71 75 65 72 20 66 61 : ou like to Make ?
0030: 7a 65 72 3f 28 4d 61 78 20 31 30 29 00 28 01 00 : (Maximum 10).(..
0040: 00 00 28 00 01 00 -- -- -- -- -- -- -- -- -- -- : ..(...
>>>Received packet len=122 >> 120 bytes

(the hex text differs from the ascii because ive translated the text. but the core of the packet isnt touched)

and the client reply:
Code:
- 000821671+0078 --- client Text Input Reply
0000: ac 00 0f 00 54 72 52 00 00 01 00 03 31 30 00 -- : ....TrR.....10.
>>>Received packet len=15 >> 17 bytes


well seems that yoko already have a handler for this packet, what we need now is a command like ongump().
Code:
uo.onInputText("withtext","How many Items would you Like..","10");

thanks.
[/code]

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/