[Release] Metin2 Advanced Python Lib

12/09/2015 19:32 _asm#1
Hey dear developers!

So I was bored and thought why not creating a library for our dear Python developers!

Now to the features of the Libary:
  • SendAttackPacket(vid)
  • SendFishingPacket()
  • SendCharacterStatePacket(x, y, 0, MOTION_FUNC, 0) (maximum 24 coordinates since the bug is intentionally not fully exploited!)
  • SetMovingSpeed(int)
  • SetAttackSpeed(int)
  • AttackVID(vid)
  • SetWeaponHold(MOTION)
  • SetHitCombo(Combo)
  • Revive(int) - 0 = Alive, 1 = Dead - Used for Ghostmode
  • SetAttackFix(MOTION_FUNC) - *See down below for explanation!
  • SetTerrain()
  • RemoveTerrain() - Disable Terrain -> Safezone-Hack
  • GetVID(int)
  • IsDead(int)
* This function only needs to be initialized once, have a look at the enumeration from Metin2 Source:
Code:
enum EMotions
{
    FUNC_WAIT,
    FUNC_MOVE,
    FUNC_ATTACK,
    FUNC_COMBO,
    FUNC_MOB_SKILL,
    FUNC_EMOTION,
    FUNC_SKILL = 0x80,
};
How to:

[Only registered and activated users can see links. Click Here To Register...] the lib.

Place the library in the lib folder of the Gameforge client and import my module:
Code:
import m2botlib
m2botlib.SetAttackFix(1) # called only once! 1 = FUNC_MOVE
m2botlib.SetAttackSpeed(400) # example
Shoutouts to:
[Only registered and activated users can see links. Click Here To Register...] - for being helpful all the time :)
[Only registered and activated users can see links. Click Here To Register...] - such h4x0r

Have fun!

Changelog:
Code:
- Added "SetCollision" -> m2botlib.SetCollision(int)
- Added "GetVIDX" -> m2botlib.GetVIDX(vid) // returns instance X coordination
- Added "GetVIDY" -> m2botlib.GetVIDY(vid) // returns instance Y coordination
[12/19/2015]
- Mega link added for flexibility 
- Fixed GetVIDX/GetVIDY return value -> returns float, can be casted to integer!
[12/21/2015]
- Added GetPixelPosition(vid) -> return x,y in a tuple
- Fixed overflow error in GetVID(int)
12/17/2015 16:48 xsura777x#2
Quote:
Originally Posted by _asm View Post
Hey dear developers!

So I was bored and thought why not creating a library for our dear Python developers!

Now to the features of the Libary:
  • SendAttackPacket(vid)
  • SendFishingPacket()
  • SendCharacterStatePacket(x, y, 0, MOTION_FUNC, 0) (maximum 24 coordinates since the bug is intentionally not fully exploited!)
  • SetMovingSpeed(int)
  • SetAttackSpeed(int)
  • AttackVID(vid)
  • SetWeaponHold(MOTION)
  • SetHitCombo(Combo)
  • Revive(int) - 0 = Alive, 1 = Dead - Used for Ghostmode
  • SetAttackFix(MOTION_FUNC) - *See down below for explanation!
  • SetTerrain()
  • RemoveTerrain() - Disable Terrain -> Safezone-Hack
  • GetVID(int)
  • IsDead(int)
* This function only needs to be initialized once, have a look at the enumeration from Metin2 Source:
Code:
enum EMotions
{
    FUNC_WAIT,
    FUNC_MOVE,
    FUNC_ATTACK,
    FUNC_COMBO,
    FUNC_MOB_SKILL,
    FUNC_EMOTION,
    FUNC_SKILL = 0x80,
};
How to:

Place the library in the lib folder of the Gameforge client and import my module:
Code:
import m2botlib
m2botlib.SetAttackFix(1) # called only once! 1 = FUNC_MOVE
m2botlib.SetAttackSpeed(400) # example
Shoutouts to:
[Only registered and activated users can see links. Click Here To Register...] - for being helpful all the time :)
[Only registered and activated users can see links. Click Here To Register...] - such h4x0r

Have fun!

Hi, i'm a nob, can you explain me better how to install? i don't think i'm the only one who needs more explaination in how to install

HOW DO I "IMPORT your module" ?
12/17/2015 17:12 _asm#3
Quote:
Originally Posted by xsura777x View Post
Hi, i'm a nob, can you explain me better how to install? i don't think i'm the only one who needs more explaination in how to install

HOW DO I "IMPORT your module" ?
Have you got any idea what Python actually is?
12/17/2015 17:25 noahrmal#4
very useful lib to make more complex things in python :)
12/17/2015 17:46 _asm#5
New version:
Code:
- Added "SetCollision" -> m2botlib.SetCollision(int)
12/19/2015 15:02 Dominikt123#6
how i can import your module?
12/19/2015 17:07 noahrmal#7
Quote:
Originally Posted by Dominikt123 View Post
how i can import your module?
Quote:
Originally Posted by _asm View Post

Place the library in the lib folder of the Gameforge client and import my module:
Code:
import m2botlib
m2botlib.SetAttackFix(1) # called only once! 1 = FUNC_MOVE
m2botlib.SetAttackSpeed(400) # example
.
12/19/2015 22:20 _asm#8
Library updated

Code:
[12/19/2015]
- Mega link added for flexibility 
- Fixed GetVIDX/GetVIDY return value -> returns float, can be casted to integer!
12/21/2015 16:09 _asm#9
Quote:
Originally Posted by muhammed231 View Post
download link not work
GTFO and get already banned...
12/21/2015 17:26 _asm#10
New Update:
Code:
[12/21/2015]
- Added GetPixelPosition(vid) -> return x,y in a tuple (thx to Kamer for the tip)
- Fixed overflow error in GetVID(int)
01/01/2016 17:17 enzuto#11
make a videooo
01/01/2016 17:28 _asm#12
Quote:
Originally Posted by enzuto View Post
make a videooo
place my downloaded library in the "lib" folder of the official metin2 client and import my module:
Code:
import m2botlib
all the commands are listed in my first post and you should know how to use a python script in metin2 if you want to use it with my lib :)
01/02/2016 10:28 cityzo#13
THANKS.
01/05/2016 12:01 loleslaw21#14
where import m2boblib?
01/05/2016 21:41 _asm#15
Quote:
Originally Posted by loleslaw21 View Post
where import m2boblib?
It's called "m2botlib" not "m2boblib"
read the post thoroughly again and you'll be enlightened!