cant find target at storage

02/13/2012 15:09 acer20006#1
hii all , my problem at storage when i put the item to it through packets
it's refuse to put item to storage it's said can't find target
i made simple script useing Autoit
Code:
\\\\\\\\\\\\\\\\\\\ DW storage NPC ID 04020000
$g_IP = "127.0.0.1"
$ss = "0x04004570010004020000"  ;start talk
$s1 = "0x0500467001000402000003"   ; deposite
$s2 = "0x070034700100020D0004020000"   ; put item #1 at inventory to storage
TCPStartUp()
$socket = TCPConnect($g_IP, 22580)

If $socket = -1 Then
MsgBox(0, "Ops", "Run Nuconnector")
Sleep(2000)
endif

TCPSend($socket,$ss)
Sleep(2000)
TCPSend($socket,$s1)
Sleep(2000)
TCPSend($socket,$s2)
Exit
02/13/2012 16:32 bootdisk#2
Don't know about Autoit but...

Quote:
$ss = "0x04004570010004020000" ;start talk
$s1 = "0x0500467001000402000003" ; deposite
$s2 = "0x070034700100020D0004020000" ; put item #1 at inventory to storage
Should be without the "0x"? [Only registered and activated users can see links. Click Here To Register...].

Also, npc handles varies, which means, you will need to parse the spawn packets to know their ids.
02/14/2012 10:00 acer20006#3
Quote:
Originally Posted by bootdisk View Post
Don't know about Autoit but...



Should be without the "0x"? [Only registered and activated users can see links. Click Here To Register...].

Also, npc handles varies, which means, you will need to parse the spawn packets to know their ids.
well seems that i have to open the storage once at first to make the packets work in the next time _ something missing _ any help
02/15/2012 21:31 jremy#4
Quote:
Originally Posted by acer20006 View Post
well seems that i have to open the storage once at first to make the packets work in the next time _ something missing _ any help
You have to send this packet once after spawn/teleport:
Code:
[703C]
04 02 00 00 //storage id
00
Send it after you selected storage (7045)
02/16/2012 02:19 acer20006#5
Quote:
Originally Posted by jremy View Post
You have to send this packet once after spawn/teleport:
Code:
[703C]
04 02 00 00 //storage id
00
Send it after you selected storage (7045)
hii thx for help it's work , and that's weird :D
why it must be [703C] not [7046] and is [703C] works for all kind of sro (Isro-Vsro-Ksro-....) or just private server ?>>?>
thx again