|
You last visited: Today at 10:41
Advertisement
Selecting Npc - Opening window and buying items
Discussion on Selecting Npc - Opening window and buying items within the SRO Coding Corner forum part of the Silkroad Online category.
08/03/2011, 02:06
|
#1
|
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
|
Selecting Npc - Opening window and buying items
Hello guys,
As you can understand , i am working on loop. All my code is ready for town loop to buy potions etc. with required amount but i have problems with npc's.
Items should be bought while only npc is selected. But something is wrong , my client is keeps getting crashed.
To select Jewelery NPC :
Code:
Dim Jewel As New Packet(&H7045)
Jewel.WriteUInt32(73)
Proxy.ag_remote_context.Security.Send(Jewel)
To buy item from NPC :
Code:
Dim BuyDrugs As New Packet(&H7034)
BuyDrugs.WriteUInt8(8)
BuyDrugs.WriteUInt8(2)
BuyDrugs.WriteUInt8(0)
BuyDrugs.WriteUInt16(1)
BuyDrugs.WriteUInt32(73)
Proxy.ag_remote_context.Security.Send(BuyDrugs)
Im seaching for the reason of crash but 
Btw: when i login after crash, item is in my inventory
Thanks in advance
|
|
|
08/03/2011, 02:19
|
#2
|
elite*gold: 0
Join Date: Sep 2010
Posts: 783
Received Thanks: 920
|
as I remember
some1 made thread here (maybe jremy dun remember)
he had the same problem but with buying item from stall network
he had to block a packet which causes crashes
Edit:  here  you can get your answer
|
|
|
08/03/2011, 15:00
|
#3
|
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
|
@non stop
Thank you ! jremy had same problem with me , but i couldnt really understand what packet to block.
|
|
|
08/03/2011, 15:46
|
#4
|
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
|
In that other thread Shadowz75 already explained your problem.
The client isn't prepared for a buy packet from the server so it crashes. You have to filter this packet out so the client doesn't get it and you have to send a pickup packet to the client to simulate that it picks up an item. This way you can see the bought item in the inventory and the client doesn't crash.
|
|
|
08/03/2011, 18:16
|
#5
|
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
|
To kevin :
Ok well , i blocked the packet when server sends when i buy item from npc. And so i didnt crash but i wasnt able to see the item in my inventory , of course.
So to see the item i did (faked pickup packet)
Code:
Dim FakeSuccess As New Packet(&HB074)
FakeSuccess.WriteUInt8(1)
FakeSuccess.WriteUInt8(1)
Proxy.ag_local_context.Security.Send(FakeSuccess)
Code:
Dim FakePickUp As New Packet(&HB034)
FakePickUp.WriteUInt8(1)
FakePickUp.WriteUInt8(6)
FakePickUp.WriteUInt8(Slot)
FakePickUp.WriteUInt32(ItemId)
FakePickUp.WriteUInt8(Amount)
Proxy.ag_local_context.Security.Send(FakePickUp)
Code:
Dim FakeOK As New Packet(&HB074)
FakeOK.WriteUInt8(2)
FakeOK.WriteUInt8(0)
Proxy.ag_local_context.Security.Send(FakeOK)
Although i was sure that would not work , i just tried. And it made my client crash.So should i send the pickpacket also ? well , since it does not have any uniqueid as a drop...
|
|
|
08/03/2011, 18:37
|
#6
|
elite*gold: 0
Join Date: Nov 2007
Posts: 959
Received Thanks: 602
|
seriously,would you stop asking EVERYTHING related to your "bot"?..
if you can't solve them alone,or using google,then stop it..
it's OK if you ask some questions,but I see your questions daily,so basicly you want epvp community to make a bot for you?..
|
|
|
08/03/2011, 19:09
|
#7
|
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
|
Quote:
Originally Posted by vorosmihaly
seriously,would you stop asking EVERYTHING related to your "bot"?..
if you can't solve them alone,or using google,then stop it..
it's OK if you ask some questions,but I see your questions daily,so basicly you want epvp community to make a bot for you?..
|
quit topic if it annoys you PRO boy
|
|
|
08/03/2011, 19:16
|
#8
|
elite*gold: 0
Join Date: Nov 2007
Posts: 959
Received Thanks: 602
|
Quote:
Originally Posted by sarkoplata
quit topic if it annoys you PRO boy
|
well,I'm not a pro,but I can use google,not just ask others,rofl..
|
|
|
08/03/2011, 19:23
|
#9
|
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
|
Quote:
Originally Posted by vorosmihaly
well,I'm not a pro,but I can use google,not just ask others,rofl..
|
wanna see my google history ? its huge , lol. But if i search "silkroad item buy packet crashes client" i will just get **** as result.
And please can you look  ?
See i have only 1 topic...
and again, if it annoys you , just dont come to topic ^^
|
|
|
08/03/2011, 19:33
|
#10
|
elite*gold: 0
Join Date: Nov 2007
Posts: 959
Received Thanks: 602
|
Quote:
Originally Posted by sarkoplata
wanna see my google history ? its huge , lol. But if i search "silkroad item buy packet crashes client" i will just get **** as result.
And please can you look  ?
See i have only 1 topic...
and again, if it annoys you , just dont come to topic ^^
|
well,that one was answered already,in 2 threads if I remember well,& about the other crash,you send the wrong packets..just block the incoming buy potion packet,and replace it with an other one.there's no need for 0x7074 and dunno the other one
but you really should look up things yourself..
|
|
|
08/03/2011, 19:34
|
#11
|
elite*gold: 0
Join Date: Nov 2009
Posts: 1,514
Received Thanks: 891
|
Quote:
Originally Posted by vorosmihaly
seriously,would you stop asking EVERYTHING related to your "bot"?..
if you can't solve them alone,or using google,then stop it..
it's OK if you ask some questions,but I see your questions daily,so basicly you want epvp community to make a bot for you?..
|
if you won't help just ignor the topic !
|
|
|
08/03/2011, 19:36
|
#12
|
elite*gold: 0
Join Date: Nov 2007
Posts: 959
Received Thanks: 602
|
Quote:
Originally Posted by ahmed4ever2u
if you won't help just ignor the topic !
|
btw,who the hell r u? I've never talked to you,so gtfo.
and I helped him,just read my post..
|
|
|
08/03/2011, 19:54
|
#13
|
elite*gold: 0
Join Date: Jan 2010
Posts: 360
Received Thanks: 249
|
as far as i remember it is possible to buy from npc without blocking any packet.
i did it some time ago and it worked fine (ecsro)
i can test it later on esro (guess you're trying to use it there)
|
|
|
08/03/2011, 20:20
|
#14
|
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
|
Quote:
Originally Posted by ZeraPain
as far as i remember it is possible to buy from npc without blocking any packet.
i did it some time ago and it worked fine (ecsro)
i can test it later on esro (guess you're trying to use it there)
|
i used to do it at swsro but its not working here.
|
|
|
08/03/2011, 22:18
|
#15
|
elite*gold: 260
Join Date: Aug 2008
Posts: 560
Received Thanks: 3,778
|
You have to "emulate" talking to NPCs via packets because of the way the client is setup. This has been the case in Silkroad since the beginning. It's why isrobot used to get stuck on shop menus back around version 1.0XX (Softmod days), they had some client interactions, but it was dependent on resolution and window focus. So you do need to block some packets, and then send others to the client to update the inventory. Otherwise, your inventory can get out of sync and you have to teleport to fix it.
|
|
|
Similar Threads
|
BUYING RF PH ITEMS
01/11/2012 - RFO Hacks, Bots, Cheats, Exploits & Guides - 2 Replies
BUYING SHARP SUP DARK 55 LR SET +4 ALL FAVOR BELLATO VASTERAL SERVER
LEAVE MESSAGE HERE....
|
Buying FB items
02/12/2011 - Cabal Online Trading - 2 Replies
Looking for the follwoing:
2 slot osmium blade with 36 dmg
2 slot osmium battle helm 36 dmg
2 slot pc amp osmium battle suit
2 slot pc dmg lapis crystal
pc amp terra grace boots and gloves
If you have a better item with these stats like terra grace sig or forci let me know.
|
AgBot Doesn't Pick Items While SILKROAD WINDOW HIDDEN?
06/21/2008 - Silkroad Online - 1 Replies
0
|
Finding what items in lottery before opening boxes
05/01/2007 - Conquer Online 2 - 11 Replies
hi guys, does anybody have a hack for finding out what is in the boxes in lottery before actually opening the box, like an item detecter or something, also something for moon boxes would be VERY appreciated, please post if you know any, you will take full credit!
|
All times are GMT +1. The time now is 10:41.
|
|