home *** CD-ROM | disk | FTP | other *** search
Unknown | 2000-01-24 | 11.4 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 69 b5 01 2f 2f 3d 3d 3d |........|i..//===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 55 |========|==..// U|
|00000060| 64 70 53 65 72 76 65 72 | 51 75 65 72 79 0d 0a 2f |dpServer|Query../|
|00000070| 2f 0d 0a 2f 2f 20 56 65 | 72 73 69 6f 6e 3a 20 31 |/..// Ve|rsion: 1|
|00000080| 2e 35 0d 0a 2f 2f 0d 0a | 2f 2f 20 54 68 69 73 20 |.5..//..|// This |
|00000090| 71 75 65 72 79 20 73 65 | 72 76 65 72 20 69 73 20 |query se|rver is |
|000000a0| 63 6f 6d 70 6c 69 61 6e | 74 20 77 69 74 68 20 74 |complian|t with t|
|000000b0| 68 65 20 47 61 6d 65 53 | 70 79 20 55 70 6c 69 6e |he GameS|py Uplin|
|000000c0| 6b 20 53 70 65 63 69 66 | 69 63 61 74 69 6f 6e 2e |k Specif|ication.|
|000000d0| 0d 0a 2f 2f 20 54 68 65 | 20 73 70 65 63 69 66 69 |..// The| specifi|
|000000e0| 63 61 74 69 6f 6e 20 69 | 73 20 61 76 61 69 6c 61 |cation i|s availa|
|000000f0| 62 6c 65 20 61 74 20 68 | 74 74 70 3a 2f 2f 77 77 |ble at h|ttp://ww|
|00000100| 77 2e 67 61 6d 65 73 70 | 79 2e 63 6f 6d 2f 64 65 |w.gamesp|y.com/de|
|00000110| 76 65 6c 6f 70 65 72 0d | 0a 2f 2f 20 61 6e 64 20 |veloper.|.// and |
|00000120| 6d 69 67 68 74 20 62 65 | 20 6f 66 20 75 73 65 20 |might be| of use |
|00000130| 74 6f 20 70 72 6f 67 61 | 6d 6d 65 72 73 20 77 68 |to proga|mmers wh|
|00000140| 6f 20 61 72 65 20 77 72 | 69 74 69 6e 67 20 6f 72 |o are wr|iting or|
|00000150| 20 6d 61 69 6e 74 61 69 | 6e 69 6e 67 0d 0a 2f 2f | maintai|ning..//|
|00000160| 20 74 68 65 69 72 20 6f | 77 6e 20 73 74 61 74 20 | their o|wn stat |
|00000170| 67 61 74 68 65 72 69 6e | 67 2f 67 61 6d 65 20 71 |gatherin|g/game q|
|00000180| 75 65 72 79 69 6e 67 20 | 73 6f 66 74 77 61 72 65 |uerying |software|
|00000190| 2e 0d 0a 2f 2f 0d 0a 2f | 2f 20 4e 6f 74 65 3a 20 |...//../|/ Note: |
|000001a0| 43 75 72 72 65 6e 74 6c | 79 2c 20 53 65 6e 64 54 |Currentl|y, SendT|
|000001b0| 65 78 74 20 72 65 74 75 | 72 6e 73 20 66 61 6c 73 |ext retu|rns fals|
|000001c0| 65 20 69 66 20 73 75 63 | 63 65 73 73 66 75 6c 2e |e if suc|cessful.|
|000001d0| 0d 0a 2f 2f 0d 0a 2f 2f | 20 46 75 6c 6c 20 64 6f |..//..//| Full do|
|000001e0| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 6f 6e 20 74 |cumentat|ion on t|
|000001f0| 68 69 73 20 63 6c 61 73 | 73 20 69 73 20 61 76 61 |his clas|s is ava|
|00000200| 69 6c 61 62 6c 65 20 61 | 74 20 68 74 74 70 3a 2f |ilable a|t http:/|
|00000210| 2f 75 6e 72 65 61 6c 2e | 65 70 69 63 67 61 6d 65 |/unreal.|epicgame|
|00000220| 73 2e 63 6f 6d 2f 0d 0a | 2f 2f 0d 0a 2f 2f 3d 3d |s.com/..|//..//==|
|00000230| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000240| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000250| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000260| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000270| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0d 0a 63 6c 61 |========|===..cla|
|00000280| 73 73 20 55 64 70 53 65 | 72 76 65 72 51 75 65 72 |ss UdpSe|rverQuer|
|00000290| 79 20 65 78 74 65 6e 64 | 73 20 55 64 70 4c 69 6e |y extend|s UdpLin|
|000002a0| 6b 20 63 6f 6e 66 69 67 | 3b 0d 0a 0d 0a 2f 2f 20 |k config|;....// |
|000002b0| 47 61 6d 65 20 53 65 72 | 76 65 72 20 43 6f 6e 66 |Game Ser|ver Conf|
|000002c0| 69 67 2e 0d 0a 76 61 72 | 28 29 20 6e 61 6d 65 09 |ig...var|() name.|
|000002d0| 09 09 09 09 51 75 65 72 | 79 4e 61 6d 65 3b 09 09 |....Quer|yName;..|
|000002e0| 09 2f 2f 20 4e 61 6d 65 | 20 74 6f 20 73 65 74 20 |.// Name| to set |
|000002f0| 74 68 69 73 20 6f 62 6a | 65 63 74 27 73 20 54 61 |this obj|ect's Ta|
|00000300| 67 20 74 6f 2e 0d 0a 76 | 61 72 20 69 6e 74 09 09 |g to...v|ar int..|
|00000310| 09 09 09 20 20 20 20 43 | 75 72 72 65 6e 74 51 75 |... C|urrentQu|
|00000320| 65 72 79 4e 75 6d 3b 09 | 2f 2f 20 51 75 65 72 79 |eryNum;.|// Query|
|00000330| 20 49 44 20 4e 75 6d 62 | 65 72 2e 0d 0a 76 61 72 | ID Numb|er...var|
|00000340| 20 67 6c 6f 62 61 6c 63 | 6f 6e 66 69 67 20 73 74 | globalc|onfig st|
|00000350| 72 69 6e 67 09 09 47 61 | 6d 65 4e 61 6d 65 3b 0d |ring..Ga|meName;.|
|00000360| 0a 2f 2f 63 72 74 0d 0a | 76 61 72 20 73 74 72 69 |.//crt..|var stri|
|00000370| 6e 67 20 52 65 70 6c 79 | 44 61 74 61 3b 0d 0a 0d |ng Reply|Data;...|
|00000380| 0a 2f 2f 20 49 6e 69 74 | 69 61 6c 69 7a 65 2e 0d |.// Init|ialize..|
|00000390| 0a 66 75 6e 63 74 69 6f | 6e 20 50 72 65 42 65 67 |.functio|n PreBeg|
|000003a0| 69 6e 50 6c 61 79 28 29 | 0d 0a 7b 0d 0a 09 6c 6f |inPlay()|..{...lo|
|000003b0| 63 61 6c 20 69 6e 74 20 | 62 6f 75 6e 64 70 6f 72 |cal int |boundpor|
|000003c0| 74 3b 0d 0a 0d 0a 09 2f | 2f 20 53 65 74 20 74 68 |t;...../|/ Set th|
|000003d0| 65 20 54 61 67 0d 0a 09 | 54 61 67 20 3d 20 51 75 |e Tag...|Tag = Qu|
|000003e0| 65 72 79 4e 61 6d 65 3b | 0d 0a 0d 0a 09 2f 2f 20 |eryName;|.....// |
|000003f0| 42 69 6e 64 20 74 68 65 | 20 6c 69 73 74 65 6e 20 |Bind the| listen |
|00000400| 73 6f 63 6b 65 74 0d 0a | 09 62 6f 75 6e 64 70 6f |socket..|.boundpo|
|00000410| 72 74 20 3d 20 42 69 6e | 64 50 6f 72 74 28 4c 65 |rt = Bin|dPort(Le|
|00000420| 76 65 6c 2e 47 61 6d 65 | 2e 47 65 74 53 65 72 76 |vel.Game|.GetServ|
|00000430| 65 72 50 6f 72 74 28 29 | 2c 20 74 72 75 65 29 3b |erPort()|, true);|
|00000440| 0d 0a 09 69 66 28 20 62 | 6f 75 6e 64 70 6f 72 74 |...if( b|oundport|
|00000450| 20 3d 3d 20 30 20 29 0d | 0a 09 7b 0d 0a 09 09 4c | == 0 ).|..{....L|
|00000460| 6f 67 28 22 55 64 70 53 | 65 72 76 65 72 51 75 65 |og("UdpS|erverQue|
|00000470| 72 79 3a 20 50 6f 72 74 | 20 66 61 69 6c 65 64 20 |ry: Port| failed |
|00000480| 74 6f 20 62 69 6e 64 2e | 22 29 3b 0d 0a 09 09 72 |to bind.|");....r|
|00000490| 65 74 75 72 6e 3b 0d 0a | 09 7d 0d 0a 09 4c 6f 67 |eturn;..|.}...Log|
|000004a0| 28 22 55 64 70 53 65 72 | 76 65 72 51 75 65 72 79 |("UdpSer|verQuery|
|000004b0| 28 63 72 74 29 3a 20 50 | 6f 72 74 20 22 24 62 6f |(crt): P|ort "$bo|
|000004c0| 75 6e 64 70 6f 72 74 24 | 22 20 73 75 63 63 65 73 |undport$|" succes|
|000004d0| 73 66 75 6c 6c 79 20 62 | 6f 75 6e 64 2e 22 29 3b |sfully b|ound.");|
|000004e0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|000004f0| 50 6f 73 74 42 65 67 69 | 6e 50 6c 61 79 28 29 0d |PostBegi|nPlay().|
|00000500| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 55 64 70 42 65 |.{...loc|al UdpBe|
|00000510| 61 63 6f 6e 09 42 65 61 | 63 6f 6e 3b 0d 0a 0d 0a |acon.Bea|con;....|
|00000520| 09 66 6f 72 65 61 63 68 | 20 41 6c 6c 41 63 74 6f |.foreach| AllActo|
|00000530| 72 73 28 63 6c 61 73 73 | 27 55 64 70 42 65 61 63 |rs(class|'UdpBeac|
|00000540| 6f 6e 27 2c 20 42 65 61 | 63 6f 6e 29 0d 0a 09 7b |on', Bea|con)...{|
|00000550| 0d 0a 09 09 42 65 61 63 | 6f 6e 2e 55 64 70 53 65 |....Beac|on.UdpSe|
|00000560| 72 76 65 72 51 75 65 72 | 79 50 6f 72 74 20 3d 20 |rverQuer|yPort = |
|00000570| 50 6f 72 74 3b 0d 0a 09 | 7d 0d 0a 09 53 75 70 65 |Port;...|}...Supe|
|00000580| 72 2e 50 6f 73 74 42 65 | 67 69 6e 50 6c 61 79 28 |r.PostBe|ginPlay(|
|00000590| 29 3b 0d 0a 7d 0d 0a 0d | 0a 2f 2f 20 52 65 63 65 |);..}...|.// Rece|
|000005a0| 69 76 65 64 20 61 20 71 | 75 65 72 79 20 72 65 71 |ived a q|uery req|
|000005b0| 75 65 73 74 2e 0d 0a 65 | 76 65 6e 74 20 52 65 63 |uest...e|vent Rec|
|000005c0| 65 69 76 65 64 54 65 78 | 74 28 20 49 70 41 64 64 |eivedTex|t( IpAdd|
|000005d0| 72 20 41 64 64 72 2c 20 | 73 74 72 69 6e 67 20 54 |r Addr, |string T|
|000005e0| 65 78 74 20 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |ext )..{|...local|
|000005f0| 20 73 74 72 69 6e 67 20 | 51 75 65 72 79 3b 0d 0a | string |Query;..|
|00000600| 09 6c 6f 63 61 6c 20 62 | 6f 6f 6c 20 51 75 65 72 |.local b|ool Quer|
|00000610| 79 52 65 6d 61 69 6e 69 | 6e 67 3b 0d 0a 09 6c 6f |yRemaini|ng;...lo|
|00000620| 63 61 6c 20 69 6e 74 20 | 20 51 75 65 72 79 4e 75 |cal int | QueryNu|
|00000630| 6d 2c 20 50 61 63 6b 65 | 74 4e 75 6d 3b 0d 0a 0d |m, Packe|tNum;...|
|00000640| 0a 09 2f 2f 20 41 73 73 | 69 67 6e 20 74 68 69 73 |..// Ass|ign this|
|00000650| 20 70 61 63 6b 65 74 20 | 61 20 75 6e 69 71 75 65 | packet |a unique|
|00000660| 20 76 61 6c 75 65 20 66 | 72 6f 6d 20 31 20 74 6f | value f|rom 1 to|
|00000670| 20 31 30 30 0d 0a 09 43 | 75 72 72 65 6e 74 51 75 | 100...C|urrentQu|
|00000680| 65 72 79 4e 75 6d 2b 2b | 3b 0d 0a 09 69 66 20 28 |eryNum++|;...if (|
|00000690| 43 75 72 72 65 6e 74 51 | 75 65 72 79 4e 75 6d 20 |CurrentQ|ueryNum |
|000006a0| 3e 20 31 30 30 29 0d 0a | 09 09 43 75 72 72 65 6e |> 100)..|..Curren|
|000006b0| 74 51 75 65 72 79 4e 75 | 6d 20 3d 20 31 3b 0d 0a |tQueryNu|m = 1;..|
|000006c0| 09 51 75 65 72 79 4e 75 | 6d 20 3d 20 43 75 72 72 |.QueryNu|m = Curr|
|000006d0| 65 6e 74 51 75 65 72 79 | 4e 75 6d 3b 0d 0a 0d 0a |entQuery|Num;....|
|000006e0| 09 51 75 65 72 79 20 3d | 20 54 65 78 74 3b 0d 0a |.Query =| Text;..|
|000006f0| 09 69 66 20 28 51 75 65 | 72 79 20 3d 3d 20 22 22 |.if (Que|ry == ""|
|00000700| 29 09 09 2f 2f 20 49 66 | 20 74 68 65 20 73 74 72 |)..// If| the str|
|00000710| 69 6e 67 20 69 73 20 65 | 6d 70 74 79 2c 20 64 6f |ing is e|mpty, do|
|00000720| 6e 27 74 20 70 61 72 73 | 65 20 69 74 0d 0a 09 09 |n't pars|e it....|
|00000730| 51 75 65 72 79 52 65 6d | 61 69 6e 69 6e 67 20 3d |QueryRem|aining =|
|00000740| 20 66 61 6c 73 65 3b 0d | 0a 09 65 6c 73 65 0d 0a | false;.|..else..|
|00000750| 09 09 51 75 65 72 79 52 | 65 6d 61 69 6e 69 6e 67 |..QueryR|emaining|
|00000760| 20 3d 20 74 72 75 65 3b | 0d 0a 09 2f 2f 63 72 74 | = true;|...//crt|
|00000770| 0d 0a 09 50 61 63 6b 65 | 74 4e 75 6d 20 3d 20 20 |...Packe|tNum = |
|00000780| 30 3b 0d 0a 09 52 65 70 | 6c 79 44 61 74 61 20 3d |0;...Rep|lyData =|
|00000790| 20 22 22 3b 0d 0a 09 77 | 68 69 6c 65 20 28 51 75 | "";...w|hile (Qu|
|000007a0| 65 72 79 52 65 6d 61 69 | 6e 69 6e 67 29 20 7b 0d |eryRemai|ning) {.|
|000007b0| 0a 09 09 51 75 65 72 79 | 20 3d 20 50 61 72 73 65 |...Query| = Parse|
|000007c0| 51 75 65 72 79 28 41 64 | 64 72 2c 20 51 75 65 72 |Query(Ad|dr, Quer|
|000007d0| 79 2c 20 51 75 65 72 79 | 4e 75 6d 2c 20 50 61 63 |y, Query|Num, Pac|
|000007e0| 6b 65 74 4e 75 6d 29 3b | 0d 0a 09 09 69 66 20 28 |ketNum);|....if (|
|000007f0| 51 75 65 72 79 20 3d 3d | 20 22 22 29 0d 0a 09 09 |Query ==| "")....|
|00000800| 09 51 75 65 72 79 52 65 | 6d 61 69 6e 69 6e 67 20 |.QueryRe|maining |
|00000810| 3d 20 66 61 6c 73 65 3b | 0d 0a 09 09 65 6c 73 65 |= false;|....else|
|00000820| 0d 0a 09 09 09 51 75 65 | 72 79 52 65 6d 61 69 6e |.....Que|ryRemain|
|00000830| 69 6e 67 20 3d 20 74 72 | 75 65 3b 0d 0a 09 7d 0d |ing = tr|ue;...}.|
|00000840| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 62 |.}....fu|nction b|
|00000850| 6f 6f 6c 20 50 61 72 73 | 65 4e 65 78 74 51 75 65 |ool Pars|eNextQue|
|00000860| 72 79 28 20 73 74 72 69 | 6e 67 20 51 75 65 72 79 |ry( stri|ng Query|
|00000870| 2c 20 6f 75 74 20 73 74 | 72 69 6e 67 20 51 75 65 |, out st|ring Que|
|00000880| 72 79 54 79 70 65 2c 20 | 6f 75 74 20 73 74 72 69 |ryType, |out stri|
|00000890| 6e 67 20 51 75 65 72 79 | 56 61 6c 75 65 2c 20 6f |ng Query|Value, o|
|000008a0| 75 74 20 73 74 72 69 6e | 67 20 51 75 65 72 79 52 |ut strin|g QueryR|
|000008b0| 65 73 74 2c 20 6f 75 74 | 20 69 6e 74 20 62 46 69 |est, out| int bFi|
|000008c0| 6e 61 6c 50 61 63 6b 65 | 74 20 29 0d 0a 7b 0d 0a |nalPacke|t )..{..|
|000008d0| 09 6c 6f 63 61 6c 20 73 | 74 72 69 6e 67 20 54 65 |.local s|tring Te|
|000008e0| 6d 70 51 75 65 72 79 3b | 0d 0a 09 6c 6f 63 61 6c |mpQuery;|...local|
|000008f0| 20 69 6e 74 20 43 6c 6f | 73 69 6e 67 53 6c 61 73 | int Clo|singSlas|
|00000900| 68 3b 0d 0a 0d 0a 09 69 | 66 20 28 51 75 65 72 79 |h;.....i|f (Query|
|00000910| 20 3d 3d 20 22 22 29 0d | 0a 09 09 72 65 74 75 72 | == "").|...retur|
|00000920| 6e 20 66 61 6c 73 65 3b | 0d 0a 0d 0a 09 2f 2f 20 |n false;|.....// |
|00000930| 51 75 65 72 79 20 73 68 | 6f 75 6c 64 20 62 65 3a |Query sh|ould be:|
|00000940| 0d 0a 09 2f 2f 20 20 20 | 5c 5b 74 79 70 65 5d 5c |...// |\[type]\|
|00000950| 3c 76 61 6c 75 65 3e 0d | 0a 09 69 66 20 28 4c 65 |<value>.|..if (Le|
|00000960| 66 74 28 51 75 65 72 79 | 2c 20 31 29 20 3d 3d 20 |ft(Query|, 1) == |
|00000970| 22 5c 5c 22 29 0d 0a 09 | 7b 0d 0a 09 09 2f 2f 20 |"\\")...|{....// |
|00000980| 43 68 65 63 6b 20 74 6f | 20 73 65 65 20 69 66 20 |Check to| see if |
|00000990| 63 6c 6f 73 65 64 2e 0d | 0a 09 09 43 6c 6f 73 69 |closed..|...Closi|
|000009a0| 6e 67 53 6c 61 73 68 20 | 3d 20 49 6e 53 74 72 28 |ngSlash |= InStr(|
|000009b0| 52 69 67 68 74 28 51 75 | 65 72 79 2c 20 4c 65 6e |Right(Qu|ery, Len|
|000009c0| 28 51 75 65 72 79 29 2d | 31 29 2c 20 22 5c 5c 22 |(Query)-|1), "\\"|
|000009d0| 29 3b 0d 0a 09 09 69 66 | 20 28 43 6c 6f 73 69 6e |);....if| (Closin|
|000009e0| 67 53 6c 61 73 68 20 3d | 3d 20 30 29 0d 0a 09 09 |gSlash =|= 0)....|
|000009f0| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|00000a00| 0d 0a 09 09 54 65 6d 70 | 51 75 65 72 79 20 3d 20 |....Temp|Query = |
|00000a10| 51 75 65 72 79 3b 0d 0a | 0d 0a 09 09 2f 2f 20 51 |Query;..|....// Q|
|00000a20| 75 65 72 79 20 6c 6f 6f | 6b 73 20 6c 69 6b 65 3a |uery loo|ks like:|
|00000a30| 0d 0a 09 09 2f 2f 20 20 | 5c 5b 74 79 70 65 5d 5c |....// |\[type]\|
|00000a40| 0d 0a 09 09 51 75 65 72 | 79 54 79 70 65 20 3d 20 |....Quer|yType = |
|00000a50| 52 69 67 68 74 28 51 75 | 65 72 79 2c 20 4c 65 6e |Right(Qu|ery, Len|
|00000a60| 28 51 75 65 72 79 29 2d | 31 29 3b 0d 0a 09 09 51 |(Query)-|1);....Q|
|00000a70| 75 65 72 79 54 79 70 65 | 20 3d 20 4c 65 66 74 28 |ueryType| = Left(|
|00000a80| 51 75 65 72 79 54 79 70 | 65 2c 20 43 6c 6f 73 69 |QueryTyp|e, Closi|
|00000a90| 6e 67 53 6c 61 73 68 29 | 3b 0d 0a 0d 0a 09 09 51 |ngSlash)|;......Q|
|00000aa0| 75 65 72 79 52 65 73 74 | 20 3d 20 52 69 67 68 74 |ueryRest| = Right|
|00000ab0| 28 51 75 65 72 79 2c 20 | 4c 65 6e 28 51 75 65 72 |(Query, |Len(Quer|
|00000ac0| 79 29 20 2d 20 28 4c 65 | 6e 28 51 75 65 72 79 54 |y) - (Le|n(QueryT|
|00000ad0| 79 70 65 29 20 2b 20 32 | 29 29 3b 0d 0a 0d 0a 09 |ype) + 2|));.....|
|00000ae0| 09 69 66 20 28 28 51 75 | 65 72 79 52 65 73 74 20 |.if ((Qu|eryRest |
|00000af0| 3d 3d 20 22 22 29 20 7c | 7c 20 28 4c 65 6e 28 51 |== "") ||| (Len(Q|
|00000b00| 75 65 72 79 52 65 73 74 | 29 20 3d 3d 20 31 29 29 |ueryRest|) == 1))|
|00000b10| 0d 0a 09 09 7b 0d 0a 09 | 09 09 62 46 69 6e 61 6c |....{...|..bFinal|
|00000b20| 50 61 63 6b 65 74 20 3d | 20 31 3b 0d 0a 09 09 09 |Packet =| 1;.....|
|00000b30| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0d 0a 09 09 |return t|rue;....|
|00000b40| 7d 20 65 6c 73 65 20 69 | 66 20 28 4c 65 66 74 28 |} else i|f (Left(|
|00000b50| 51 75 65 72 79 52 65 73 | 74 2c 20 31 29 20 3d 3d |QueryRes|t, 1) ==|
|00000b60| 20 22 5c 5c 22 29 0d 0a | 09 09 09 72 65 74 75 72 | "\\")..|...retur|
|00000b70| 6e 20 74 72 75 65 3b 09 | 2f 2f 20 5c 74 79 70 65 |n true;.|// \type|
|00000b80| 5c 5c 0d 0a 0d 0a 09 09 | 2f 2f 20 51 75 65 72 79 |\\......|// Query|
|00000b90| 20 6c 6f 6f 6b 73 20 6c | 69 6b 65 3a 0d 0a 09 09 | looks l|ike:....|
|00000ba0| 2f 2f 20 20 5c 74 79 70 | 65 5c 76 61 6c 75 65 0d |// \typ|e\value.|
|00000bb0| 0a 09 09 43 6c 6f 73 69 | 6e 67 53 6c 61 73 68 20 |...Closi|ngSlash |
|00000bc0| 3d 20 49 6e 53 74 72 28 | 51 75 65 72 79 52 65 73 |= InStr(|QueryRes|
|00000bd0| 74 2c 20 22 5c 5c 22 29 | 3b 0d 0a 09 09 69 66 20 |t, "\\")|;....if |
|00000be0| 28 43 6c 6f 73 69 6e 67 | 53 6c 61 73 68 20 3e 3d |(Closing|Slash >=|
|00000bf0| 20 30 29 0d 0a 09 09 09 | 51 75 65 72 79 56 61 6c | 0).....|QueryVal|
|00000c00| 75 65 20 3d 20 4c 65 66 | 74 28 51 75 65 72 79 52 |ue = Lef|t(QueryR|
|00000c10| 65 73 74 2c 20 43 6c 6f | 73 69 6e 67 53 6c 61 73 |est, Clo|singSlas|
|00000c20| 68 29 3b 0d 0a 09 09 65 | 6c 73 65 0d 0a 09 09 09 |h);....e|lse.....|
|00000c30| 51 75 65 72 79 56 61 6c | 75 65 20 3d 20 51 75 65 |QueryVal|ue = Que|
|00000c40| 72 79 52 65 73 74 3b 0d | 0a 0d 0a 09 09 51 75 65 |ryRest;.|.....Que|
|00000c50| 72 79 52 65 73 74 20 3d | 20 52 69 67 68 74 28 51 |ryRest =| Right(Q|
|00000c60| 75 65 72 79 2c 20 4c 65 | 6e 28 51 75 65 72 79 29 |uery, Le|n(Query)|
|00000c70| 20 2d 20 28 4c 65 6e 28 | 51 75 65 72 79 54 79 70 | - (Len(|QueryTyp|
|00000c80| 65 29 20 2b 20 4c 65 6e | 28 51 75 65 72 79 56 61 |e) + Len|(QueryVa|
|00000c90| 6c 75 65 29 20 2b 20 33 | 29 29 3b 0d 0a 09 09 69 |lue) + 3|));....i|
|00000ca0| 66 20 28 51 75 65 72 79 | 52 65 73 74 20 3d 3d 20 |f (Query|Rest == |
|00000cb0| 22 22 29 0d 0a 09 09 7b | 0d 0a 09 09 09 62 46 69 |"")....{|.....bFi|
|00000cc0| 6e 61 6c 50 61 63 6b 65 | 74 20 3d 20 31 3b 0d 0a |nalPacke|t = 1;..|
|00000cd0| 09 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00000ce0| 0a 09 09 7d 20 65 6c 73 | 65 0d 0a 09 09 09 72 65 |...} els|e.....re|
|00000cf0| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 09 7d 20 65 |turn tru|e;...} e|
|00000d00| 6c 73 65 20 7b 0d 0a 09 | 09 72 65 74 75 72 6e 20 |lse {...|.return |
|00000d10| 66 61 6c 73 65 3b 0d 0a | 09 7d 0d 0a 7d 0d 0a 0d |false;..|.}..}...|
|00000d20| 0a 66 75 6e 63 74 69 6f | 6e 20 73 74 72 69 6e 67 |.functio|n string|
|00000d30| 20 50 61 72 73 65 51 75 | 65 72 79 28 20 49 70 41 | ParseQu|ery( IpA|
|00000d40| 64 64 72 20 41 64 64 72 | 2c 20 63 6f 65 72 63 65 |ddr Addr|, coerce|
|00000d50| 20 73 74 72 69 6e 67 20 | 51 75 65 72 79 2c 20 69 | string |Query, i|
|00000d60| 6e 74 20 51 75 65 72 79 | 4e 75 6d 2c 20 6f 75 74 |nt Query|Num, out|
|00000d70| 20 69 6e 74 20 50 61 63 | 6b 65 74 4e 75 6d 20 29 | int Pac|ketNum )|
|00000d80| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 73 74 72 69 |..{...lo|cal stri|
|00000d90| 6e 67 20 51 75 65 72 79 | 54 79 70 65 2c 20 51 75 |ng Query|Type, Qu|
|00000da0| 65 72 79 56 61 6c 75 65 | 2c 20 51 75 65 72 79 52 |eryValue|, QueryR|
|00000db0| 65 73 74 2c 20 56 61 6c | 69 64 61 74 69 6f 6e 53 |est, Val|idationS|
|00000dc0| 74 72 69 6e 67 3b 0d 0a | 09 6c 6f 63 61 6c 20 62 |tring;..|.local b|
|00000dd0| 6f 6f 6c 20 52 65 73 75 | 6c 74 3b 0d 0a 09 6c 6f |ool Resu|lt;...lo|
|00000de0| 63 61 6c 20 69 6e 74 20 | 62 46 69 6e 61 6c 50 61 |cal int |bFinalPa|
|00000df0| 63 6b 65 74 3b 0d 0a 09 | 0d 0a 09 62 46 69 6e 61 |cket;...|...bFina|
|00000e00| 6c 50 61 63 6b 65 74 20 | 3d 20 30 3b 0d 0a 09 52 |lPacket |= 0;...R|
|00000e10| 65 73 75 6c 74 20 3d 20 | 50 61 72 73 65 4e 65 78 |esult = |ParseNex|
|00000e20| 74 51 75 65 72 79 28 51 | 75 65 72 79 2c 20 51 75 |tQuery(Q|uery, Qu|
|00000e30| 65 72 79 54 79 70 65 2c | 20 51 75 65 72 79 56 61 |eryType,| QueryVa|
|00000e40| 6c 75 65 2c 20 51 75 65 | 72 79 52 65 73 74 2c 20 |lue, Que|ryRest, |
|00000e50| 62 46 69 6e 61 6c 50 61 | 63 6b 65 74 29 3b 0d 0a |bFinalPa|cket);..|
|00000e60| 09 69 66 28 20 21 52 65 | 73 75 6c 74 20 29 0d 0a |.if( !Re|sult )..|
|00000e70| 09 09 72 65 74 75 72 6e | 20 22 22 3b 0d 0a 0d 0a |..return| "";....|
|00000e80| 09 2f 2f 4c 6f 67 28 22 | 47 6f 74 20 20 51 75 65 |.//Log("|Got Que|
|00000e90| 72 79 3a 20 22 20 20 24 | 20 51 75 65 72 79 4e 75 |ry: " $| QueryNu|
|00000ea0| 6d 20 24 20 22 2e 22 20 | 24 20 50 61 63 6b 65 74 |m $ "." |$ Packet|
|00000eb0| 4e 75 6d 20 24 20 22 3a | 22 20 24 20 51 75 65 72 |Num $ ":|" $ Quer|
|00000ec0| 79 54 79 70 65 29 3b 0d | 0a 0d 0a 09 69 66 28 20 |yType);.|....if( |
|00000ed0| 51 75 65 72 79 54 79 70 | 65 3d 3d 22 62 61 73 69 |QueryTyp|e=="basi|
|00000ee0| 63 22 20 29 0d 0a 09 7b | 0d 0a 09 09 52 65 73 75 |c" )...{|....Resu|
|00000ef0| 6c 74 20 3d 20 53 65 6e | 64 51 75 65 72 79 50 61 |lt = Sen|dQueryPa|
|00000f00| 63 6b 65 74 28 41 64 64 | 72 2c 20 47 65 74 42 61 |cket(Add|r, GetBa|
|00000f10| 73 69 63 28 29 2c 20 51 | 75 65 72 79 4e 75 6d 2c |sic(), Q|ueryNum,|
|00000f20| 20 50 61 63 6b 65 74 4e | 75 6d 2c 20 62 46 69 6e | PacketN|um, bFin|
|00000f30| 61 6c 50 61 63 6b 65 74 | 29 3b 0d 0a 09 7d 0d 0a |alPacket|);...}..|
|00000f40| 09 65 6c 73 65 20 69 66 | 28 20 51 75 65 72 79 54 |.else if|( QueryT|
|00000f50| 79 70 65 3d 3d 22 69 6e | 66 6f 22 20 29 0d 0a 09 |ype=="in|fo" )...|
|00000f60| 7b 0d 0a 09 09 52 65 73 | 75 6c 74 20 3d 20 53 65 |{....Res|ult = Se|
|00000f70| 6e 64 51 75 65 72 79 50 | 61 63 6b 65 74 28 41 64 |ndQueryP|acket(Ad|
|00000f80| 64 72 2c 20 47 65 74 49 | 6e 66 6f 28 29 2c 20 51 |dr, GetI|nfo(), Q|
|00000f90| 75 65 72 79 4e 75 6d 2c | 20 50 61 63 6b 65 74 4e |ueryNum,| PacketN|
|00000fa0| 75 6d 2c 20 62 46 69 6e | 61 6c 50 61 63 6b 65 74 |um, bFin|alPacket|
|00000fb0| 29 3b 0d 0a 09 7d 0d 0a | 09 65 6c 73 65 20 69 66 |);...}..|.else if|
|00000fc0| 28 20 51 75 65 72 79 54 | 79 70 65 3d 3d 22 72 75 |( QueryT|ype=="ru|
|00000fd0| 6c 65 73 22 20 29 0d 0a | 09 7b 0d 0a 09 09 52 65 |les" )..|.{....Re|
|00000fe0| 73 75 6c 74 20 3d 20 53 | 65 6e 64 51 75 65 72 79 |sult = S|endQuery|
|00000ff0| 50 61 63 6b 65 74 28 41 | 64 64 72 2c 20 47 65 74 |Packet(A|ddr, Get|
|00001000| 52 75 6c 65 73 28 29 2c | 20 51 75 65 72 79 4e 75 |Rules(),| QueryNu|
|00001010| 6d 2c 20 50 61 63 6b 65 | 74 4e 75 6d 2c 20 62 46 |m, Packe|tNum, bF|
|00001020| 69 6e 61 6c 50 61 63 6b | 65 74 29 3b 0d 0a 09 7d |inalPack|et);...}|
|00001030| 0d 0a 09 65 6c 73 65 20 | 69 66 28 20 51 75 65 72 |...else |if( Quer|
|00001040| 79 54 79 70 65 3d 3d 22 | 70 6c 61 79 65 72 73 22 |yType=="|players"|
|00001050| 20 29 0d 0a 09 7b 0d 0a | 09 09 69 66 28 20 4c 65 | )...{..|..if( Le|
|00001060| 76 65 6c 2e 47 61 6d 65 | 2e 4e 75 6d 50 6c 61 79 |vel.Game|.NumPlay|
|00001070| 65 72 73 20 3e 20 30 20 | 29 0d 0a 09 09 09 52 65 |ers > 0 |).....Re|
|00001080| 73 75 6c 74 20 3d 20 53 | 65 6e 64 50 6c 61 79 65 |sult = S|endPlaye|
|00001090| 72 73 28 41 64 64 72 2c | 20 51 75 65 72 79 4e 75 |rs(Addr,| QueryNu|
|000010a0| 6d 2c 20 50 61 63 6b 65 | 74 4e 75 6d 2c 20 62 46 |m, Packe|tNum, bF|
|000010b0| 69 6e 61 6c 50 61 63 6b | 65 74 29 3b 0d 0a 09 09 |inalPack|et);....|
|000010c0| 65 6c 73 65 0d 0a 09 09 | 09 52 65 73 75 6c 74 20 |else....|.Result |
|000010d0| 3d 20 53 65 6e 64 51 75 | 65 72 79 50 61 63 6b 65 |= SendQu|eryPacke|
|000010e0| 74 28 41 64 64 72 2c 20 | 22 22 2c 20 51 75 65 72 |t(Addr, |"", Quer|
|000010f0| 79 4e 75 6d 2c 20 50 61 | 63 6b 65 74 4e 75 6d 2c |yNum, Pa|cketNum,|
|00001100| 20 62 46 69 6e 61 6c 50 | 61 63 6b 65 74 29 3b 0d | bFinalP|acket);.|
|00001110| 0a 09 7d 0d 0a 09 65 6c | 73 65 20 69 66 28 20 51 |..}...el|se if( Q|
|00001120| 75 65 72 79 54 79 70 65 | 3d 3d 22 73 74 61 74 75 |ueryType|=="statu|
|00001130| 73 22 20 29 0d 0a 09 7b | 0d 0a 09 09 52 65 73 75 |s" )...{|....Resu|
|00001140| 6c 74 20 3d 20 53 65 6e | 64 51 75 65 72 79 50 61 |lt = Sen|dQueryPa|
|00001150| 63 6b 65 74 28 41 64 64 | 72 2c 20 47 65 74 42 61 |cket(Add|r, GetBa|
|00001160| 73 69 63 28 29 2c 20 51 | 75 65 72 79 4e 75 6d 2c |sic(), Q|ueryNum,|
|00001170| 20 50 61 63 6b 65 74 4e | 75 6d 2c 20 30 29 3b 0d | PacketN|um, 0);.|
|00001180| 0a 09 09 52 65 73 75 6c | 74 20 3d 20 53 65 6e 64 |...Resul|t = Send|
|00001190| 51 75 65 72 79 50 61 63 | 6b 65 74 28 41 64 64 72 |QueryPac|ket(Addr|
|000011a0| 2c 20 47 65 74 49 6e 66 | 6f 28 29 2c 20 51 75 65 |, GetInf|o(), Que|
|000011b0| 72 79 4e 75 6d 2c 20 50 | 61 63 6b 65 74 4e 75 6d |ryNum, P|acketNum|
|000011c0| 2c 20 30 29 3b 0d 0a 09 | 09 69 66 28 20 4c 65 76 |, 0);...|.if( Lev|
|000011d0| 65 6c 2e 47 61 6d 65 2e | 4e 75 6d 50 6c 61 79 65 |el.Game.|NumPlaye|
|000011e0| 72 73 20 3d 3d 20 30 20 | 29 0d 0a 09 09 7b 0d 0a |rs == 0 |)....{..|
|000011f0| 09 09 09 52 65 73 75 6c | 74 20 3d 20 53 65 6e 64 |...Resul|t = Send|
|00001200| 51 75 65 72 79 50 61 63 | 6b 65 74 28 41 64 64 72 |QueryPac|ket(Addr|
|00001210| 2c 20 47 65 74 52 75 6c | 65 73 28 29 2c 20 51 75 |, GetRul|es(), Qu|
|00001220| 65 72 79 4e 75 6d 2c 20 | 50 61 63 6b 65 74 4e 75 |eryNum, |PacketNu|
|00001230| 6d 2c 20 62 46 69 6e 61 | 6c 50 61 63 6b 65 74 29 |m, bFina|lPacket)|
|00001240| 3b 0d 0a 09 09 7d 0d 0a | 09 09 65 6c 73 65 0d 0a |;....}..|..else..|
|00001250| 09 09 7b 0d 0a 09 09 09 | 52 65 73 75 6c 74 20 3d |..{.....|Result =|
|00001260| 20 53 65 6e 64 51 75 65 | 72 79 50 61 63 6b 65 74 | SendQue|ryPacket|
|00001270| 28 41 64 64 72 2c 20 47 | 65 74 52 75 6c 65 73 28 |(Addr, G|etRules(|
|00001280| 29 2c 20 51 75 65 72 79 | 4e 75 6d 2c 20 50 61 63 |), Query|Num, Pac|
|00001290| 6b 65 74 4e 75 6d 2c 20 | 30 29 3b 0d 0a 09 09 09 |ketNum, |0);.....|
|000012a0| 52 65 73 75 6c 74 20 3d | 20 53 65 6e 64 50 6c 61 |Result =| SendPla|
|000012b0| 79 65 72 73 28 41 64 64 | 72 2c 20 51 75 65 72 79 |yers(Add|r, Query|
|000012c0| 4e 75 6d 2c 20 50 61 63 | 6b 65 74 4e 75 6d 2c 20 |Num, Pac|ketNum, |
|000012d0| 62 46 69 6e 61 6c 50 61 | 63 6b 65 74 29 3b 0d 0a |bFinalPa|cket);..|
|000012e0| 09 09 7d 0d 0a 09 7d 0d | 0a 09 65 6c 73 65 20 69 |..}...}.|..else i|
|000012f0| 66 28 20 51 75 65 72 79 | 54 79 70 65 3d 3d 22 65 |f( Query|Type=="e|
|00001300| 63 68 6f 22 20 29 0d 0a | 09 7b 0d 0a 09 09 2f 2f |cho" )..|.{....//|
|00001310| 20 52 65 73 70 6f 6e 64 | 20 74 6f 20 61 6e 20 65 | Respond| to an e|
|00001320| 63 68 6f 20 77 69 74 68 | 20 74 68 65 20 73 61 6d |cho with| the sam|
|00001330| 65 20 73 74 72 69 6e 67 | 0d 0a 09 09 52 65 73 75 |e string|....Resu|
|00001340| 6c 74 20 3d 20 53 65 6e | 64 51 75 65 72 79 50 61 |lt = Sen|dQueryPa|
|00001350| 63 6b 65 74 28 41 64 64 | 72 2c 20 22 5c 5c 65 63 |cket(Add|r, "\\ec|
|00001360| 68 6f 5c 5c 22 24 51 75 | 65 72 79 56 61 6c 75 65 |ho\\"$Qu|eryValue|
|00001370| 2c 20 51 75 65 72 79 4e | 75 6d 2c 20 50 61 63 6b |, QueryN|um, Pack|
|00001380| 65 74 4e 75 6d 2c 20 62 | 46 69 6e 61 6c 50 61 63 |etNum, b|FinalPac|
|00001390| 6b 65 74 29 3b 0d 0a 09 | 7d 0d 0a 09 65 6c 73 65 |ket);...|}...else|
|000013a0| 20 69 66 28 20 51 75 65 | 72 79 54 79 70 65 3d 3d | if( Que|ryType==|
|000013b0| 22 73 65 63 75 72 65 22 | 20 29 0d 0a 09 7b 0d 0a |"secure"| )...{..|
|000013c0| 09 09 56 61 6c 69 64 61 | 74 69 6f 6e 53 74 72 69 |..Valida|tionStri|
|000013d0| 6e 67 20 3d 20 22 5c 5c | 76 61 6c 69 64 61 74 65 |ng = "\\|validate|
|000013e0| 5c 5c 22 24 56 61 6c 69 | 64 61 74 65 28 51 75 65 |\\"$Vali|date(Que|
|000013f0| 72 79 56 61 6c 75 65 2c | 20 47 61 6d 65 4e 61 6d |ryValue,| GameNam|
|00001400| 65 29 3b 0d 0a 09 09 52 | 65 73 75 6c 74 20 3d 20 |e);....R|esult = |
|00001410| 53 65 6e 64 51 75 65 72 | 79 50 61 63 6b 65 74 28 |SendQuer|yPacket(|
|00001420| 41 64 64 72 2c 20 56 61 | 6c 69 64 61 74 69 6f 6e |Addr, Va|lidation|
|00001430| 53 74 72 69 6e 67 2c 20 | 51 75 65 72 79 4e 75 6d |String, |QueryNum|
|00001440| 2c 20 50 61 63 6b 65 74 | 4e 75 6d 2c 20 62 46 69 |, Packet|Num, bFi|
|00001450| 6e 61 6c 50 61 63 6b 65 | 74 29 3b 0d 0a 09 7d 0d |nalPacke|t);...}.|
|00001460| 0a 09 65 6c 73 65 20 69 | 66 28 20 51 75 65 72 79 |..else i|f( Query|
|00001470| 54 79 70 65 3d 3d 22 6c | 65 76 65 6c 5f 70 72 6f |Type=="l|evel_pro|
|00001480| 70 65 72 74 79 22 20 29 | 0d 0a 09 7b 0d 0a 09 09 |perty" )|...{....|
|00001490| 52 65 73 75 6c 74 20 3d | 20 53 65 6e 64 51 75 65 |Result =| SendQue|
|000014a0| 72 79 50 61 63 6b 65 74 | 28 41 64 64 72 2c 20 47 |ryPacket|(Addr, G|
|000014b0| 65 74 4c 65 76 65 6c 50 | 72 6f 70 65 72 74 79 28 |etLevelP|roperty(|
|000014c0| 51 75 65 72 79 56 61 6c | 75 65 29 2c 20 51 75 65 |QueryVal|ue), Que|
|000014d0| 72 79 4e 75 6d 2c 20 50 | 61 63 6b 65 74 4e 75 6d |ryNum, P|acketNum|
|000014e0| 2c 20 62 46 69 6e 61 6c | 50 61 63 6b 65 74 29 3b |, bFinal|Packet);|
|000014f0| 0d 0a 09 7d 0d 0a 09 65 | 6c 73 65 20 69 66 28 20 |...}...e|lse if( |
|00001500| 51 75 65 72 79 54 79 70 | 65 3d 3d 22 67 61 6d 65 |QueryTyp|e=="game|
|00001510| 5f 70 72 6f 70 65 72 74 | 79 22 20 29 0d 0a 09 7b |_propert|y" )...{|
|00001520| 0d 0a 09 09 09 52 65 73 | 75 6c 74 20 3d 20 53 65 |.....Res|ult = Se|
|00001530| 6e 64 51 75 65 72 79 50 | 61 63 6b 65 74 28 41 64 |ndQueryP|acket(Ad|
|00001540| 64 72 2c 20 47 65 74 47 | 61 6d 65 50 72 6f 70 65 |dr, GetG|amePrope|
|00001550| 72 74 79 28 51 75 65 72 | 79 56 61 6c 75 65 29 2c |rty(Quer|yValue),|
|00001560| 20 51 75 65 72 79 4e 75 | 6d 2c 20 50 61 63 6b 65 | QueryNu|m, Packe|
|00001570| 74 4e 75 6d 2c 20 62 46 | 69 6e 61 6c 50 61 63 6b |tNum, bF|inalPack|
|00001580| 65 74 29 3b 0d 0a 09 7d | 0d 0a 09 65 6c 73 65 20 |et);...}|...else |
|00001590| 69 66 28 20 51 75 65 72 | 79 54 79 70 65 3d 3d 22 |if( Quer|yType=="|
|000015a0| 70 6c 61 79 65 72 5f 70 | 72 6f 70 65 72 74 79 22 |player_p|roperty"|
|000015b0| 20 29 0d 0a 09 7b 0d 0a | 09 09 52 65 73 75 6c 74 | )...{..|..Result|
|000015c0| 20 3d 20 53 65 6e 64 51 | 75 65 72 79 50 61 63 6b | = SendQ|ueryPack|
|000015d0| 65 74 28 41 64 64 72 2c | 20 47 65 74 50 6c 61 79 |et(Addr,| GetPlay|
|000015e0| 65 72 50 72 6f 70 65 72 | 74 79 28 51 75 65 72 79 |erProper|ty(Query|
|000015f0| 56 61 6c 75 65 29 2c 20 | 51 75 65 72 79 4e 75 6d |Value), |QueryNum|
|00001600| 2c 20 50 61 63 6b 65 74 | 4e 75 6d 2c 20 62 46 69 |, Packet|Num, bFi|
|00001610| 6e 61 6c 50 61 63 6b 65 | 74 29 3b 0d 0a 09 7d 0d |nalPacke|t);...}.|
|00001620| 0a 09 65 6c 73 65 0d 0a | 09 7b 0d 0a 09 09 4c 6f |..else..|.{....Lo|
|00001630| 67 28 22 55 64 70 53 65 | 72 76 65 72 51 75 65 72 |g("UdpSe|rverQuer|
|00001640| 79 3a 20 55 6e 6b 6e 6f | 77 6e 20 71 75 65 72 79 |y: Unkno|wn query|
|00001650| 3a 20 22 24 51 75 65 72 | 79 54 79 70 65 29 3b 0d |: "$Quer|yType);.|
|00001660| 0a 09 7d 0d 0a 09 69 66 | 28 20 21 52 65 73 75 6c |..}...if|( !Resul|
|00001670| 74 20 29 0d 0a 09 09 4c | 6f 67 28 22 55 64 70 53 |t )....L|og("UdpS|
|00001680| 65 72 76 65 72 51 75 65 | 72 79 3a 20 45 72 72 6f |erverQue|ry: Erro|
|00001690| 72 20 72 65 73 70 6f 6e | 64 69 6e 67 20 74 6f 20 |r respon|ding to |
|000016a0| 71 75 65 72 79 2e 22 29 | 3b 0d 0a 09 72 65 74 75 |query.")|;...retu|
|000016b0| 72 6e 20 51 75 65 72 79 | 52 65 73 74 3b 0d 0a 7d |rn Query|Rest;..}|
|000016c0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |....func|tion boo|
|000016d0| 6c 20 53 65 6e 64 41 50 | 61 63 6b 65 74 28 49 70 |l SendAP|acket(Ip|
|000016e0| 41 64 64 72 20 41 64 64 | 72 2c 20 69 6e 74 20 51 |Addr Add|r, int Q|
|000016f0| 75 65 72 79 4e 75 6d 2c | 20 6f 75 74 20 69 6e 74 |ueryNum,| out int|
|00001700| 20 50 61 63 6b 65 74 4e | 75 6d 2c 20 69 6e 74 20 | PacketN|um, int |
|00001710| 62 46 69 6e 61 6c 50 61 | 63 6b 65 74 29 0d 0a 7b |bFinalPa|cket)..{|
|00001720| 0d 0a 09 6c 6f 63 61 6c | 20 62 6f 6f 6c 20 52 65 |...local| bool Re|
|00001730| 73 75 6c 74 3b 0d 0a 0d | 0a 09 52 65 70 6c 79 44 |sult;...|..ReplyD|
|00001740| 61 74 61 20 3d 20 52 65 | 70 6c 79 44 61 74 61 24 |ata = Re|plyData$|
|00001750| 22 5c 5c 71 75 65 72 79 | 69 64 5c 5c 22 24 51 75 |"\\query|id\\"$Qu|
|00001760| 65 72 79 4e 75 6d 24 22 | 2e 22 24 2b 2b 50 61 63 |eryNum$"|."$++Pac|
|00001770| 6b 65 74 4e 75 6d 3b 0d | 0a 09 69 66 20 28 62 46 |ketNum;.|..if (bF|
|00001780| 69 6e 61 6c 50 61 63 6b | 65 74 20 3d 3d 20 31 29 |inalPack|et == 1)|
|00001790| 20 7b 0d 0a 09 09 52 65 | 70 6c 79 44 61 74 61 20 | {....Re|plyData |
|000017a0| 3d 20 52 65 70 6c 79 44 | 61 74 61 20 24 20 22 5c |= ReplyD|ata $ "\|
|000017b0| 5c 66 69 6e 61 6c 5c 5c | 22 3b 0d 0a 09 7d 0d 0a |\final\\|";...}..|
|000017c0| 09 52 65 73 75 6c 74 20 | 3d 20 53 65 6e 64 54 65 |.Result |= SendTe|
|000017d0| 78 74 28 41 64 64 72 2c | 20 52 65 70 6c 79 44 61 |xt(Addr,| ReplyDa|
|000017e0| 74 61 29 3b 0d 0a 09 52 | 65 70 6c 79 44 61 74 61 |ta);...R|eplyData|
|000017f0| 20 3d 20 22 22 3b 0d 0a | 09 0d 0a 09 72 65 74 75 | = "";..|....retu|
|00001800| 72 6e 20 52 65 73 75 6c | 74 3b 0d 0a 0d 0a 7d 0d |rn Resul|t;....}.|
|00001810| 0a 0d 0a 2f 2f 20 53 65 | 6e 64 51 75 65 72 79 50 |...// Se|ndQueryP|
|00001820| 61 63 6b 65 74 20 69 73 | 20 61 20 77 72 61 70 70 |acket is| a wrapp|
|00001830| 65 72 20 66 6f 72 20 53 | 65 6e 64 54 65 78 74 20 |er for S|endText |
|00001840| 74 68 61 74 20 61 6c 6c | 6f 77 73 20 66 6f 72 20 |that all|ows for |
|00001850| 70 61 63 6b 65 74 20 6e | 75 6d 62 65 72 69 6e 67 |packet n|umbering|
|00001860| 2e 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 62 6f 6f 6c |...funct|ion bool|
|00001870| 20 53 65 6e 64 51 75 65 | 72 79 50 61 63 6b 65 74 | SendQue|ryPacket|
|00001880| 28 49 70 41 64 64 72 20 | 41 64 64 72 2c 20 63 6f |(IpAddr |Addr, co|
|00001890| 65 72 63 65 20 73 74 72 | 69 6e 67 20 53 65 6e 64 |erce str|ing Send|
|000018a0| 53 74 72 69 6e 67 2c 20 | 69 6e 74 20 51 75 65 72 |String, |int Quer|
|000018b0| 79 4e 75 6d 2c 20 6f 75 | 74 20 69 6e 74 20 50 61 |yNum, ou|t int Pa|
|000018c0| 63 6b 65 74 4e 75 6d 2c | 20 69 6e 74 20 62 46 69 |cketNum,| int bFi|
|000018d0| 6e 61 6c 50 61 63 6b 65 | 74 29 0d 0a 7b 0d 0a 09 |nalPacke|t)..{...|
|000018e0| 6c 6f 63 61 6c 20 62 6f | 6f 6c 20 52 65 73 75 6c |local bo|ol Resul|
|000018f0| 74 3b 0d 0a 09 0d 0a 09 | 2f 2f 4c 6f 67 28 22 53 |t;......|//Log("S|
|00001900| 65 6e 64 20 51 75 65 72 | 79 3a 20 22 20 20 24 20 |end Quer|y: " $ |
|00001910| 51 75 65 72 79 4e 75 6d | 20 24 20 22 2e 22 20 24 |QueryNum| $ "." $|
|00001920| 20 50 61 63 6b 65 74 4e | 75 6d 20 24 20 22 3a 22 | PacketN|um $ ":"|
|00001930| 20 24 20 62 46 69 6e 61 | 6c 50 61 63 6b 65 74 29 | $ bFina|lPacket)|
|00001940| 3b 0d 0a 09 72 65 73 75 | 6c 74 20 3d 20 74 72 75 |;...resu|lt = tru|
|00001950| 65 3b 0d 0a 09 69 66 20 | 28 6c 65 6e 28 52 65 70 |e;...if |(len(Rep|
|00001960| 6c 79 44 61 74 61 29 20 | 2b 20 6c 65 6e 28 53 65 |lyData) |+ len(Se|
|00001970| 6e 64 53 74 72 69 6e 67 | 29 20 3e 20 31 30 30 30 |ndString|) > 1000|
|00001980| 29 0d 0a 09 09 72 65 73 | 75 6c 74 20 3d 20 53 65 |)....res|ult = Se|
|00001990| 6e 64 41 50 61 63 6b 65 | 74 28 41 64 64 72 2c 20 |ndAPacke|t(Addr, |
|000019a0| 51 75 65 72 79 4e 75 6d | 2c 20 50 61 63 6b 65 74 |QueryNum|, Packet|
|000019b0| 4e 75 6d 2c 20 30 29 3b | 0d 0a 09 0d 0a 09 52 65 |Num, 0);|......Re|
|000019c0| 70 6c 79 44 61 74 61 20 | 3d 20 52 65 70 6c 79 44 |plyData |= ReplyD|
|000019d0| 61 74 61 20 24 20 53 65 | 6e 64 53 74 72 69 6e 67 |ata $ Se|ndString|
|000019e0| 3b 0d 0a 09 0d 0a 09 69 | 66 20 28 62 46 69 6e 61 |;......i|f (bFina|
|000019f0| 6c 50 61 63 6b 65 74 20 | 3d 3d 20 31 29 0d 0a 09 |lPacket |== 1)...|
|00001a00| 09 72 65 73 75 6c 74 20 | 3d 20 53 65 6e 64 41 50 |.result |= SendAP|
|00001a10| 61 63 6b 65 74 28 41 64 | 64 72 2c 20 51 75 65 72 |acket(Ad|dr, Quer|
|00001a20| 79 4e 75 6d 2c 20 50 61 | 63 6b 65 74 4e 75 6d 2c |yNum, Pa|cketNum,|
|00001a30| 20 62 46 69 6e 61 6c 50 | 61 63 6b 65 74 29 3b 0d | bFinalP|acket);.|
|00001a40| 0a 09 09 0d 0a 09 72 65 | 74 75 72 6e 20 52 65 73 |......re|turn Res|
|00001a50| 75 6c 74 3b 0d 0a 7d 0d | 0a 0d 0a 2f 2f 20 52 65 |ult;..}.|...// Re|
|00001a60| 74 75 72 6e 20 61 20 73 | 74 72 69 6e 67 20 6f 66 |turn a s|tring of|
|00001a70| 20 62 61 73 69 63 20 69 | 6e 66 6f 72 6d 61 74 69 | basic i|nformati|
|00001a80| 6f 6e 2e 0d 0a 66 75 6e | 63 74 69 6f 6e 20 73 74 |on...fun|ction st|
|00001a90| 72 69 6e 67 20 47 65 74 | 42 61 73 69 63 28 29 20 |ring Get|Basic() |
|00001aa0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 73 74 72 69 6e 67 |{...loca|l string|
|00001ab0| 20 52 65 73 75 6c 74 53 | 65 74 3b 0d 0a 0d 0a 09 | ResultS|et;.....|
|00001ac0| 2f 2f 20 54 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |// The n|ame of t|
|00001ad0| 68 69 73 20 67 61 6d 65 | 2e 0d 0a 09 52 65 73 75 |his game|....Resu|
|00001ae0| 6c 74 53 65 74 20 3d 20 | 22 5c 5c 67 61 6d 65 6e |ltSet = |"\\gamen|
|00001af0| 61 6d 65 5c 5c 22 24 47 | 61 6d 65 4e 61 6d 65 3b |ame\\"$G|ameName;|
|00001b00| 0d 0a 0d 0a 09 2f 2f 20 | 54 68 65 20 76 65 72 73 |.....// |The vers|
|00001b10| 69 6f 6e 20 6f 66 20 74 | 68 69 73 20 67 61 6d 65 |ion of t|his game|
|00001b20| 2e 0d 0a 09 52 65 73 75 | 6c 74 53 65 74 20 3d 20 |....Resu|ltSet = |
|00001b30| 52 65 73 75 6c 74 53 65 | 74 24 22 5c 5c 67 61 6d |ResultSe|t$"\\gam|
|00001b40| 65 76 65 72 5c 5c 22 24 | 4c 65 76 65 6c 2e 45 6e |ever\\"$|Level.En|
|00001b50| 67 69 6e 65 56 65 72 73 | 69 6f 6e 3b 0d 0a 0d 0a |gineVers|ion;....|
|00001b60| 09 2f 2f 20 54 68 65 20 | 6d 6f 73 74 20 72 65 63 |.// The |most rec|
|00001b70| 65 6e 74 20 6e 65 74 77 | 6f 72 6b 20 63 6f 6d 70 |ent netw|ork comp|
|00001b80| 61 74 69 62 6c 65 20 76 | 65 72 73 69 6f 6e 2e 0d |atible v|ersion..|
|00001b90| 0a 09 52 65 73 75 6c 74 | 53 65 74 20 3d 20 52 65 |..Result|Set = Re|
|00001ba0| 73 75 6c 74 53 65 74 24 | 22 5c 5c 6d 69 6e 6e 65 |sultSet$|"\\minne|
|00001bb0| 74 76 65 72 5c 5c 22 24 | 4c 65 76 65 6c 2e 4d 69 |tver\\"$|Level.Mi|
|00001bc0| 6e 4e 65 74 56 65 72 73 | 69 6f 6e 3b 0d 0a 0d 0a |nNetVers|ion;....|
|00001bd0| 09 2f 2f 20 54 68 65 20 | 72 65 67 69 6f 6e 61 6c |.// The |regional|
|00001be0| 20 6c 6f 63 61 74 69 6f | 6e 20 6f 66 20 74 68 69 | locatio|n of thi|
|00001bf0| 73 20 67 61 6d 65 2e 0d | 0a 09 52 65 73 75 6c 74 |s game..|..Result|
|00001c00| 53 65 74 20 3d 20 52 65 | 73 75 6c 74 53 65 74 24 |Set = Re|sultSet$|
|00001c10| 22 5c 5c 6c 6f 63 61 74 | 69 6f 6e 5c 5c 22 24 4c |"\\locat|ion\\"$L|
|00001c20| 65 76 65 6c 2e 47 61 6d | 65 2e 47 61 6d 65 52 65 |evel.Gam|e.GameRe|
|00001c30| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 52 65 |plicatio|nInfo.Re|
|00001c40| 67 69 6f 6e 3b 0d 0a 09 | 0d 0a 09 72 65 74 75 72 |gion;...|...retur|
|00001c50| 6e 20 52 65 73 75 6c 74 | 53 65 74 3b 0d 0a 7d 0d |n Result|Set;..}.|
|00001c60| 0a 0d 0a 2f 2f 20 52 65 | 74 75 72 6e 20 61 20 73 |...// Re|turn a s|
|00001c70| 74 72 69 6e 67 20 6f 66 | 20 69 6d 70 6f 72 74 61 |tring of| importa|
|00001c80| 6e 74 20 73 79 73 74 65 | 6d 20 69 6e 66 6f 72 6d |nt syste|m inform|
|00001c90| 61 74 69 6f 6e 2e 0d 0a | 66 75 6e 63 74 69 6f 6e |ation...|function|
|00001ca0| 20 73 74 72 69 6e 67 20 | 47 65 74 49 6e 66 6f 28 | string |GetInfo(|
|00001cb0| 29 20 7b 0d 0a 09 6c 6f | 63 61 6c 20 73 74 72 69 |) {...lo|cal stri|
|00001cc0| 6e 67 20 52 65 73 75 6c | 74 53 65 74 3b 0d 0a 0d |ng Resul|tSet;...|
|00001cd0| 0a 09 2f 2f 20 54 68 65 | 20 73 65 72 76 65 72 20 |..// The| server |
|00001ce0| 6e 61 6d 65 2c 20 69 2e | 65 2e 3a 20 42 6f 62 27 |name, i.|e.: Bob'|
|00001cf0| 73 20 53 65 72 76 65 72 | 0d 0a 09 52 65 73 75 6c |s Server|...Resul|
|00001d00| 74 53 65 74 20 3d 20 22 | 5c 5c 68 6f 73 74 6e 61 |tSet = "|\\hostna|
|00001d10| 6d 65 5c 5c 22 24 4c 65 | 76 65 6c 2e 47 61 6d 65 |me\\"$Le|vel.Game|
|00001d20| 2e 47 61 6d 65 52 65 70 | 6c 69 63 61 74 69 6f 6e |.GameRep|lication|
|00001d30| 49 6e 66 6f 2e 53 65 72 | 76 65 72 4e 61 6d 65 3b |Info.Ser|verName;|
|00001d40| 0d 0a 0d 0a 09 2f 2f 20 | 54 68 65 20 73 68 6f 72 |.....// |The shor|
|00001d50| 74 20 73 65 72 76 65 72 | 20 6e 61 6d 65 0d 0a 09 |t server| name...|
|00001d60| 2f 2f 52 65 73 75 6c 74 | 53 65 74 20 3d 20 52 65 |//Result|Set = Re|
|00001d70| 73 75 6c 74 53 65 74 24 | 22 5c 5c 73 68 6f 72 74 |sultSet$|"\\short|
|00001d80| 6e 61 6d 65 5c 5c 22 24 | 4c 65 76 65 6c 2e 47 61 |name\\"$|Level.Ga|
|00001d90| 6d 65 2e 47 61 6d 65 52 | 65 70 6c 69 63 61 74 69 |me.GameR|eplicati|
|00001da0| 6f 6e 49 6e 66 6f 2e 53 | 68 6f 72 74 4e 61 6d 65 |onInfo.S|hortName|
|00001db0| 3b 0d 0a 0d 0a 09 2f 2f | 20 54 68 65 20 73 65 72 |;.....//| The ser|
|00001dc0| 76 65 72 20 70 6f 72 74 | 2e 0d 0a 09 52 65 73 75 |ver port|....Resu|
|00001dd0| 6c 74 53 65 74 20 3d 20 | 52 65 73 75 6c 74 53 65 |ltSet = |ResultSe|
|00001de0| 74 24 22 5c 5c 68 6f 73 | 74 70 6f 72 74 5c 5c 22 |t$"\\hos|tport\\"|
|00001df0| 24 4c 65 76 65 6c 2e 47 | 61 6d 65 2e 47 65 74 53 |$Level.G|ame.GetS|
|00001e00| 65 72 76 65 72 50 6f 72 | 74 28 29 3b 0d 0a 0d 0a |erverPor|t();....|
|00001e10| 09 2f 2f 20 28 6f 70 74 | 69 6f 6e 61 6c 29 20 54 |.// (opt|ional) T|
|00001e20| 68 65 20 73 65 72 76 65 | 72 20 49 50 0d 0a 09 2f |he serve|r IP.../|
|00001e30| 2f 20 69 66 20 28 53 65 | 72 76 65 72 49 50 20 21 |/ if (Se|rverIP !|
|00001e40| 3d 20 22 22 29 0d 0a 09 | 2f 2f 09 52 65 73 75 6c |= "")...|//.Resul|
|00001e50| 74 53 65 74 20 3d 20 52 | 65 73 75 6c 74 53 65 74 |tSet = R|esultSet|
|00001e60| 24 22 5c 5c 68 6f 73 74 | 69 70 5c 5c 22 24 53 65 |$"\\host|ip\\"$Se|
|00001e70| 72 76 65 72 49 50 3b 0d | 0a 0d 0a 09 2f 2f 20 54 |rverIP;.|....// T|
|00001e80| 68 65 20 6d 61 70 2f 6c | 65 76 65 6c 20 74 69 74 |he map/l|evel tit|
|00001e90| 6c 65 0d 0a 09 52 65 73 | 75 6c 74 53 65 74 20 3d |le...Res|ultSet =|
|00001ea0| 20 52 65 73 75 6c 74 53 | 65 74 24 22 5c 5c 6d 61 | ResultS|et$"\\ma|
|00001eb0| 70 74 69 74 6c 65 5c 5c | 22 24 4c 65 76 65 6c 2e |ptitle\\|"$Level.|
|00001ec0| 54 69 74 6c 65 3b 0d 0a | 09 0d 0a 09 2f 2f 20 4d |Title;..|....// M|
|00001ed0| 61 70 20 6e 61 6d 65 0d | 0a 09 52 65 73 75 6c 74 |ap name.|..Result|
|00001ee0| 53 65 74 20 3d 20 52 65 | 73 75 6c 74 53 65 74 24 |Set = Re|sultSet$|
|00001ef0| 22 5c 5c 6d 61 70 6e 61 | 6d 65 5c 5c 22 24 4c 65 |"\\mapna|me\\"$Le|
|00001f00| 66 74 28 73 74 72 69 6e | 67 28 4c 65 76 65 6c 29 |ft(strin|g(Level)|
|00001f10| 2c 20 49 6e 53 74 72 28 | 73 74 72 69 6e 67 28 4c |, InStr(|string(L|
|00001f20| 65 76 65 6c 29 2c 20 22 | 2e 22 29 29 3b 0d 0a 0d |evel), "|."));...|
|00001f30| 0a 09 2f 2f 20 54 68 65 | 20 6d 6f 64 20 6f 72 20 |..// The| mod or |
|00001f40| 67 61 6d 65 20 74 79 70 | 65 0d 0a 09 52 65 73 75 |game typ|e...Resu|
|00001f50| 6c 74 53 65 74 20 3d 20 | 52 65 73 75 6c 74 53 65 |ltSet = |ResultSe|
|00001f60| 74 24 22 5c 5c 67 61 6d | 65 74 79 70 65 5c 5c 22 |t$"\\gam|etype\\"|
|00001f70| 24 47 65 74 49 74 65 6d | 4e 61 6d 65 28 73 74 72 |$GetItem|Name(str|
|00001f80| 69 6e 67 28 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 43 |ing(Leve|l.Game.C|
|00001f90| 6c 61 73 73 29 29 3b 0d | 0a 0d 0a 09 2f 2f 20 54 |lass));.|....// T|
|00001fa0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 70 6c 61 |he numbe|r of pla|
|00001fb0| 79 65 72 73 0d 0a 09 52 | 65 73 75 6c 74 53 65 74 |yers...R|esultSet|
|00001fc0| 20 3d 20 52 65 73 75 6c | 74 53 65 74 24 22 5c 5c | = Resul|tSet$"\\|
|00001fd0| 6e 75 6d 70 6c 61 79 65 | 72 73 5c 5c 22 24 4c 65 |numplaye|rs\\"$Le|
|00001fe0| 76 65 6c 2e 47 61 6d 65 | 2e 4e 75 6d 50 6c 61 79 |vel.Game|.NumPlay|
|00001ff0| 65 72 73 3b 0d 0a 0d 0a | 09 2f 2f 20 54 68 65 20 |ers;....|.// The |
|00002000| 6d 61 78 69 6d 75 6d 20 | 6e 75 6d 62 65 72 20 6f |maximum |number o|
|00002010| 66 20 70 6c 61 79 65 72 | 73 0d 0a 09 52 65 73 75 |f player|s...Resu|
|00002020| 6c 74 53 65 74 20 3d 20 | 52 65 73 75 6c 74 53 65 |ltSet = |ResultSe|
|00002030| 74 24 22 5c 5c 6d 61 78 | 70 6c 61 79 65 72 73 5c |t$"\\max|players\|
|00002040| 5c 22 24 4c 65 76 65 6c | 2e 47 61 6d 65 2e 4d 61 |\"$Level|.Game.Ma|
|00002050| 78 50 6c 61 79 65 72 73 | 3b 0d 0a 0d 0a 09 2f 2f |xPlayers|;.....//|
|00002060| 20 54 68 65 20 67 61 6d | 65 20 6d 6f 64 65 3a 20 | The gam|e mode: |
|00002070| 6f 70 65 6e 70 6c 61 79 | 69 6e 67 0d 0a 09 52 65 |openplay|ing...Re|
|00002080| 73 75 6c 74 53 65 74 20 | 3d 20 52 65 73 75 6c 74 |sultSet |= Result|
|00002090| 53 65 74 24 22 5c 5c 67 | 61 6d 65 6d 6f 64 65 5c |Set$"\\g|amemode\|
|000020a0| 5c 6f 70 65 6e 70 6c 61 | 79 69 6e 67 22 3b 0d 0a |\openpla|ying";..|
|000020b0| 0d 0a 09 2f 2f 20 54 68 | 65 20 76 65 72 73 69 6f |...// Th|e versio|
|000020c0| 6e 20 6f 66 20 74 68 69 | 73 20 67 61 6d 65 2e 0d |n of thi|s game..|
|000020d0| 0a 09 52 65 73 75 6c 74 | 53 65 74 20 3d 20 52 65 |..Result|Set = Re|
|000020e0| 73 75 6c 74 53 65 74 24 | 22 5c 5c 67 61 6d 65 76 |sultSet$|"\\gamev|
|000020f0| 65 72 5c 5c 22 24 4c 65 | 76 65 6c 2e 45 6e 67 69 |er\\"$Le|vel.Engi|
|00002100| 6e 65 56 65 72 73 69 6f | 6e 3b 0d 0a 0d 0a 09 2f |neVersio|n;...../|
|00002110| 2f 20 54 68 65 20 6d 6f | 73 74 20 72 65 63 65 6e |/ The mo|st recen|
|00002120| 74 20 6e 65 74 77 6f 72 | 6b 20 63 6f 6d 70 61 74 |t networ|k compat|
|00002130| 69 62 6c 65 20 76 65 72 | 73 69 6f 6e 2e 0d 0a 09 |ible ver|sion....|
|00002140| 52 65 73 75 6c 74 53 65 | 74 20 3d 20 52 65 73 75 |ResultSe|t = Resu|
|00002150| 6c 74 53 65 74 24 22 5c | 5c 6d 69 6e 6e 65 74 76 |ltSet$"\|\minnetv|
|00002160| 65 72 5c 5c 22 24 4c 65 | 76 65 6c 2e 4d 69 6e 4e |er\\"$Le|vel.MinN|
|00002170| 65 74 56 65 72 73 69 6f | 6e 3b 0d 0a 0d 0a 09 52 |etVersio|n;.....R|
|00002180| 65 73 75 6c 74 53 65 74 | 20 3d 20 52 65 73 75 6c |esultSet| = Resul|
|00002190| 74 53 65 74 24 4c 65 76 | 65 6c 2e 47 61 6d 65 2e |tSet$Lev|el.Game.|
|000021a0| 47 65 74 49 6e 66 6f 28 | 29 3b 0d 0a 0d 0a 09 72 |GetInfo(|);.....r|
|000021b0| 65 74 75 72 6e 20 52 65 | 73 75 6c 74 53 65 74 3b |eturn Re|sultSet;|
|000021c0| 0d 0a 7d 0d 0a 0d 0a 2f | 2f 20 52 65 74 75 72 6e |..}..../|/ Return|
|000021d0| 20 61 20 73 74 72 69 6e | 67 20 6f 66 20 6d 69 73 | a strin|g of mis|
|000021e0| 63 65 6c 6c 61 6e 65 6f | 75 73 20 69 6e 66 6f 72 |cellaneo|us infor|
|000021f0| 6d 61 74 69 6f 6e 2e 0d | 0a 2f 2f 20 47 61 6d 65 |mation..|.// Game|
|00002200| 20 73 70 65 63 69 66 69 | 63 20 69 6e 66 6f 72 6d | specifi|c inform|
|00002210| 61 74 69 6f 6e 2c 20 75 | 73 65 72 20 64 65 66 69 |ation, u|ser defi|
|00002220| 6e 65 64 20 64 61 74 61 | 2c 20 63 75 73 74 6f 6d |ned data|, custom|
|00002230| 20 70 61 72 61 6d 65 74 | 65 72 73 20 66 6f 72 20 | paramet|ers for |
|00002240| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |the comm|and line|
|00002250| 2e 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 73 74 72 69 |...funct|ion stri|
|00002260| 6e 67 20 47 65 74 52 75 | 6c 65 73 28 29 0d 0a 7b |ng GetRu|les()..{|
|00002270| 0d 0a 09 6c 6f 63 61 6c | 20 73 74 72 69 6e 67 20 |...local| string |
|00002280| 52 65 73 75 6c 74 53 65 | 74 3b 0d 0a 0d 0a 09 52 |ResultSe|t;.....R|
|00002290| 65 73 75 6c 74 53 65 74 | 20 3d 20 4c 65 76 65 6c |esultSet| = Level|
|000022a0| 2e 47 61 6d 65 2e 47 65 | 74 52 75 6c 65 73 28 29 |.Game.Ge|tRules()|
|000022b0| 3b 0d 0a 0d 0a 09 2f 2f | 20 41 64 6d 69 6e 27 73 |;.....//| Admin's|
|000022c0| 20 4e 61 6d 65 0d 0a 09 | 69 66 28 20 4c 65 76 65 | Name...|if( Leve|
|000022d0| 6c 2e 47 61 6d 65 2e 47 | 61 6d 65 52 65 70 6c 69 |l.Game.G|ameRepli|
|000022e0| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 41 64 6d 69 6e |cationIn|fo.Admin|
|000022f0| 4e 61 6d 65 20 21 3d 20 | 22 22 20 29 0d 0a 09 09 |Name != |"" )....|
|00002300| 52 65 73 75 6c 74 53 65 | 74 20 3d 20 52 65 73 75 |ResultSe|t = Resu|
|00002310| 6c 74 53 65 74 24 22 5c | 5c 41 64 6d 69 6e 4e 61 |ltSet$"\|\AdminNa|
|00002320| 6d 65 5c 5c 22 24 4c 65 | 76 65 6c 2e 47 61 6d 65 |me\\"$Le|vel.Game|
|00002330| 2e 47 61 6d 65 52 65 70 | 6c 69 63 61 74 69 6f 6e |.GameRep|lication|
|00002340| 49 6e 66 6f 2e 41 64 6d | 69 6e 4e 61 6d 65 3b 0d |Info.Adm|inName;.|
|00002350| 0a 09 0d 0a 09 2f 2f 20 | 41 64 6d 69 6e 27 73 20 |.....// |Admin's |
|00002360| 45 6d 61 69 6c 0d 0a 09 | 69 66 28 20 4c 65 76 65 |Email...|if( Leve|
|00002370| 6c 2e 47 61 6d 65 2e 47 | 61 6d 65 52 65 70 6c 69 |l.Game.G|ameRepli|
|00002380| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 41 64 6d 69 6e |cationIn|fo.Admin|
|00002390| 45 6d 61 69 6c 20 21 3d | 20 22 22 20 29 0d 0a 09 |Email !=| "" )...|
|000023a0| 09 52 65 73 75 6c 74 53 | 65 74 20 3d 20 52 65 73 |.ResultS|et = Res|
|000023b0| 75 6c 74 53 65 74 24 22 | 5c 5c 41 64 6d 69 6e 45 |ultSet$"|\\AdminE|
|000023c0| 4d 61 69 6c 5c 5c 22 24 | 4c 65 76 65 6c 2e 47 61 |Mail\\"$|Level.Ga|
|000023d0| 6d 65 2e 47 61 6d 65 52 | 65 70 6c 69 63 61 74 69 |me.GameR|eplicati|
|000023e0| 6f 6e 49 6e 66 6f 2e 41 | 64 6d 69 6e 45 6d 61 69 |onInfo.A|dminEmai|
|000023f0| 6c 3b 0d 0a 0d 0a 09 72 | 65 74 75 72 6e 20 52 65 |l;.....r|eturn Re|
|00002400| 73 75 6c 74 53 65 74 3b | 0d 0a 7d 0d 0a 0d 0a 2f |sultSet;|..}..../|
|00002410| 2f 20 52 65 74 75 72 6e | 20 61 20 73 74 72 69 6e |/ Return| a strin|
|00002420| 67 20 6f 66 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |g of inf|ormation|
|00002430| 20 6f 6e 20 61 20 70 6c | 61 79 65 72 2e 0d 0a 66 | on a pl|ayer...f|
|00002440| 75 6e 63 74 69 6f 6e 20 | 73 74 72 69 6e 67 20 47 |unction |string G|
|00002450| 65 74 50 6c 61 79 65 72 | 28 20 50 6c 61 79 65 72 |etPlayer|( Player|
|00002460| 50 61 77 6e 20 50 2c 20 | 69 6e 74 20 50 6c 61 79 |Pawn P, |int Play|
|00002470| 65 72 4e 75 6d 20 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |erNum ).|.{...loc|
|00002480| 61 6c 20 73 74 72 69 6e | 67 20 52 65 73 75 6c 74 |al strin|g Result|
|00002490| 53 65 74 3b 0d 0a 09 6c | 6f 63 61 6c 20 73 74 72 |Set;...l|ocal str|
|000024a0| 69 6e 67 20 53 6b 69 6e | 4e 61 6d 65 2c 20 46 61 |ing Skin|Name, Fa|
|000024b0| 63 65 4e 61 6d 65 3b 0d | 0a 0d 0a 09 2f 2f 20 4e |ceName;.|....// N|
|000024c0| 61 6d 65 0d 0a 09 52 65 | 73 75 6c 74 53 65 74 20 |ame...Re|sultSet |
|000024d0| 3d 20 22 5c 5c 70 6c 61 | 79 65 72 5f 22 24 50 6c |= "\\pla|yer_"$Pl|
|000024e0| 61 79 65 72 4e 75 6d 24 | 22 5c 5c 22 24 50 2e 50 |ayerNum$|"\\"$P.P|
|000024f0| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00002500| 49 6e 66 6f 2e 50 6c 61 | 79 65 72 4e 61 6d 65 3b |Info.Pla|yerName;|
|00002510| 0d 0a 0d 0a 09 2f 2f 20 | 46 72 61 67 73 0d 0a 09 |.....// |Frags...|
|00002520| 52 65 73 75 6c 74 53 65 | 74 20 3d 20 52 65 73 75 |ResultSe|t = Resu|
|00002530| 6c 74 53 65 74 24 22 5c | 5c 66 72 61 67 73 5f 22 |ltSet$"\|\frags_"|
|00002540| 24 50 6c 61 79 65 72 4e | 75 6d 24 22 5c 5c 22 24 |$PlayerN|um$"\\"$|
|00002550| 69 6e 74 28 50 2e 50 6c | 61 79 65 72 52 65 70 6c |int(P.Pl|ayerRepl|
|00002560| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 53 63 6f 72 |icationI|nfo.Scor|
|00002570| 65 29 3b 0d 0a 0d 0a 09 | 2f 2f 20 50 69 6e 67 0d |e);.....|// Ping.|
|00002580| 0a 09 52 65 73 75 6c 74 | 53 65 74 20 3d 20 52 65 |..Result|Set = Re|
|00002590| 73 75 6c 74 53 65 74 24 | 22 5c 5c 70 69 6e 67 5f |sultSet$|"\\ping_|
|000025a0| 22 24 50 6c 61 79 65 72 | 4e 75 6d 24 22 5c 5c 22 |"$Player|Num$"\\"|
|000025b0| 24 50 2e 43 6f 6e 73 6f | 6c 65 43 6f 6d 6d 61 6e |$P.Conso|leComman|
|000025c0| 64 28 22 47 45 54 50 49 | 4e 47 22 29 3b 0d 0a 0d |d("GETPI|NG");...|
|000025d0| 0a 09 2f 2f 20 54 65 61 | 6d 0d 0a 09 52 65 73 75 |..// Tea|m...Resu|
|000025e0| 6c 74 53 65 74 20 3d 20 | 52 65 73 75 6c 74 53 65 |ltSet = |ResultSe|
|000025f0| 74 24 22 5c 5c 74 65 61 | 6d 5f 22 24 50 6c 61 79 |t$"\\tea|m_"$Play|
|00002600| 65 72 4e 75 6d 24 22 5c | 5c 22 24 50 2e 50 6c 61 |erNum$"\|\"$P.Pla|
|00002610| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00002620| 66 6f 2e 54 65 61 6d 3b | 0d 0a 0d 0a 09 2f 2f 20 |fo.Team;|.....// |
|00002630| 43 6c 61 73 73 0d 0a 09 | 52 65 73 75 6c 74 53 65 |Class...|ResultSe|
|00002640| 74 20 3d 20 52 65 73 75 | 6c 74 53 65 74 24 22 5c |t = Resu|ltSet$"\|
|00002650| 5c 6d 65 73 68 5f 22 24 | 50 6c 61 79 65 72 4e 75 |\mesh_"$|PlayerNu|
|00002660| 6d 24 22 5c 5c 22 24 50 | 2e 4d 65 6e 75 6e 61 6d |m$"\\"$P|.Menunam|
|00002670| 65 3b 0d 0a 0d 0a 09 2f | 2f 20 53 6b 69 6e 0d 0a |e;...../|/ Skin..|
|00002680| 09 69 66 28 50 2e 53 6b | 69 6e 20 3d 3d 20 4e 6f |.if(P.Sk|in == No|
|00002690| 6e 65 29 0d 0a 09 7b 0d | 0a 09 09 50 2e 73 74 61 |ne)...{.|...P.sta|
|000026a0| 74 69 63 2e 47 65 74 4d | 75 6c 74 69 53 6b 69 6e |tic.GetM|ultiSkin|
|000026b0| 28 50 2c 20 53 6b 69 6e | 4e 61 6d 65 2c 20 46 61 |(P, Skin|Name, Fa|
|000026c0| 63 65 4e 61 6d 65 29 3b | 0d 0a 09 09 52 65 73 75 |ceName);|....Resu|
|000026d0| 6c 74 53 65 74 20 3d 20 | 52 65 73 75 6c 74 53 65 |ltSet = |ResultSe|
|000026e0| 74 24 22 5c 5c 73 6b 69 | 6e 5f 22 24 50 6c 61 79 |t$"\\ski|n_"$Play|
|000026f0| 65 72 4e 75 6d 24 22 5c | 5c 22 24 53 6b 69 6e 4e |erNum$"\|\"$SkinN|
|00002700| 61 6d 65 3b 0d 0a 09 09 | 52 65 73 75 6c 74 53 65 |ame;....|ResultSe|
|00002710| 74 20 3d 20 52 65 73 75 | 6c 74 53 65 74 24 22 5c |t = Resu|ltSet$"\|
|00002720| 5c 66 61 63 65 5f 22 24 | 50 6c 61 79 65 72 4e 75 |\face_"$|PlayerNu|
|00002730| 6d 24 22 5c 5c 22 24 46 | 61 63 65 4e 61 6d 65 3b |m$"\\"$F|aceName;|
|00002740| 0d 0a 09 7d 0d 0a 09 65 | 6c 73 65 0d 0a 09 7b 0d |...}...e|lse...{.|
|00002750| 0a 09 09 52 65 73 75 6c | 74 53 65 74 20 3d 20 52 |...Resul|tSet = R|
|00002760| 65 73 75 6c 74 53 65 74 | 24 22 5c 5c 73 6b 69 6e |esultSet|$"\\skin|
|00002770| 5f 22 24 50 6c 61 79 65 | 72 4e 75 6d 24 22 5c 5c |_"$Playe|rNum$"\\|
|00002780| 22 24 73 74 72 69 6e 67 | 28 50 2e 53 6b 69 6e 29 |"$string|(P.Skin)|
|00002790| 3b 0d 0a 09 09 52 65 73 | 75 6c 74 53 65 74 20 3d |;....Res|ultSet =|
|000027a0| 20 52 65 73 75 6c 74 53 | 65 74 24 22 5c 5c 66 61 | ResultS|et$"\\fa|
|000027b0| 63 65 5f 22 24 50 6c 61 | 79 65 72 4e 75 6d 24 22 |ce_"$Pla|yerNum$"|
|000027c0| 5c 5c 4e 6f 6e 65 22 3b | 0d 0a 09 7d 0d 0a 0d 0a |\\None";|...}....|
|000027d0| 09 72 65 74 75 72 6e 20 | 52 65 73 75 6c 74 53 65 |.return |ResultSe|
|000027e0| 74 3b 0d 0a 7d 0d 0a 0d | 0a 2f 2f 20 53 65 6e 64 |t;..}...|.// Send|
|000027f0| 20 64 61 74 61 20 66 6f | 72 20 65 61 63 68 20 70 | data fo|r each p|
|00002800| 6c 61 79 65 72 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |layer..f|unction |
|00002810| 62 6f 6f 6c 20 53 65 6e | 64 50 6c 61 79 65 72 73 |bool Sen|dPlayers|
|00002820| 28 49 70 41 64 64 72 20 | 41 64 64 72 2c 20 69 6e |(IpAddr |Addr, in|
|00002830| 74 20 51 75 65 72 79 4e | 75 6d 2c 20 6f 75 74 20 |t QueryN|um, out |
|00002840| 69 6e 74 20 50 61 63 6b | 65 74 4e 75 6d 2c 20 69 |int Pack|etNum, i|
|00002850| 6e 74 20 62 46 69 6e 61 | 6c 50 61 63 6b 65 74 29 |nt bFina|lPacket)|
|00002860| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 50 61 77 6e |..{...lo|cal Pawn|
|00002870| 20 50 3b 0d 0a 09 6c 6f | 63 61 6c 20 69 6e 74 20 | P;...lo|cal int |
|00002880| 69 3b 0d 0a 09 6c 6f 63 | 61 6c 20 62 6f 6f 6c 20 |i;...loc|al bool |
|00002890| 52 65 73 75 6c 74 2c 20 | 53 65 6e 64 52 65 73 75 |Result, |SendResu|
|000028a0| 6c 74 3b 0d 0a 09 0d 0a | 09 52 65 73 75 6c 74 20 |lt;.....|.Result |
|000028b0| 3d 20 66 61 6c 73 65 3b | 0d 0a 0d 0a 09 50 20 3d |= false;|.....P =|
|000028c0| 20 4c 65 76 65 6c 2e 50 | 61 77 6e 4c 69 73 74 3b | Level.P|awnList;|
|000028d0| 0d 0a 09 77 68 69 6c 65 | 28 20 69 20 3c 20 4c 65 |...while|( i < Le|
|000028e0| 76 65 6c 2e 47 61 6d 65 | 2e 4e 75 6d 50 6c 61 79 |vel.Game|.NumPlay|
|000028f0| 65 72 73 20 29 0d 0a 09 | 7b 0d 0a 09 09 69 66 20 |ers )...|{....if |
|00002900| 28 50 2e 49 73 41 28 27 | 50 6c 61 79 65 72 50 61 |(P.IsA('|PlayerPa|
|00002910| 77 6e 27 29 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 69 |wn'))...|.{.....i|
|00002920| 66 28 20 69 3d 3d 4c 65 | 76 65 6c 2e 47 61 6d 65 |f( i==Le|vel.Game|
|00002930| 2e 4e 75 6d 50 6c 61 79 | 65 72 73 2d 31 20 26 26 |.NumPlay|ers-1 &&|
|00002940| 20 62 46 69 6e 61 6c 50 | 61 63 6b 65 74 3d 3d 31 | bFinalP|acket==1|
|00002950| 29 0d 0a 09 09 09 09 53 | 65 6e 64 52 65 73 75 6c |)......S|endResul|
|00002960| 74 20 3d 20 53 65 6e 64 | 51 75 65 72 79 50 61 63 |t = Send|QueryPac|
|00002970| 6b 65 74 28 41 64 64 72 | 2c 20 47 65 74 50 6c 61 |ket(Addr|, GetPla|
|00002980| 79 65 72 28 50 6c 61 79 | 65 72 50 61 77 6e 28 50 |yer(Play|erPawn(P|
|00002990| 29 2c 20 69 29 2c 20 51 | 75 65 72 79 4e 75 6d 2c |), i), Q|ueryNum,|
|000029a0| 20 50 61 63 6b 65 74 4e | 75 6d 2c 20 31 29 3b 0d | PacketN|um, 1);.|
|000029b0| 0a 09 09 09 65 6c 73 65 | 0d 0a 09 09 09 09 53 65 |....else|......Se|
|000029c0| 6e 64 52 65 73 75 6c 74 | 20 3d 20 53 65 6e 64 51 |ndResult| = SendQ|
|000029d0| 75 65 72 79 50 61 63 6b | 65 74 28 41 64 64 72 2c |ueryPack|et(Addr,|
|000029e0| 20 47 65 74 50 6c 61 79 | 65 72 28 50 6c 61 79 65 | GetPlay|er(Playe|
|000029f0| 72 50 61 77 6e 28 50 29 | 2c 20 69 29 2c 20 51 75 |rPawn(P)|, i), Qu|
|00002a00| 65 72 79 4e 75 6d 2c 20 | 50 61 63 6b 65 74 4e 75 |eryNum, |PacketNu|
|00002a10| 6d 2c 20 30 29 3b 0d 0a | 09 09 09 52 65 73 75 6c |m, 0);..|...Resul|
|00002a20| 74 20 3d 20 53 65 6e 64 | 52 65 73 75 6c 74 20 7c |t = Send|Result ||
|00002a30| 7c 20 52 65 73 75 6c 74 | 3b 0d 0a 09 09 09 69 2b || Result|;.....i+|
|00002a40| 2b 3b 0d 0a 09 09 7d 0d | 0a 09 09 50 20 3d 20 50 |+;....}.|...P = P|
|00002a50| 2e 6e 65 78 74 50 61 77 | 6e 3b 0d 0a 09 7d 0d 0a |.nextPaw|n;...}..|
|00002a60| 0d 0a 09 72 65 74 75 72 | 6e 20 52 65 73 75 6c 74 |...retur|n Result|
|00002a70| 3b 0d 0a 7d 0d 0a 0d 0a | 2f 2f 20 47 65 74 20 61 |;..}....|// Get a|
|00002a80| 6e 20 61 72 62 69 74 72 | 61 72 79 20 70 72 6f 70 |n arbitr|ary prop|
|00002a90| 65 72 74 79 20 66 72 6f | 6d 20 74 68 65 20 6c 65 |erty fro|m the le|
|00002aa0| 76 65 6c 20 6f 62 6a 65 | 63 74 2e 0d 0a 66 75 6e |vel obje|ct...fun|
|00002ab0| 63 74 69 6f 6e 20 73 74 | 72 69 6e 67 20 47 65 74 |ction st|ring Get|
|00002ac0| 4c 65 76 65 6c 50 72 6f | 70 65 72 74 79 28 20 73 |LevelPro|perty( s|
|00002ad0| 74 72 69 6e 67 20 50 72 | 6f 70 20 29 0d 0a 7b 0d |tring Pr|op )..{.|
|00002ae0| 0a 09 6c 6f 63 61 6c 20 | 73 74 72 69 6e 67 20 52 |..local |string R|
|00002af0| 65 73 75 6c 74 53 65 74 | 3b 0d 0a 09 0d 0a 09 52 |esultSet|;......R|
|00002b00| 65 73 75 6c 74 53 65 74 | 20 3d 20 22 5c 5c 22 24 |esultSet| = "\\"$|
|00002b10| 50 72 6f 70 24 22 5c 5c | 22 24 4c 65 76 65 6c 2e |Prop$"\\|"$Level.|
|00002b20| 47 65 74 50 72 6f 70 65 | 72 74 79 54 65 78 74 28 |GetPrope|rtyText(|
|00002b30| 50 72 6f 70 29 3b 0d 0a | 09 0d 0a 09 72 65 74 75 |Prop);..|....retu|
|00002b40| 72 6e 20 52 65 73 75 6c | 74 53 65 74 3b 0d 0a 7d |rn Resul|tSet;..}|
|00002b50| 0d 0a 0d 0a 2f 2f 20 47 | 65 74 20 61 6e 20 61 72 |....// G|et an ar|
|00002b60| 62 69 74 72 61 72 79 20 | 70 72 6f 70 65 72 74 79 |bitrary |property|
|00002b70| 20 66 72 6f 6d 20 74 68 | 65 20 67 61 6d 65 20 6f | from th|e game o|
|00002b80| 62 6a 65 63 74 2e 0d 0a | 66 75 6e 63 74 69 6f 6e |bject...|function|
|00002b90| 20 73 74 72 69 6e 67 20 | 47 65 74 47 61 6d 65 50 | string |GetGameP|
|00002ba0| 72 6f 70 65 72 74 79 28 | 20 73 74 72 69 6e 67 20 |roperty(| string |
|00002bb0| 50 72 6f 70 20 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |Prop )..|{...loca|
|00002bc0| 6c 20 73 74 72 69 6e 67 | 20 52 65 73 75 6c 74 53 |l string| ResultS|
|00002bd0| 65 74 3b 0d 0a 0d 0a 09 | 52 65 73 75 6c 74 53 65 |et;.....|ResultSe|
|00002be0| 74 20 3d 20 22 5c 5c 22 | 24 50 72 6f 70 24 22 5c |t = "\\"|$Prop$"\|
|00002bf0| 5c 22 24 4c 65 76 65 6c | 2e 47 61 6d 65 2e 47 65 |\"$Level|.Game.Ge|
|00002c00| 74 50 72 6f 70 65 72 74 | 79 54 65 78 74 28 50 72 |tPropert|yText(Pr|
|00002c10| 6f 70 29 3b 0d 0a 09 0d | 0a 09 72 65 74 75 72 6e |op);....|..return|
|00002c20| 20 52 65 73 75 6c 74 53 | 65 74 3b 0d 0a 7d 0d 0a | ResultS|et;..}..|
|00002c30| 0d 0a 2f 2f 20 47 65 74 | 20 61 6e 20 61 72 62 69 |..// Get| an arbi|
|00002c40| 74 72 61 72 79 20 70 72 | 6f 70 65 72 74 79 20 66 |trary pr|operty f|
|00002c50| 72 6f 6d 20 74 68 65 20 | 70 6c 61 79 65 72 73 2e |rom the |players.|
|00002c60| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 73 74 72 69 6e |..functi|on strin|
|00002c70| 67 20 47 65 74 50 6c 61 | 79 65 72 50 72 6f 70 65 |g GetPla|yerPrope|
|00002c80| 72 74 79 28 20 73 74 72 | 69 6e 67 20 50 72 6f 70 |rty( str|ing Prop|
|00002c90| 20 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 73 74 | )..{...|local st|
|00002ca0| 72 69 6e 67 20 52 65 73 | 75 6c 74 53 65 74 3b 0d |ring Res|ultSet;.|
|00002cb0| 0a 09 6c 6f 63 61 6c 20 | 69 6e 74 20 69 3b 0d 0a |..local |int i;..|
|00002cc0| 09 6c 6f 63 61 6c 20 50 | 6c 61 79 65 72 50 61 77 |.local P|layerPaw|
|00002cd0| 6e 20 50 3b 0d 0a 0d 0a | 09 66 6f 72 65 61 63 68 |n P;....|.foreach|
|00002ce0| 20 41 6c 6c 41 63 74 6f | 72 73 28 63 6c 61 73 73 | AllActo|rs(class|
|00002cf0| 27 50 6c 61 79 65 72 50 | 61 77 6e 27 2c 20 50 29 |'PlayerP|awn', P)|
|00002d00| 20 7b 0d 0a 09 09 69 2b | 2b 3b 0d 0a 09 09 52 65 | {....i+|+;....Re|
|00002d10| 73 75 6c 74 53 65 74 20 | 3d 20 52 65 73 75 6c 74 |sultSet |= Result|
|00002d20| 53 65 74 24 22 5c 5c 22 | 24 50 72 6f 70 24 22 5f |Set$"\\"|$Prop$"_|
|00002d30| 22 24 69 24 22 5c 5c 22 | 24 50 2e 47 65 74 50 72 |"$i$"\\"|$P.GetPr|
|00002d40| 6f 70 65 72 74 79 54 65 | 78 74 28 50 72 6f 70 29 |opertyTe|xt(Prop)|
|00002d50| 3b 0d 0a 09 7d 0d 0a 09 | 0d 0a 09 72 65 74 75 72 |;...}...|...retur|
|00002d60| 6e 20 52 65 73 75 6c 74 | 53 65 74 3b 0d 0a 7d 0d |n Result|Set;..}.|
|00002d70| 0a 0d 0a 00 | |.... | |
+--------+-------------------------+-------------------------+--------+--------+