-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathapi.html
10444 lines (9597 loc) · 405 KB
/
api.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script id="versionArea" type="text/javascript">
//<![CDATA[
var version = {title: "TiddlyWiki", major: 2, minor: 5, revision: 3, date: new Date("Aug 18, 2009"), extensions: {}};
//]]>
</script>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="copyright" content="
TiddlyWiki created by Jeremy Ruston, (jeremy [at] osmosoft [dot] com)
Copyright (c) UnaMesa Association 2004-2009
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or other
materials provided with the distribution.
Neither the name of the UnaMesa Association nor the names of its contributors may be
used to endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
" />
<!--PRE-HEAD-START-->
<!--{{{-->
<link rel='alternate' type='application/rss+xml' title='RSS' href='index.xml' />
<!--}}}-->
<!--PRE-HEAD-END-->
<title> D2BS API - everything you wanted to know about D2BS, but were afraid to ask </title>
<style id="styleArea" type="text/css">
#saveTest {display:none;}
#messageArea {display:none;}
#copyright {display:none;}
#storeArea {display:none;}
#storeArea div {padding:0.5em; margin:1em 0em 0em 0em; border-color:#fff #666 #444 #ddd; border-style:solid; border-width:2px; overflow:auto;}
#shadowArea {display:none;}
#javascriptWarning {width:100%; text-align:center; font-weight:bold; background-color:#dd1100; color:#fff; padding:1em 0em;}
</style>
<!--POST-HEAD-START-->
<!--POST-HEAD-END-->
</head>
<body onload="main();" onunload="if(window.unload) unload();">
<!--PRE-BODY-START-->
<!--PRE-BODY-END-->
<div id="copyright">
Welcome to TiddlyWiki created by Jeremy Ruston, Copyright © 2007 UnaMesa Association
</div>
<noscript>
<div id="javascriptWarning">
This page requires JavaScript to function properly.<br /><br />If you are using Microsoft Internet Explorer you may need to click on the yellow bar above and select 'Allow Blocked Content'. You must then click 'Yes' on the following security warning.
</div>
</noscript>
<div id="saveTest"></div>
<div id="backstageCloak"></div>
<div id="backstageButton"></div>
<div id="backstageArea"><div id="backstageToolbar"></div></div>
<div id="backstage">
<div id="backstagePanel"></div>
</div>
<div id="contentWrapper"></div>
<div id="contentStash"></div>
<div id="shadowArea">
<div title="MarkupPreHead">
<pre><!--{{{-->
<link rel='alternate' type='application/rss+xml' title='RSS' href='index.xml' />
<!--}}}-->
</pre>
</div>
<div title="ColorPalette">
<pre>Background: #fff
Foreground: #000
PrimaryPale: #8cf
PrimaryLight: #18f
PrimaryMid: #04b
PrimaryDark: #014
SecondaryPale: #ffc
SecondaryLight: #fe8
SecondaryMid: #db4
SecondaryDark: #841
TertiaryPale: #eee
TertiaryLight: #ccc
TertiaryMid: #999
TertiaryDark: #666
Error: #f88
</pre>
</div>
<div title="StyleSheetColors">
<pre>/*{{{*/
body {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]];}
a {color:[[ColorPalette::PrimaryMid]];}
a:hover {background-color:[[ColorPalette::PrimaryMid]]; color:[[ColorPalette::Background]];}
a img {border:0;}
h1,h2,h3,h4,h5,h6 {color:[[ColorPalette::SecondaryDark]]; background:transparent;}
h1 {border-bottom:2px solid [[ColorPalette::TertiaryLight]];}
h2,h3 {border-bottom:1px solid [[ColorPalette::TertiaryLight]];}
.button {color:[[ColorPalette::PrimaryDark]]; border:1px solid [[ColorPalette::Background]];}
.button:hover {color:[[ColorPalette::PrimaryDark]]; background:[[ColorPalette::SecondaryLight]]; border-color:[[ColorPalette::SecondaryMid]];}
.button:active {color:[[ColorPalette::Background]]; background:[[ColorPalette::SecondaryMid]]; border:1px solid [[ColorPalette::SecondaryDark]];}
.header {background:[[ColorPalette::PrimaryMid]];}
.headerShadow {color:[[ColorPalette::Foreground]];}
.headerShadow a {font-weight:normal; color:[[ColorPalette::Foreground]];}
.headerForeground {color:[[ColorPalette::Background]];}
.headerForeground a {font-weight:normal; color:[[ColorPalette::PrimaryPale]];}
.tabSelected{color:[[ColorPalette::PrimaryDark]];
background:[[ColorPalette::TertiaryPale]];
border-left:1px solid [[ColorPalette::TertiaryLight]];
border-top:1px solid [[ColorPalette::TertiaryLight]];
border-right:1px solid [[ColorPalette::TertiaryLight]];
}
.tabUnselected {color:[[ColorPalette::Background]]; background:[[ColorPalette::TertiaryMid]];}
.tabContents {color:[[ColorPalette::PrimaryDark]]; background:[[ColorPalette::TertiaryPale]]; border:1px solid [[ColorPalette::TertiaryLight]];}
.tabContents .button {border:0;}
#sidebar {}
#sidebarOptions input {border:1px solid [[ColorPalette::PrimaryMid]];}
#sidebarOptions .sliderPanel {background:[[ColorPalette::PrimaryPale]];}
#sidebarOptions .sliderPanel a {border:none;color:[[ColorPalette::PrimaryMid]];}
#sidebarOptions .sliderPanel a:hover {color:[[ColorPalette::Background]]; background:[[ColorPalette::PrimaryMid]];}
#sidebarOptions .sliderPanel a:active {color:[[ColorPalette::PrimaryMid]]; background:[[ColorPalette::Background]];}
.wizard {background:[[ColorPalette::PrimaryPale]]; border:1px solid [[ColorPalette::PrimaryMid]];}
.wizard h1 {color:[[ColorPalette::PrimaryDark]]; border:none;}
.wizard h2 {color:[[ColorPalette::Foreground]]; border:none;}
.wizardStep {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]];
border:1px solid [[ColorPalette::PrimaryMid]];}
.wizardStep.wizardStepDone {background:[[ColorPalette::TertiaryLight]];}
.wizardFooter {background:[[ColorPalette::PrimaryPale]];}
.wizardFooter .status {background:[[ColorPalette::PrimaryDark]]; color:[[ColorPalette::Background]];}
.wizard .button {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::SecondaryLight]]; border: 1px solid;
border-color:[[ColorPalette::SecondaryPale]] [[ColorPalette::SecondaryDark]] [[ColorPalette::SecondaryDark]] [[ColorPalette::SecondaryPale]];}
.wizard .button:hover {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::Background]];}
.wizard .button:active {color:[[ColorPalette::Background]]; background:[[ColorPalette::Foreground]]; border: 1px solid;
border-color:[[ColorPalette::PrimaryDark]] [[ColorPalette::PrimaryPale]] [[ColorPalette::PrimaryPale]] [[ColorPalette::PrimaryDark]];}
.wizard .notChanged {background:transparent;}
.wizard .changedLocally {background:#80ff80;}
.wizard .changedServer {background:#8080ff;}
.wizard .changedBoth {background:#ff8080;}
.wizard .notFound {background:#ffff80;}
.wizard .putToServer {background:#ff80ff;}
.wizard .gotFromServer {background:#80ffff;}
#messageArea {border:1px solid [[ColorPalette::SecondaryMid]]; background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]];}
#messageArea .button {color:[[ColorPalette::PrimaryMid]]; background:[[ColorPalette::SecondaryPale]]; border:none;}
.popupTiddler {background:[[ColorPalette::TertiaryPale]]; border:2px solid [[ColorPalette::TertiaryMid]];}
.popup {background:[[ColorPalette::TertiaryPale]]; color:[[ColorPalette::TertiaryDark]]; border-left:1px solid [[ColorPalette::TertiaryMid]]; border-top:1px solid [[ColorPalette::TertiaryMid]]; border-right:2px solid [[ColorPalette::TertiaryDark]]; border-bottom:2px solid [[ColorPalette::TertiaryDark]];}
.popup hr {color:[[ColorPalette::PrimaryDark]]; background:[[ColorPalette::PrimaryDark]]; border-bottom:1px;}
.popup li.disabled {color:[[ColorPalette::TertiaryMid]];}
.popup li a, .popup li a:visited {color:[[ColorPalette::Foreground]]; border: none;}
.popup li a:hover {background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]]; border: none;}
.popup li a:active {background:[[ColorPalette::SecondaryPale]]; color:[[ColorPalette::Foreground]]; border: none;}
.popupHighlight {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]];}
.listBreak div {border-bottom:1px solid [[ColorPalette::TertiaryDark]];}
.tiddler .defaultCommand {font-weight:bold;}
.shadow .title {color:[[ColorPalette::TertiaryDark]];}
.title {color:[[ColorPalette::SecondaryDark]];}
.subtitle {color:[[ColorPalette::TertiaryDark]];}
.toolbar {color:[[ColorPalette::PrimaryMid]];}
.toolbar a {color:[[ColorPalette::TertiaryLight]];}
.selected .toolbar a {color:[[ColorPalette::TertiaryMid]];}
.selected .toolbar a:hover {color:[[ColorPalette::Foreground]];}
.tagging, .tagged {border:1px solid [[ColorPalette::TertiaryPale]]; background-color:[[ColorPalette::TertiaryPale]];}
.selected .tagging, .selected .tagged {background-color:[[ColorPalette::TertiaryLight]]; border:1px solid [[ColorPalette::TertiaryMid]];}
.tagging .listTitle, .tagged .listTitle {color:[[ColorPalette::PrimaryDark]];}
.tagging .button, .tagged .button {border:none;}
.footer {color:[[ColorPalette::TertiaryLight]];}
.selected .footer {color:[[ColorPalette::TertiaryMid]];}
.sparkline {background:[[ColorPalette::PrimaryPale]]; border:0;}
.sparktick {background:[[ColorPalette::PrimaryDark]];}
.error, .errorButton {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::Error]];}
.warning {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::SecondaryPale]];}
.lowlight {background:[[ColorPalette::TertiaryLight]];}
.zoomer {background:none; color:[[ColorPalette::TertiaryMid]]; border:3px solid [[ColorPalette::TertiaryMid]];}
.imageLink, #displayArea .imageLink {background:transparent;}
.annotation {background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]]; border:2px solid [[ColorPalette::SecondaryMid]];}
.viewer .listTitle {list-style-type:none; margin-left:-2em;}
.viewer .button {border:1px solid [[ColorPalette::SecondaryMid]];}
.viewer blockquote {border-left:3px solid [[ColorPalette::TertiaryDark]];}
.viewer table, table.twtable {border:2px solid [[ColorPalette::TertiaryDark]];}
.viewer th, .viewer thead td, .twtable th, .twtable thead td {background:[[ColorPalette::SecondaryMid]]; border:1px solid [[ColorPalette::TertiaryDark]]; color:[[ColorPalette::Background]];}
.viewer td, .viewer tr, .twtable td, .twtable tr {border:1px solid [[ColorPalette::TertiaryDark]];}
.viewer pre {border:1px solid [[ColorPalette::SecondaryLight]]; background:[[ColorPalette::SecondaryPale]];}
.viewer code {color:[[ColorPalette::SecondaryDark]];}
.viewer hr {border:0; border-top:dashed 1px [[ColorPalette::TertiaryDark]]; color:[[ColorPalette::TertiaryDark]];}
.highlight, .marked {background:[[ColorPalette::SecondaryLight]];}
.editor input {border:1px solid [[ColorPalette::PrimaryMid]];}
.editor textarea {border:1px solid [[ColorPalette::PrimaryMid]]; width:100%;}
.editorFooter {color:[[ColorPalette::TertiaryMid]];}
#backstageArea {background:[[ColorPalette::Foreground]]; color:[[ColorPalette::TertiaryMid]];}
#backstageArea a {background:[[ColorPalette::Foreground]]; color:[[ColorPalette::Background]]; border:none;}
#backstageArea a:hover {background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]]; }
#backstageArea a.backstageSelTab {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]];}
#backstageButton a {background:none; color:[[ColorPalette::Background]]; border:none;}
#backstageButton a:hover {background:[[ColorPalette::Foreground]]; color:[[ColorPalette::Background]]; border:none;}
#backstagePanel {background:[[ColorPalette::Background]]; border-color: [[ColorPalette::Background]] [[ColorPalette::TertiaryDark]] [[ColorPalette::TertiaryDark]] [[ColorPalette::TertiaryDark]];}
.backstagePanelFooter .button {border:none; color:[[ColorPalette::Background]];}
.backstagePanelFooter .button:hover {color:[[ColorPalette::Foreground]];}
#backstageCloak {background:[[ColorPalette::Foreground]]; opacity:0.6; filter:'alpha(opacity=60)';}
/*}}}*/</pre>
</div>
<div title="StyleSheetLayout">
<pre>/*{{{*/
* html .tiddler {height:1%;}
body {font-size:.75em; font-family:arial,helvetica; margin:0; padding:0;}
h1,h2,h3,h4,h5,h6 {font-weight:bold; text-decoration:none;}
h1,h2,h3 {padding-bottom:1px; margin-top:1.2em;margin-bottom:0.3em;}
h4,h5,h6 {margin-top:1em;}
h1 {font-size:1.35em;}
h2 {font-size:1.25em;}
h3 {font-size:1.1em;}
h4 {font-size:1em;}
h5 {font-size:.9em;}
hr {height:1px;}
a {text-decoration:none;}
dt {font-weight:bold;}
ol {list-style-type:decimal;}
ol ol {list-style-type:lower-alpha;}
ol ol ol {list-style-type:lower-roman;}
ol ol ol ol {list-style-type:decimal;}
ol ol ol ol ol {list-style-type:lower-alpha;}
ol ol ol ol ol ol {list-style-type:lower-roman;}
ol ol ol ol ol ol ol {list-style-type:decimal;}
.txtOptionInput {width:11em;}
#contentWrapper .chkOptionInput {border:0;}
.externalLink {text-decoration:underline;}
.indent {margin-left:3em;}
.outdent {margin-left:3em; text-indent:-3em;}
code.escaped {white-space:nowrap;}
.tiddlyLinkExisting {font-weight:bold;}
.tiddlyLinkNonExisting {font-style:italic;}
/* the 'a' is required for IE, otherwise it renders the whole tiddler in bold */
a.tiddlyLinkNonExisting.shadow {font-weight:bold;}
#mainMenu .tiddlyLinkExisting,
#mainMenu .tiddlyLinkNonExisting,
#sidebarTabs .tiddlyLinkNonExisting {font-weight:normal; font-style:normal;}
#sidebarTabs .tiddlyLinkExisting {font-weight:bold; font-style:normal;}
.header {position:relative;}
.header a:hover {background:transparent;}
.headerShadow {position:relative; padding:4.5em 0 1em 1em; left:-1px; top:-1px;}
.headerForeground {position:absolute; padding:4.5em 0 1em 1em; left:0px; top:0px;}
.siteTitle {font-size:3em;}
.siteSubtitle {font-size:1.2em;}
#mainMenu {position:absolute; left:0; width:10em; text-align:right; line-height:1.6em; padding:1.5em 0.5em 0.5em 0.5em; font-size:1.1em;}
#sidebar {position:absolute; right:3px; width:16em; font-size:.9em;}
#sidebarOptions {padding-top:0.3em;}
#sidebarOptions a {margin:0 0.2em; padding:0.2em 0.3em; display:block;}
#sidebarOptions input {margin:0.4em 0.5em;}
#sidebarOptions .sliderPanel {margin-left:1em; padding:0.5em; font-size:.85em;}
#sidebarOptions .sliderPanel a {font-weight:bold; display:inline; padding:0;}
#sidebarOptions .sliderPanel input {margin:0 0 0.3em 0;}
#sidebarTabs .tabContents {width:15em; overflow:hidden;}
.wizard {padding:0.1em 1em 0 2em;}
.wizard h1 {font-size:2em; font-weight:bold; background:none; padding:0; margin:0.4em 0 0.2em;}
.wizard h2 {font-size:1.2em; font-weight:bold; background:none; padding:0; margin:0.4em 0 0.2em;}
.wizardStep {padding:1em 1em 1em 1em;}
.wizard .button {margin:0.5em 0 0; font-size:1.2em;}
.wizardFooter {padding:0.8em 0.4em 0.8em 0;}
.wizardFooter .status {padding:0 0.4em; margin-left:1em;}
.wizard .button {padding:0.1em 0.2em;}
#messageArea {position:fixed; top:2em; right:0; margin:0.5em; padding:0.5em; z-index:2000; _position:absolute;}
.messageToolbar {display:block; text-align:right; padding:0.2em;}
#messageArea a {text-decoration:underline;}
.tiddlerPopupButton {padding:0.2em;}
.popupTiddler {position: absolute; z-index:300; padding:1em; margin:0;}
.popup {position:absolute; z-index:300; font-size:.9em; padding:0; list-style:none; margin:0;}
.popup .popupMessage {padding:0.4em;}
.popup hr {display:block; height:1px; width:auto; padding:0; margin:0.2em 0;}
.popup li.disabled {padding:0.4em;}
.popup li a {display:block; padding:0.4em; font-weight:normal; cursor:pointer;}
.listBreak {font-size:1px; line-height:1px;}
.listBreak div {margin:2px 0;}
.tabset {padding:1em 0 0 0.5em;}
.tab {margin:0 0 0 0.25em; padding:2px;}
.tabContents {padding:0.5em;}
.tabContents ul, .tabContents ol {margin:0; padding:0;}
.txtMainTab .tabContents li {list-style:none;}
.tabContents li.listLink { margin-left:.75em;}
#contentWrapper {display:block;}
#splashScreen {display:none;}
#displayArea {margin:1em 17em 0 14em;}
.toolbar {text-align:right; font-size:.9em;}
.tiddler {padding:1em 1em 0;}
.missing .viewer,.missing .title {font-style:italic;}
.title {font-size:1.6em; font-weight:bold;}
.missing .subtitle {display:none;}
.subtitle {font-size:1.1em;}
.tiddler .button {padding:0.2em 0.4em;}
.tagging {margin:0.5em 0.5em 0.5em 0; float:left; display:none;}
.isTag .tagging {display:block;}
.tagged {margin:0.5em; float:right;}
.tagging, .tagged {font-size:0.9em; padding:0.25em;}
.tagging ul, .tagged ul {list-style:none; margin:0.25em; padding:0;}
.tagClear {clear:both;}
.footer {font-size:.9em;}
.footer li {display:inline;}
.annotation {padding:0.5em; margin:0.5em;}
* html .viewer pre {width:99%; padding:0 0 1em 0;}
.viewer {line-height:1.4em; padding-top:0.5em;}
.viewer .button {margin:0 0.25em; padding:0 0.25em;}
.viewer blockquote {line-height:1.5em; padding-left:0.8em;margin-left:2.5em;}
.viewer ul, .viewer ol {margin-left:0.5em; padding-left:1.5em;}
.viewer table, table.twtable {border-collapse:collapse; margin:0.8em 1.0em;}
.viewer th, .viewer td, .viewer tr,.viewer caption,.twtable th, .twtable td, .twtable tr,.twtable caption {padding:3px;}
table.listView {font-size:0.85em; margin:0.8em 1.0em;}
table.listView th, table.listView td, table.listView tr {padding:0px 3px 0px 3px;}
.viewer pre {padding:0.5em; margin-left:0.5em; font-size:1.2em; line-height:1.4em; overflow:auto;}
.viewer code {font-size:1.2em; line-height:1.4em;}
.editor {font-size:1.1em;}
.editor input, .editor textarea {display:block; width:100%; font:inherit;}
.editorFooter {padding:0.25em 0; font-size:.9em;}
.editorFooter .button {padding-top:0px; padding-bottom:0px;}
.fieldsetFix {border:0; padding:0; margin:1px 0px;}
.sparkline {line-height:1em;}
.sparktick {outline:0;}
.zoomer {font-size:1.1em; position:absolute; overflow:hidden;}
.zoomer div {padding:1em;}
* html #backstage {width:99%;}
* html #backstageArea {width:99%;}
#backstageArea {display:none; position:relative; overflow: hidden; z-index:150; padding:0.3em 0.5em;}
#backstageToolbar {position:relative;}
#backstageArea a {font-weight:bold; margin-left:0.5em; padding:0.3em 0.5em;}
#backstageButton {display:none; position:absolute; z-index:175; top:0; right:0;}
#backstageButton a {padding:0.1em 0.4em; margin:0.1em;}
#backstage {position:relative; width:100%; z-index:50;}
#backstagePanel {display:none; z-index:100; position:absolute; width:90%; margin-left:3em; padding:1em;}
.backstagePanelFooter {padding-top:0.2em; float:right;}
.backstagePanelFooter a {padding:0.2em 0.4em;}
#backstageCloak {display:none; z-index:20; position:absolute; width:100%; height:100px;}
.whenBackstage {display:none;}
.backstageVisible .whenBackstage {display:block;}
/*}}}*/
</pre>
</div>
<div title="StyleSheetLocale">
<pre>/***
StyleSheet for use when a translation requires any css style changes.
This StyleSheet can be used directly by languages such as Chinese, Japanese and Korean which need larger font sizes.
***/
/*{{{*/
body {font-size:0.8em;}
#sidebarOptions {font-size:1.05em;}
#sidebarOptions a {font-style:normal;}
#sidebarOptions .sliderPanel {font-size:0.95em;}
.subtitle {font-size:0.8em;}
.viewer table.listView {font-size:0.95em;}
/*}}}*/</pre>
</div>
<div title="StyleSheetPrint">
<pre>/*{{{*/
@media print {
#mainMenu, #sidebar, #messageArea, .toolbar, #backstageButton, #backstageArea {display: none !important;}
#displayArea {margin: 1em 1em 0em;}
noscript {display:none;} /* Fixes a feature in Firefox 1.5.0.2 where print preview displays the noscript content */
}
/*}}}*/</pre>
</div>
<div title="PageTemplate">
<pre><!--{{{-->
<div class='header' macro='gradient vert [[ColorPalette::PrimaryLight]] [[ColorPalette::PrimaryMid]]'>
<div class='headerShadow'>
<span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>&nbsp;
<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span>
</div>
<div class='headerForeground'>
<span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>&nbsp;
<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span>
</div>
</div>
<div id='mainMenu' refresh='content' tiddler='MainMenu'></div>
<div id='sidebar'>
<div id='sidebarOptions' refresh='content' tiddler='SideBarOptions'></div>
<div id='sidebarTabs' refresh='content' force='true' tiddler='SideBarTabs'></div>
</div>
<div id='displayArea'>
<div id='messageArea'></div>
<div id='tiddlerDisplay'></div>
</div>
<!--}}}--></pre>
</div>
<div title="ViewTemplate">
<pre><!--{{{-->
<div class='toolbar' macro='toolbar [[ToolbarCommands::ViewToolbar]]'></div>
<div class='title' macro='view title'></div>
<div class='subtitle'><span macro='view modifier link'></span>, <span macro='view modified date'></span> (<span macro='message views.wikified.createdPrompt'></span> <span macro='view created date'></span>)</div>
<div class='tagging' macro='tagging'></div>
<div class='tagged' macro='tags'></div>
<div class='viewer' macro='view text wikified'></div>
<div class='tagClear'></div>
<!--}}}--></pre>
</div>
<div title="EditTemplate">
<pre><!--{{{-->
<div class='toolbar' macro='toolbar [[ToolbarCommands::EditToolbar]]'></div>
<div class='title' macro='view title'></div>
<div class='editor' macro='edit title'></div>
<div macro='annotations'></div>
<div class='editor' macro='edit text'></div>
<div class='editor' macro='edit tags'></div><div class='editorFooter'><span macro='message views.editor.tagPrompt'></span><span macro='tagChooser excludeLists'></span></div>
<!--}}}--></pre>
</div>
<div title="GettingStarted">
<pre>To get started with this blank [[TiddlyWiki]], you'll need to modify the following tiddlers:
* [[SiteTitle]] & [[SiteSubtitle]]: The title and subtitle of the site, as shown above (after saving, they will also appear in the browser title bar)
* [[MainMenu]]: The menu (usually on the left)
* [[DefaultTiddlers]]: Contains the names of the tiddlers that you want to appear when the TiddlyWiki is opened
You'll also need to enter your username for signing your edits: <<option txtUserName>></pre>
</div>
<div title="OptionsPanel">
<pre>These [[InterfaceOptions]] for customising [[TiddlyWiki]] are saved in your browser
Your username for signing your edits. Write it as a [[WikiWord]] (eg [[JoeBloggs]])
<<option txtUserName>>
<<option chkSaveBackups>> [[SaveBackups]]
<<option chkAutoSave>> [[AutoSave]]
<<option chkRegExpSearch>> [[RegExpSearch]]
<<option chkCaseSensitiveSearch>> [[CaseSensitiveSearch]]
<<option chkAnimate>> [[EnableAnimations]]
----
Also see [[AdvancedOptions]]</pre>
</div>
<div title="ImportTiddlers">
<pre><<importTiddlers>></pre>
</div>
</div>
<!--POST-SHADOWAREA-->
<div id="storeArea">
<div title="D2BS" modifier="lord2800" created="200910281301" changecount="1">
<pre>D2BS stands for Diablo II Botting System.</pre>
</div>
<div title="DefaultTiddlers" modifier="lord2800" created="200910281255" modified="200911120145" changecount="2">
<pre>Welcome</pre>
</div>
<div title="EventListPlugin" modifier="lord2800" created="201001181019" modified="201001291130" tags="systemConfig" changecount="3">
<pre>//{{{
config.macros.eventList = {
handler: function (place, macroName, params, wikifier, paramString) {
var functions = "!Events:\r\n\r\n";
params = params.sort();
for(var i = 0; i < params.length; i++)
functions += '[[' + params[i] + ']]\r\n';
wikify(functions, place);
}
};
//}}}</pre>
</div>
<div title="EventPlugin" modifier="lord2800" created="201001181011" modified="201001181013" tags="systemConfig" changecount="2">
<pre>//{{{
config.macros.event = {
handler: function (place, macroName, params, wikifier, paramString, tiddler) {
var p = paramString.parseParams(null, null, true);
var len = tiddler.title.indexOf('Event');
if(len == -1) len = tiddler.title.length;
var name = getParam(p, "name") || tiddler.title.slice(0, len);
var args = getParam(p, "args");
var retVal = getParam(p, "returnType") || 'void';
var remarks = getParam(p, "remarks") || 'none';
var example = getParam(p, "example") || '';
wikify("!Event:\r\n{{{" + retVal + " " + name + "(" + args + ")}}}\r\n\r\n" +
"!!!''Remarks:''\r\n" + remarks + "\r\n\r\n" +
"!!!''Example:''\r\n{{{" + example + "}}}",
place);
}
};
//}}}</pre>
</div>
<div title="Events" modifier="lord2800" created="201001181020" modified="201001221348" changecount="3">
<pre><<eventList
ItemActionEvent
GameMsgEvent
ChatMsgEvent
WhisperMsgEvent
MeLifeEvent
MeManaEvent
KeyUpEvent
KeyDownEvent
PlayerAssignEvent
MouseClickEvent
ScriptMsgEvent
GoldDropEvent
CopyDataEvent
GameEventEvent
>></pre>
</div>
<div title="FAQs" modifier="lord2800" created="201001302307" modified="201001302308" changecount="3">
<pre>[[Terminology]]
[[How D2BS works]]
[[How to run a script]]
[[How to write a script]]</pre>
</div>
<div title="File.open" modifier="lord2800" created="200912102109" changecount="1">
<pre><<func prefix:"File" args:"" returnType:"" returns:"" remarks:"" example:"">></pre>
</div>
<div title="FileObject" modifier="lord2800" created="200911012318" modified="200912092327" changecount="6">
<pre><<functionList prefix:"File" type:"Static"
open
>>
<<functionList prefix:"File"
close
reopen
read
readLine
readAllLines
readAll
write
seek
flush
reset
end
>>
<<propertyList prefix:"File"
readable
writable
seekable
mode
binaryMode
autoflush
length
path
position
eof
>></pre>
</div>
<div title="FileTools.appendText" modifier="lord2800" created="201001221355" modified="201001221404" changecount="5">
<pre><<func prefix:"FileTools" args:"string name, object content [, ... ]" returnType:"bool" returns:"True if all the content was successfully appended, otherwise false." remarks:"Appends all of the contents to a file based on the file name. All paths are relative to the script folder." example:"FileTools.appendText('/logs/mylog.txt', 'January 2nd. Got eaten by a grue. Apparently he wanted the beans.');">></pre>
</div>
<div title="FileTools.copy" modifier="lord2800" created="201001221405" modified="201001221405" changecount="2">
<pre><<func prefix:"FileTools" args:"string original, string newname" returnType:"bool" returns:"True if the copy succeeded, otherwise false." remarks:"Copies a file on disk to a new name. All paths are relative to the script folder." example:"var contents = FileTools.copy('/logs/mylog.txt', '/logs/mybackup.txt');">></pre>
</div>
<div title="FileTools.exists" modifier="lord2800" created="201001221402" modified="201001221403" changecount="2">
<pre><<func prefix:"FileTools" args:"string name" returnType:"bool" returns:"True if the file exists, otherwise false." remarks:"Checks to see if the specified file exists on disk. All paths are relative to the script folder." example:"if(FileTools.exists('/logs/mylog.txt'))
print('I have a log!');">></pre>
</div>
<div title="FileTools.readText" modifier="lord2800" created="201001221400" modified="201001221403" changecount="2">
<pre><<func prefix:"FileTools" args:"string name" returnType:"string" returns:"The entire file contents." remarks:"Reads all of the contents from the specified file and returns it as a string. All paths are relative to the script folder." example:"var contents = FileTools.readText('/logs/mylog.txt');">></pre>
</div>
<div title="FileTools.remove" modifier="lord2800" created="200911012353" modified="201001221403" changecount="10">
<pre><<func prefix:"FileTools" args:"string name" returnType:"bool" returns:"True if the file was removed, otherwise false." remarks:"Remove a file based on the file name. All paths are relative to the script folder." example:"FileTools.remove('/some/file.txt');">></pre>
</div>
<div title="FileTools.rename" modifier="lord2800" created="201001221406" changecount="1">
<pre><<func prefix:"FileTools" args:"string original, string newname" returnType:"bool" returns:"True if the rename succeeded, otherwise false." remarks:"Renames a file on disk to a new name. All paths are relative to the script folder." example:"var contents = FileTools.rename('/logs/mylog.txt', '/logs/oldlog.txt');">></pre>
</div>
<div title="FileTools.writeText" modifier="lord2800" created="201001221358" modified="201001221403" changecount="2">
<pre><<func prefix:"FileTools" args:"string name, object content [, ... ]" returnType:"bool" returns:"True if of all the contents were successfully written, otherwise false." remarks:"Overwrites all of the old contents of a file with the new specified contents based on the file name. All paths are relative to the script folder." example:"FileTools.writeText('/logs/mylog.txt', 'January 1st. Found an old can of beans. No idea what it's for, but it's got to be useful for something.');">></pre>
</div>
<div title="FileToolsObject" modifier="lord2800" created="200911012322" modified="200911112248" changecount="8">
<pre><<functionList prefix:"FileTools"
remove
rename
copy
exists
readText
writeText
appendText
>></pre>
</div>
<div title="FunctionListPlugin" modifier="lord2800" created="200911112154" modified="201002162045" tags="systemConfig" changecount="13">
<pre>//{{{
config.macros.functionList = {
handler: function (place, macroName, params, wikifier, paramString) {
var args = paramString.parseParams(null,null,true);
var prefix = getParam(args, "prefix") || '';
if(prefix != '') {
prefix += '.';
params.shift();
}
var type = getParam(args, "type") || '';
if(type != '') {
type += ' ';
params.shift();
}
params = params.sort();
var functions = '!' + type + 'Functions:\r\n\r\n';
for(var i = 0; i < params.length; i++)
{
functions += '[[' + prefix + params[i] + ']]\r\n';
}
wikify(functions, place);
}
};
//}}}</pre>
</div>
<div title="FunctionPlugin" modifier="lord2800" created="200911112015" modified="200912301700" tags="systemConfig" changecount="18">
<pre>//{{{
config.macros.func = {
handler: function (place, macroName, params, wikifier, paramString, tiddler) {
var p = paramString.parseParams(null, null, true);
var name = getParam(p, "name") || tiddler.title.slice(tiddler.title.indexOf('.')+1);
var args = getParam(p, "args") || '';
var retVal = getParam(p, "returnType") || 'void';
var ret = getParam(p, "returns") || 'void';
var remarks = getParam(p, "remarks") || 'none';
var example = getParam(p, "example") || '';
var prefix = getParam(p, "prefix") || '';
wikify("!Function:\r\n{{{" + retVal + " " + (prefix != '' ? prefix + '.' : '') + name + "(" + args + ")}}}\r\n\r\n" +
"''Returns:'' " + ret + "\r\n\r\n" +
"!!!''Remarks:''\r\n" + remarks + "\r\n\r\n" +
"!!!''Example:''\r\n{{{" + example + "}}}",
place);
}
};
//}}}</pre>
</div>
<div title="GlobalFunctions" modifier="lord2800" created="200911111941" modified="201002080813" changecount="8">
<pre><<functionList
getUnit
getPath
getCollision
getMercHP
getCursorType
getSkillByName
getSkillById
getLocaleString
getTextWidthHeight
getThreadPriority
getUIFlag
getTradeInfo
getWaypoint
getScript
getRoom
getParty
getPresetUnit
getPresetUnits
getArea
getBaseStat
getControl
getPlayerFlag
getTickCount
getInteractedNPC
print
delay
load
isIncluded
include
stop
rand
sendCopyData
sendDDE
keystate
addEventListener
removeEventListener
clearEvent
clearAllEvents
js_strict
version
scriptBroadcast
sqlite_version
dopen
debugLog
iniread
iniwrite
submitItem
login
createGame
joinGame
getLocation
getMouseCoords
copyUnit
clickMap
acceptTrade
beep
clickItem
getDistance
gold
checkCollision
playSound
quit
quitGame
say
clickParty
blockMinimize
weaponSwitch
transmute
md5
sha1
sha256
sha384
sha512
md5_file
sha1_file
sha256_file
sha384_file
sha512_file
addProfile
profileExists
>></pre>
</div>
<div title="GlobalObjects" modifier="lord2800" created="200912301531" modified="201001221351" changecount="2">
<pre><<objectList
me
>></pre>
</div>
<div title="How to write a script" modifier="lord2800" created="201005130100" modified="201005130100" changecount="2">
<pre>As a test, we'll use a continuous spam message while we remain in game.
Here's the code:
{{{
while(me.ingame)
{
me.overhead("Hello, world!");
delay(1500);
}
}}}
Save the above code as, for now, "test.dbj" inside of your scripts folder.
Now open the default.dbj and add the following to the top of that file:
{{{load("test.dbj");}}}
Then, join a game and watch as your character says "Hello, world!" in his overhead message box!</pre>
</div>
<div title="ItemActionEvent" modifier="lord2800" created="201001181022" changecount="1">
<pre><<event args:"int gid, int mode, string code, bool global" remarks:"If global is true, the item action is a 'world action', meaning everyone in game got the same event">></pre>
</div>
<div title="MainMenu" modifier="lord2800" created="200910281257" modified="201001302307" changecount="6">
<pre>GlobalFunctions
GlobalObjects
[[Objects]]
[[Events]]
[[FAQs]]</pre>
</div>
<div title="ObjectListPlugin" modifier="lord2800" created="201001221350" modified="201001291132" tags="systemConfig" changecount="2">
<pre>//{{{
config.macros.objectList = {
handler: function (place, macroName, params, wikifier, paramString) {
var functions = "!Objects:\r\n\r\n";
params = params.sort();
for(var i = 0; i < params.length; i++)
functions += '[[' + params[i] + ']]\r\n';
wikify(functions, place);
}
};
//}}}</pre>
</div>
<div title="Objects" modifier="lord2800" created="200911012315" modified="201001221351" changecount="3">
<pre><<objectList
SQLiteObject
DBStatementObject
FileObject
FileToolsObject
D2BSScriptObject
FrameObject
BoxObject
LineObject
TextObject
ImageObject
SandboxObject
RoomObject
PresetUnitObject
PartyObject
ExitObject
DirectoryObject
ControlObject
AreaObject
UnitObject
>></pre>
</div>
<div title="PropertyListPlugin" modifier="lord2800" created="200911112248" modified="201002162046" tags="systemConfig" changecount="3">
<pre>//{{{
config.macros.propertyList = {
handler: function (place, macroName, params, wikifier, paramString) {
var args = paramString.parseParams(null,null,true);
var prefix = getParam(args, "prefix") || '';
if(prefix != '') {
prefix += '.';
params.shift();
}
var functions = '!Properties:\r\n\r\n';
var start = (prefix != '' ? 1 : 0);
params = params.sort();
for(var i = start; i < params.length; i++)
{
functions += '[[' + prefix + params[i] + ']]\r\n';
}
wikify(functions, place);
}
};
//}}}</pre>
</div>
<div title="PropertyPlugin" modifier="lord2800" created="200911112251" modified="200912301550" tags="systemConfig" changecount="5">
<pre>//{{{
config.macros.property = {
handler: function (place, macroName, params, wikifier, paramString, tiddler) {
var p = paramString.parseParams(null, null, true);
var name = getParam(p, "name") || tiddler.title.slice(tiddler.title.indexOf('.')+1);
var type = getParam(p, "type") || '';
var remarks = getParam(p, "remarks") || 'none';
var example = getParam(p, "example") || '';
var prefix = getParam(p, "prefix") || '';
wikify("!Property:\r\n{{{" + type + " " + (prefix != '' ? prefix + '.' : '') + name +";}}}\r\n\r\n" +
"!!!''Remarks:''\r\n" + remarks + "\r\n\r\n" +
"!!!''Example:''\r\n{{{" + example + "}}}",
place);
}
};
//}}}</pre>
</div>
<div title="SiteSubtitle" modifier="lord2800" created="200910281259" changecount="1">
<pre>everything you wanted to know about D2BS, but were afraid to ask</pre>
</div>
<div title="SiteTitle" modifier="lord2800" created="200910281258" changecount="1">
<pre>D2BS API</pre>
</div>
<div title="SiteUrl" modifier="lord2800" created="200910281259" changecount="1">
<pre>http://www.assembla.com/wiki/show/d2bs/</pre>
</div>
<div title="StyleSheet" modifier="lord2800" created="200911020059" modified="200911020108" changecount="15">
<pre>code { color: #555 !important; margin-left: 15px !important; }</pre>
</div>
<div title="TemplateFunction" modifier="lord2800" created="200911012349" modified="200911020109" changecount="9">
<pre>!Function:
{{{$1($2)}}}
''Returns:'' $3
!!!''Remarks:''
$4
!!!''Example:''
{{{$5}}}</pre>
</div>
<div title="Welcome" modifier="YourName" created="200911120145" modified="201104040119" changecount="8">
<pre>Welcome to the D2BS API Documentation.
Online support is available [[via forums|http://www.edgeofnowhere.cc/index.php?c=22]] and [[via irc|irc://irc.synirc.net/d2bs]].
The Assembla project page is available [[here|http://www.assembla.com/wiki/show/d2bs/]], and the latest release can be downloaded from the [[files section|http://www.assembla.com/spaces/d2bs/documents]].
!!THIS DOCUMENT HAS BEEN SUPERCEDED BY THE DOCUMENTATION [[HERE|http://docs.d2bs.org]]
This document is not complete! A lot of things are still missing, a lot of things have just stubs, and a lot of things need to be double checked to ensure accuracy! If you want to help with this, please contact any member of the D2BS team via forums or irc (linked above).</pre>
</div>
<div title="acceptTrade" modifier="lord2800" created="200912092232" modified="200912301755" changecount="2">
<pre><<func args:"[ int mode ]" returnType:"int" returns:"If you pass a mode, the return value varies based on what mode. If you do not pass a mode, the return value is true if the trade action was not blocked, otherwise false" remarks:"Modes:
1 - Whether or not you have accepted trade
2 - Returns the trade flags (Not documented yet)
3 - Whether or not the 'checkbox' is red (unable to trade)" example:"">></pre>
</div>
<div title="addEventListener" modifier="lord2800" created="200912092234" modified="200912301859" changecount="2">
<pre><<func args:"string event, Function listener" returnType:"" returns:"" remarks:"Registers listener to listen to events of the specified type" example:"">></pre>
</div>
<div title="addProfile" modifier="lord2800" created="201002080812" modified="201002080815" changecount="3">
<pre><<func args:"string name, string mode, string gateway, string username, string password, string character" remarks:"Adds the specified profile to ~D2BS.ini." example:"if(!profileExists('test')) addProfile('test', 'single', '', '', '', 'tester');">></pre>
</div>
<div title="beep" modifier="lord2800" created="200912092232" modified="200912301748" changecount="2">
<pre><<func args:"uint type" remarks:"This function is the equivalent of the ~WinAPI function [[MessageBeep|http://msdn.microsoft.com/en-us/library/ms680356%28VS.85%29.aspx]]." example:"">></pre>
</div>
<div title="blockMinimize" modifier="lord2800" created="200911120140" modified="200911120453" changecount="2">
<pre><<func args:"bool enabled" returnType:"void" returns:"Nothing." remarks:"Enables or disables minimize blocking." example:"blockMinimize(true);">></pre>
</div>
<div title="checkCollision" modifier="lord2800" created="200912092232" modified="200912301719" changecount="3">
<pre><<func args:"Unit a, Unit b, int collisionFlag" returnType:"bool" returns:"True if the collision values between Units a and b match the flag, otherwise false" remarks:"Uses the internal game's collision checking function" example:"">></pre>
</div>
<div title="clearAllEvents" modifier="lord2800" created="200912092234" modified="200912301857" changecount="2">
<pre><<func args:"" returnType:"" returns:"" remarks:"Clears all registered event handlers for all events on the current script" example:"">></pre>
</div>
<div title="clearEvent" modifier="lord2800" created="200912092234" modified="200912301857" changecount="2">
<pre><<func args:"string event" returnType:"" returns:"" remarks:"Clears all registered event handlers for the specified event on the current script" example:"">></pre>
</div>
<div title="clickItem" modifier="lord2800" created="200912092232" modified="201002050719" changecount="3">
<pre><<func args:"int clickType, [Unit item OR int x, int y [, int location] ]" remarks:"This function's parameters vary based on the desired functionality.
Locations:
0 - Inventory
2 - Trade Window
3 - Cube
4 - Stash
5 - Belt
Click Types:
0 - Left
1 - Right
2 - Shift-left (put to belt)
3 - Mercenary Item (see below)
Mercenary Body Locations:
1 - Helmet
3 - Armor
4 - Weapon" example:"">></pre>
</div>
<div title="clickMap" modifier="lord2800" created="200912092232" modified="201002160050" changecount="3">
<pre><<func args:"int type, bool shift, [Unit a OR int x, int y]" returnType:"bool" returns:"True if the click succeeded, otherwise false" remarks:"Either a unit or an x/y is required. If you specify a unit, that unit will be selected prior to clicking. If shift is true, the character will stand in place while clicking. The coordinates are in-game coordinates.
Click types:
0 - Left down
1 - Left held
2 - Left up
3 - Right down
4 - Right held
5 - Right up" example:"">></pre>
</div>
<div title="clickParty" modifier="lord2800" created="200912092231" modified="200912301713" changecount="2">
<pre><<func args:"Party obj, int mode" remarks:"The Party object comes from the [[getParty]] function
Modes:
0 - Loot player