Eine schöne Übersicht über die D2NT API von bajazzle zur Entwicklung von Scripts.
Leider gibt es keine offizielle Dokumentation über die D2NT API. Am besten arbeitet man sich in die API ein indem man schon bestehende Scripts liest und versucht die Funktionen zu verstehen. Wenn man ein bisschen Ahnung vom Programmieren hat geht das recht flott!
Hinweis:
Alle D2NT Scripts sind in Javascript geschrieben!
Ansonsten ist das Changelog vom D2NT auch sehr hilfreich. Am besten einfach mal darin etwas stöbern. Zu finden ist das Changelog im D2NT Ordner.
Links:
You are not allowed to view links.
Register or
LoginReferenz zum Javascript Syntax
You are not allowed to view links.
Register or
LoginNotepad++
toller Umfangreicher Texteditor zum Scripts zu entwickeln!
You are not allowed to view links.
Register or
LoginD2BS API Referenz
(Der D2NT basiert auf dem
Diablo
2Botting
System (D2BS)
Hier der Post von bajazzle
Functions in D2NT that exactly match (name-wise) a documented D2BS API reference. i.e. the API above has an entry for it, though there is no guarantee it hasn't changed.
CheckCollision
ClickItem
ClickMap
ClickParty
Delay
GetArea
GetBaseStat
GetControl
GetCursorType
GetDistance
GetLocaleString
GetPath
GetPlayerFlag
GetPresetUnits
GetRoom
GetScript
GetTickCount
GetUnit
GetWaypoint
Gold
Include
Load
Print
SendCopyData
Stop
SubmitItem
Transmute
A good method to check for renamed, added, or deleted calls is checking the changelogs.
Check D2NT for added
Check D2BS for renamed, removed, or replaced
Now for the tricky part. Here is a list of everything in D2NT that could possibly be an API call. I'm not going to go through it now, but I'll try and clean it up.
Sorry for this less than optimal list. Please post any findings you come across, or any useful information, and I'll update this post.
5/7/2010 - List Reduced. Still need to clear out trash in there.
Expansion_
dummy
_bncache_dat
_dat
FindWindowA
SetCursorPos
GetAsyncKeyState
Sleep
CreateFileA
DeleteFileA
ysize
xsize
name
Area
SetText
GetText
GetNext
Click
type
text
pressed
disabled
Control
WriteLine
ReadLine
Close
size
File
UnregisterEvent
Transmute
SubmitItem
SetUIState
SetStatusText
SendCopyData
RunGC
Random
RegisterEvent
Print
Load
Include
Gold
GetWaypoint
GetUnit
GetUIState
GetTickCount
GetScript
GetRoom
GetPresetUnits
GetPlayerUnit
GetPlayerFlag
GetPath
GetLocaleString
GetDistance
GetCursorType
GetControl
GetBaseStat
GetArea
FileOpen
ExitGame
Delay
CloseD2
ClickMap
CheckCollision
Global
UseBelt
TakeWaypoint
SwapWeapons
SetSkill
SelectNPCMenu
Repair
GetSkillStatus
GetQuest
GetMercCost
GetCursorItem
ClickParty
ClickMercItem
ClickItem
Cancel
weaponstab
screensize
showmissileonautomap
showenemyonautomap
runwalk
revealautomap
realmshort
realm
quitonhostile
playtype
playertype
ping
maxgametime
ladder
itemoncursor
ingame
gatewayid
gametype
gameserverip
gamepassword
gamename
diff
chickenmp
chickenhp
charname
charloc
account
XMLList
isXMLName
localName
parent
prefix
toXMLString
_amp_
_gt_
_lt_
_quot_
ignoreComments
ignoreProcessingInstructions
ignoreWhitespace
prettyPrinting
prettyIndent
http___www_w3_org_XML_1998_names
http___www_w3_org_2000_xmlns_
_parent_xmlns__
__parent_
attribute
text
_mozilla_org_js_function
escape
unescape
decodeURI
encodeURI
decodeURIComponent
encodeURIComponent
uneval
0123456789ABCDEF
default
function
null
false
true
throw
instanceof
break
case
continue
delete
else
export
return
switch
typeof
void
while
with
const
catch
finally
abstract
boolean
byte
char
class
double
extends
final
float
goto
implements
import
interface
long
native
package
private
protected
public
short
static
super
synchronized
throws
transient
volatile
enum
debugger
yield
increment
generator
__EXCEPTION__
__RETSUB_PC__
__FORELEM__
__WITH__
_s__s
_s__s_
_s_s__s
_s__s_s
_s_s__s_
_s__s__s
_s_s
__native_code__
watch
unwatch
hasOwnProperty
isPrototypeOf
propertyIsEnumerable
__defineGetter__
__defineSetter__
__lookupGetter__
Infinity
isNaN
isFinite
parseFloat
parseInt
with_statement
finally_block
Function
Object
Date
Math
Number
String
Call
Error
RegExp
StopIteration
AnyName
AttributeName
Generator
length
toSource
toString
toLocaleString
Null
Array
Boolean
Script
Namespace
QName
InternalError
EvalError
RangeError
ReferenceError
SyntaxError
TypeError
URIError
Iterator
UnusedProto28
File
Block
XMLFilter
NoSuchMethod
undefined
object
anonymous
arguments
arity
callee
caller
prototype
constructor
__count__
each
eval
fileName
getter
index
input
__iterator__
lineNumber
message
name
next
__noSuchMethod__
__parent__
__proto__
setter
stack
valueOf
namespace
close
send
partyid
partyflag
life
level
classid
areaid
PlayerUnit
subareaid
roomy
roomx
PresetUnit
UnitInRoom
GetNearby
GetFirst
correcttomb
Room
Stop
Send
running
Script
IsAttackable
GetState
GetStat
GetSkill
GetParent
GetOptimalAttackPos
GetMerc
GetItems
GetItemCost
spectype
shrinetype
quality
mpmax
mode
itemtype
itemsuffix
itemprefix
itemloc
itemlevel
itemflag
itemdesc
itemclass
hpmax
code
Unit
_D2NT_Warning___s___d_____s
_D2NT_Error___s___d_____s
EVENT_GAMEMSG
EVENT_KEYDOWN
EVENT_KEYUP
EVENT_SCRIPTMSG