Koaxia Game Hacking Board
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 09, 2009, 06:31:08 AM

Login with username, password and session length
Search:     Advanced search
Koaxia now moved to:
http://www.gamingsolution.org/
71493 Posts in 26885 Topics by 48651 Members
Latest Member: Snusfassign
* Home Help Search Login Register
+  Koaxia Game Hacking Board
|-+  Strategy and MMO
| |-+  Ragnarok-Online
| | |-+  Bots
| | | |-+  [Guide] Downloading and Running Open Kore CVS
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 3 ... 6 Print
Author Topic: [Guide] Downloading and Running Open Kore CVS  (Read 20569 times)
KingJing
EXPLOiTED
Hero Member
*****
Offline Offline

Posts: 1327


Message from Hell


View Profile
[Guide] Downloading and Running Open Kore CVS
« on: August 04, 2005, 11:44:37 PM »

well its basically for development but its the best source for the most upgraded bot outta. Well short warning here about new features  The code might be unstable or not well-tested. ok lets start.

First thing to get are the launchers those are perl interpreters with build in libs theres the open kore standard launcher and the wx one

Open Kore Standard Launcher
Wx Launcher

as well we need a cvs client, Get it here

After installing the CVS Client rightclick somewhere in your explorer and press Checkout CVS enter the following cvsroot :pserver:anonymous@cvs.sourceforge.net:/cvsroot/openkore now you just need to enter the modules wich are openkore for the main programm confpack for the configs tablepack for the tables fieldpack for the fields and mercdb for The Merchant Database plugin, quite nice one I will post info about that later on. So after getting those files configure your openkore and run it with the launcher (gotta be in same folder as openkore). thats it quite easy eh ?

Quote
The idea:
running around an manually checking prices from other mercs
is a pain. let a bot do the job. check on a web-site what he found.
when the bot finds very cheap offers (hot-deals) let him buy it.

What it does:
when walked around in a given map with merchants the bot
checks at 'packet_vender' hook for available merchants. Now
it searches in database table 'shopvisit' for the merchants user ID
to check when the merc was visited the last time. if the last check
wasn't longer ago than $visitTimeout seconds, the bot will ask RO
for the mercs shop list and write the present date and time into the
database.

at the hook 'packet_vender_store' mercDbFill will be called. it parses 
the venderList and writes it into the mysql table 'shopcont'.

HOT DEALS:
when you put in your config.txt item-names or 'all' after 'merchantDB_shoppinglist'
the bot will buy it, when it is discovered as hot deal. it buys all hot-deals with 'all'.
hot-deals are offered items with a price that is under the average price minus it's
standard deviation.

the webfrontend is done in php, because i know php better than perl Wink
it shows for all found items and cards the min, max, average price and the standard
deviation of the price, and the "hot-deal" barrier.
you can search for cards inserted into items, as well as see what merc
offered which items. and so on. should be self explaining.

requirements:
- any, even a new born RO char Smiley
- openkore cvs
- mysql database (can probably be changed to another database due to Mysql)
- webserver with php-4 support
- perl modules: TimeDate, DBD::mysql, DBI

<quote=tofu_soldier>
so, if any of you intended to get the plugin mercDB.pl running correctly
in win32, get to ppm and have these installed:
install CGI::Enurl (doesnt look like it is needed. if you have problems with win, add it)
(not sure if you need to do this as well)install CGI
install TimeDate
install Mysql
install DBD::mysql
</quote>

Installation:
- copy this file into the plugin folder of openkore
- create a mysql database ($database)
- create a new mysql-user that can read and write the roshop tables
  ($dbUser and $dbPassword)
- set up the mysql tables with the roshop.sql file
- change the mysql access informations here and in the index.php
- put the following into your config.txt
  merchantDB 1
  merchantDB_shoppinglist Aquamarine, Red Potion, +6 Stiletto [Drops*2] [2]
   merchantDB_myHotDeal 0.9
- copy the index.php on your webserver
- send your char into a city or other place where merchants are
- have it walk around the merchants
- check index.php for the results

To-do:
- performance problems
- add NPC dealer prices

Fixed:
- the name of the shop owner and the shops are right. the shop owner
  might be updateted later but should be as good as openkore gives em
  to the plugin
- elemental weapons are recognized
- update existing entries in the database (price changes etc.)
- the number of slots is correct now
- it works with the changed vender store list in cvs (openkore 1.3.0pre)
- didn't occure to me for 2 weeks: after some time running, openkore crashes
  with an "segmentation fault" i can't tell if it is an problem caused by my
  plugin or a general openkore problem. parallel running bots not using this
  plugin do crash as well.

Known bugs:

Planned features:
- waypoint plugin: the bots walks along a predefined route
- upload a store.txt to the web-frontend and get a version with best /
  average prices from the database
- check the prices in-game via chat-commands send to the bot

config.txt variables:
- merchantDB (1 or 0) # required
   to switch the usage of the plugin on or off. if not present the plugin will not work
- merchantDB_shoppinglist
  items you wanna buy, must be written like in the Vender Store List,
  separated by comma; make it "all" to buy all hot deals
- merchantDB_myHotDeal (<= 1)
  a modifier for HotDeals; look for cheaper items ie: 0.90 = hotdeal-range * 90%


Note:
i tested this only on linux 2.6.5-7.95-default with mysql MySQL 4.0.18-Max,
PHP Version 4.3.4 so your mileage may vary.

Thanks:
- my RO-playing, non-botting friends who love the results of what i do with openkore Wink
- the developers of openkore, without i would have stopped playing RO a long time ago
- the members of the openkore-forum for theire support and feedback

Apologies:
this plugin may be a total waste of time for you, because it only checks the
prices goods are offered for and not the prices of the sales. i offer my
excuses to you, but i found no way to check the real sales-prices.
and i apologise for my bad english. my english teacher would laugh her ass off
if she could read this Wink

« Last Edit: August 04, 2005, 11:46:05 PM by Shounen Bat » Logged



genesis234
Guest


Email
[Guide] Downloading and Running Open Kore CVS
« Reply #1 on: August 05, 2005, 12:24:17 AM »

nice work
Logged
Da Killa
Wannabe private section user :´(
Sr. Member
****
Offline Offline

Posts: 265



View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #2 on: August 23, 2005, 08:11:58 PM »

Sorry i know i am lame.... but i get a error when i try it oO.

Here are some pics:



and here:



Maybe Shounen Bat could help me cause he is german like me and understand that error^^"

Pls help me >_<"""
« Last Edit: August 23, 2005, 08:48:02 PM by Da Killa » Logged

KingJing
EXPLOiTED
Hero Member
*****
Offline Offline

Posts: 1327


Message from Hell


View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #3 on: August 23, 2005, 10:36:15 PM »

dont click liste holen, just click ok and wait, it takes some time to connect to the cvs serv
Logged



Da Killa
Wannabe private section user :´(
Sr. Member
****
Offline Offline

Posts: 265



View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #4 on: August 23, 2005, 11:13:15 PM »

Oh thanks now i can get it Tongue  /thx

EDIT:

lol i put the new ip for discovery ro in it and tried again. then i get the error: couldnt connect to server oO

omg dont know i make everything wrong...

Please help me again >_-<"""
« Last Edit: August 24, 2005, 12:04:11 AM by Da Killa » Logged

KingJing
EXPLOiTED
Hero Member
*****
Offline Offline

Posts: 1327


Message from Hell


View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #5 on: August 24, 2005, 12:07:27 AM »

use the same config as you used before just set server type 5 o.ô
« Last Edit: August 24, 2005, 12:08:08 AM by Shounen Bat » Logged



Da Killa
Wannabe private section user :´(
Sr. Member
****
Offline Offline

Posts: 265



View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #6 on: August 24, 2005, 01:59:57 PM »

oO but i sniffed a other ip O.O" ill test now
Logged

tubelight
Jr. Member
**
Offline Offline

Posts: 85



View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #7 on: August 24, 2005, 02:38:00 PM »

ok i got the CVS codes, all the files, i put the correct setting, set serverType 5, and then ran the bot...

this is what i got..... 0.0



now what Sad(
Logged

n00b to game hacking....ima learner Tongue

genesis234
Guest


Email
[Guide] Downloading and Running Open Kore CVS
« Reply #8 on: August 24, 2005, 02:38:53 PM »

You can prolly get the server info from " Server Details " at openkore forums. Search it up there
Logged
Derethor
Newbie
*
Offline Offline

Posts: 39


View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #9 on: August 24, 2005, 03:06:06 PM »

Shounen I have to tell you that this guide was incredibly simple and easy to follow especially for a beginner like me whos been trying to make his openkore work for a long time so well...
great job, awesome job even

you really helped me out and I could probably say the same about dozens of other players

thanks!
Logged
botbot
Jr. Member
**
Offline Offline

Posts: 96


View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #10 on: August 24, 2005, 03:08:09 PM »

isnt that related to the recvpackets?

@tubelight
hv u extracted the recvpackets from ur ragexe.exe?
« Last Edit: August 24, 2005, 03:09:25 PM by botbot » Logged
tubelight
Jr. Member
**
Offline Offline

Posts: 85



View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #11 on: August 24, 2005, 03:10:15 PM »

Quote
isnt that related to the recvpackets?

@tubelight
hv u extracted the recvpackets from ur ragexe.exe?
[snapback]23074[/snapback]



:S no i havent OMG...Tongue

but i dunno how to do that, :S...can you gimme a link where i can find how to do it?
Logged

n00b to game hacking....ima learner Tongue

botbot
Jr. Member
**
Offline Offline

Posts: 96


View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #12 on: August 24, 2005, 03:13:16 PM »

u cud use amacc_boy's packet-extractor.. i think its very userfriendy.. Cheesy

here : http://forum.koaxia.com/index.php?showtopic=2200

btw,im not sure if ur server uses sakexe or ragexe .. just check which of these..
« Last Edit: August 24, 2005, 03:17:42 PM by botbot » Logged
tubelight
Jr. Member
**
Offline Offline

Posts: 85



View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #13 on: August 24, 2005, 03:19:35 PM »

k i got the recvpackets.txt file....now where do i put it?
whats the next step....

sorry for being a newbie...but i have never used this method before Tongue

i used ragexe.exe......it was there in the folder...

btw this server uses kRO client i hope thats not troublesome for CVS
« Last Edit: August 24, 2005, 03:20:44 PM by tubelight » Logged

n00b to game hacking....ima learner Tongue

botbot
Jr. Member
**
Offline Offline

Posts: 96


View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #14 on: August 24, 2005, 03:24:23 PM »

paste it in ur tables folder..
Logged
genesis234
Guest


Email
[Guide] Downloading and Running Open Kore CVS
« Reply #15 on: August 24, 2005, 03:25:06 PM »

Put it in your /tables folder.
Logged
tubelight
Jr. Member
**
Offline Offline

Posts: 85



View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #16 on: August 24, 2005, 03:33:56 PM »

i pasted it in the tables folder...ran the bot and got this in errors.txt

'x' outside of string in unpack at C:/openkore/src/Network/Receive.pm line 220.
 at C:/openkore/src/Network/Receive.pm line 220
   Network::Receive::parse('Network::Receive::ServerType5=HASH(0x17d0944)', 'i\x{0}O') called at C:/openkore/src/functions.pl line 4689
   main::parseMsg('i\x{0}O\x{0}\x{f2}\x{ae}\x{bf}sH\x{b5}\x{1e}\x{0}5d$\x{1f}\x{0}\x{0}\x{0}\x{0}2005-08-24 09:36:12\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{1}\x{d8}\x{b0}\x{b2}\x{aa}\x{e9}\x{17}ElysianR...') called at C:/openkore/src/functions.pl line 457
   main::mainLoop() called at C:/openkore/src/Interface/Wx.pm line 119
   Interface::Wx::__ANON__('Interface::Wx=HASH(0x1a75ba8)', 'Wx::TimerEvent=SCALAR(0x33ad7d4)') called at C:/openkore/src/Interface/Wx.pm line 127
   Interface::Wx::mainLoop('Interface::Wx=HASH(0x1a75ba8)') called at openkore.pl line 423
   main::__start() called at start.pl line 96


Died at this line:
OpenKore version 1.7.0

     if ($handler->[1]) {
*       my @unpacked_data = unpack("x2 $handler->[1]", $msg);
        my $keys = $handler->[2];



sob Tongue....i think openkore is plotting against me
Logged

n00b to game hacking....ima learner Tongue

Derethor
Newbie
*
Offline Offline

Posts: 39


View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #17 on: August 24, 2005, 03:40:53 PM »

sorry to post in another thread genesis, I just didnt wanna double post :\

getting the recvpacket didnt change anything, stillt he same error
Logged
Da Killa
Wannabe private section user :´(
Sr. Member
****
Offline Offline

Posts: 265



View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #18 on: August 24, 2005, 04:00:43 PM »

omg my bot cant even get this error-.-" i get this lawl



and i tryed my sniffed ip and the old oO. My ip began with 73 or something i think correct me pls if i am wrong Tongue

EDIT: wth they want me to to to enter the forums? Oo" (kore)
« Last Edit: August 24, 2005, 04:09:46 PM by Da Killa » Logged

botbot
Jr. Member
**
Offline Offline

Posts: 96


View Profile
[Guide] Downloading and Running Open Kore CVS
« Reply #19 on: August 24, 2005, 04:06:40 PM »

maybe the server is down.. Cheesy recheck ur servers.txt and config..
Logged
Pages: [1] 2 3 ... 6 Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Koaxia Game Hacking Board | Powered by SMF 1.0.7.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!