Register for your free account! | Forgot your password?

You last visited: Today at 22:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



programmer needs help :v

Discussion on programmer needs help :v within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
TheRealHero's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 387
Received Thanks: 227
programmer needs help :v

Hey guys. Im working on a bot. But i ran into a big problem.
My bot can buy Items from NPC no problem in that(if i've opened it manually once). But If i logout or teleport and start my bot, client crash.. I tried to block a few packets but i just cant get it to work. Now I ran out of ideas...

When I log back in the item is there.. So i know it has something to do with the client is not ready for a received packet but I cant figur which one^^

If you know any programming pls gimme a hint Thx you.
TheRealHero is offline  
Old 06/24/2015, 03:33   #2


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
Character data update. You're probably missing that. PS: Not so easy.
​Exo is offline  
Thanks
1 User
Old 06/24/2015, 03:39   #3
 
TheRealHero's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 387
Received Thanks: 227
can you be more specific?

- i really appreciate your time.
TheRealHero is offline  
Old 06/24/2015, 03:49   #4


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
When you do any change to your inventory or character data in general. You need to handle the character data update packet. You will find it in that old documentation. If you didn't handle it then your client will have false data and will crash or freeze.
​Exo is offline  
Thanks
1 User
Old 06/24/2015, 04:13   #5
 
TheRealHero's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 387
Received Thanks: 227
But what I dont get is that its working just fine, if I have opened the NPC manually once. and then close it it's still working. Just not if i teleport/relog.
What I do is sending the packets for selecting NPC>Open npc>Open 2option in NPC>Buying item. I'll Look it up.

Thx for your response.
TheRealHero is offline  
Old 06/24/2015, 11:33   #6
 
daryllrab8's Avatar
 
elite*gold: 0
Join Date: Mar 2007
Posts: 204
Received Thanks: 614
block the opcode "B034", works on me on my auto buying attribute stones and sell fuser. The disadvantage of this is you must teleport everytime there is changes on your inventory (moving, dropping, etc).
daryllrab8 is offline  
Thanks
1 User
Old 06/24/2015, 11:35   #7
 
elite*gold: 8
Join Date: Sep 2014
Posts: 625
Received Thanks: 178
You have to block a particular Opcode & fake a packet (if I remember it correctly)
qqdev is offline  
Thanks
1 User
Old 06/24/2015, 17:18   #8
 
TheRealHero's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 387
Received Thanks: 227
Quote:
Originally Posted by daryllrab8 View Post
block the opcode "B034", works on me on my auto buying attribute stones and sell fuser. The disadvantage of this is you must teleport everytime there is changes on your inventory (moving, dropping, etc).
Blocking "B034" still gives me crash.


Quote:
Originally Posted by qqdev View Post
You have to block a particular Opcode & fake a packet (if I remember it correctly)
As daryllrab explained. I have tried to block "B034", and I've faked the packet "B034" "

I noticed something strange about the packets.
Both 1. and 2. at the store, share same Opcode, data.
I think that's my issue.

Here is an exampel:

Select NPC
[C -> S][7045]
1B 0B 00 00 ;Store ID ................

Open NPC (1ST.)
[C -> S][7046]
1B 0B 00 00 ;Store ID ................
01 ;?

Open NPC(2ND)
[C -> S][7046]
1B 0B 00 00 ;Store ID ................
01 ;?

What you'll notice is that they share exactly the same opcodes and data.
Any solutions guys?

- Thx for your time.

I tried blocking b034 at potion store. works sometimes... HMMM!!
But not at the other NPC (its a special npc)

>.<!
TheRealHero is offline  
Old 06/25/2015, 01:56   #9
 
daryllrab8's Avatar
 
elite*gold: 0
Join Date: Mar 2007
Posts: 204
Received Thanks: 614
Is that the "Drug Store" npc?

If it is, you don't need to inject the opcode in selecting the 2nd option in NPC. You will only need the "Select npc opcode - 7045" then you can start injecting the opcode for buying which is "7034"

So, here's what i did on my asf

1. Select NPC - 7045 opcode
2. Wait for "B045" opcode
3. Start Buying items - 7034 opcode
4. Wait for "304E" with packet that refers to full inventory.
5. Teleport the bot
daryllrab8 is offline  
Thanks
1 User
Old 06/26/2015, 20:26   #10
 
TheRealHero's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 387
Received Thanks: 227
1. Select NPC - 7045 opcode (Done)
2. Wait for "B045" opcode (Done)
3. Start Buying items - 7034 opcode (Done) -> crash.
4. Wait for "304E" with packet that refers to full inventory. ??
5. Teleport the bot ??

If you logout, and login and don't open any NPC or stores. and you start your bot, don't you get crash too? cuz that's my problem.
TheRealHero is offline  
Old 06/28/2015, 17:46   #11
 
daryllrab8's Avatar
 
elite*gold: 0
Join Date: Mar 2007
Posts: 204
Received Thanks: 614
if B034 was not blocked, i was getting crash too, but with B034 blocked, it doesn't.
You sure you blocked B034 correctly? try to move your items in your inventory, if there is changes > means B034 not blocked
daryllrab8 is offline  
Old 07/01/2015, 00:21   #12
 
TheRealHero's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 387
Received Thanks: 227
I used the phconnector ini's file and added it. Yes when i move my items they don't move.
But I'm still getting crash when bot opens npc the first time. If i open it manually once everything works fine...
TheRealHero is offline  
Reply


Similar Threads Similar Threads
LUA programmer
04/22/2014 - C/C++ - 1 Replies
Hey guys, I need LUA programmer for a proyect, with this project we will earn enough money. If any1 is interested, PM. Thanks you.
PHP programmer
04/16/2013 - General Coding - 3 Replies
Dear ePVP, Massive sorry for this thread and I will accept a closerequest as soon as I will find what I need. And that is a PHP programmer which is skilled. Please write PM to me if any of you can help. I only need some informations (VERY FAST) and nothing more. Thank you for understanding and I wish you all the best! Best regards, the Black Ripper
Looking for a Programmer
08/25/2010 - Dekaron Private Server - 2 Replies
Hi my name is Blastphami. Im looking for someone that wants to help me with a Dekaron Private server. They need to know how to Program And help me if someone applies for this job they will be a Gm in my Private server.:D okay no repy yet if there is someone that wants to work with me i can host a server off my computer just let me know
need help from a programmer
07/29/2009 - Silkroad Online - 1 Replies
greetz to all ;) formated my pc and every games working fine now without that virus :P im looking for a way to keypress on a game called Crossfire. i mean a program to keypress on every 5 sec in hide mode i tried keypresser but it gives this error http://i27.tinypic.com/vilheu.jpg i thought its from gameguard if some one could help me thanks :rolleyes:
NEED programmer
06/19/2009 - CO2 Programming - 4 Replies
I need programmer to learn me how make CO Follower with all steps for any patches , i can pay for him for source code and learning.:handsdown:



All times are GMT +1. The time now is 22:35.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.