الموقع العربي الاول للعبة Silkroad Online

الموقع العربي الاول للعبة Silkroad Online (https://silkroad4arab.com/vb/index.php)
-   قسم الاستفسارات ومشاكل وحلول ال PHBOT (https://silkroad4arab.com/vb/forumdisplay.php?f=106)
-   -   Added Python plugin support (https://silkroad4arab.com/vb/showthread.php?t=589801)

momnali 30-07-2015 02:30 AM

Added Python plugin support
 
اية دى وشرحها اية
Added Python plugin support

l_king_l 30-07-2015 03:04 AM

رد: Added Python plugin support
 
انا عن نفسى مش فاهم انت تقصد ايه اصلا :mf_laughbounce:
:guitar: :naughty: :111 (7):

momnali 30-07-2015 04:28 AM

رد: Added Python plugin support
 
v12.1.55
- Added support for dropping items via the pick filter tab
- Added Python plugin support
- Fixed player database not updating when a new column is added to one of the tables
- Replaced passive socket stones with the correct ones

البوت نزل تحديث جديد هو اية دة -
Added Python plugin support

Plugin SDK
v1.0.0

™Mahmoud Gamal™ 30-07-2015 06:01 AM

رد: Added Python plugin support
 
كود PHP:

v12.1.55
Added support for dropping items via the pick filter tab
Added Python plugin support
Fixed player database not updating when a new column is added to one of the tables
Replaced passive socket stones with the correct ones 

ده تحديث اخر نسخه من Phbot test هجرب واقلك الشرح حاضر

:winksmiley02:

™Mahmoud Gamal™ 30-07-2015 06:32 AM

رد: Added Python plugin support
 
كود PHP:

In v12.1.55 of the testing releasePython 3.4 plugin support has been addedPlugins allow you to extend the bot with Python by sending packets or starting/stopping the bot.

Any .py file you place in the 'Plugins' directory will be loaded at runtimeThis requires you to also have the Python 3.4 'Lib' folder inside 'Plugins\python34'It is included in the download below.

An example Python script has been included to give you a list of available functionsYou should not call any functions that return a lot of data (eg'get_inventory'very frequently otherwise it will increase the CPU usage significantly

كود PHP:

from phBot import *

# Called when the bot successfully connects to the game server
def connected():
    
pass

# All packets received from Silkroad will be passed to this function
# Returning True will keep the packet and False will not forward it to the game server
def handle_silkroad(opcodedata):
    
log('Python: (Silkroad) 0x%02X' opcode)
    return 
True

# All packets received from Joymax will be passed to this function
# Returning True will keep the packet and False will not forward it to the client
def handle_joymax(opcodedata):
    
log('Python: (Joymax) 0x%02X' opcode)
    return 
True

# Called when the character enters the game world
def joined_game():
    
pass

# Called when the character teleports
# This function will also be called after the "joined_game" function
def teleported():
    
pass

log
('[%s] Loaded' __name__

ده المفروض الشرح اللي منزله Weaman
:harp::harp::harp:

shoot 31-07-2015 01:20 AM

رد: Added Python plugin support
 
و بيعمل اى اصلا

l_king_l 01-08-2015 11:32 PM

رد: Added Python plugin support
 
يغلق انا مش بستخدام بوت test مش عرف افيد حد فيه xD

##

l_king_l 06-08-2015 01:19 PM

رد: Added Python plugin support
 
##


الساعة الآن 06:23 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.