178 fonksiyon / 12 class

GLBot++ Python Scripting API ReferansıGLBot++ Python Scripting API Reference

Bu doküman, GLBot++ içindeki gömülü Python 2.7 yorumlayıcısından script yazarken kullanabileceğiniz tüm class ve fonksiyonları kaynak koddan (forGF.h içindeki GLBridgeTable ve ilgili wrapper fonksiyonlar) doğrulanarak listeler. Burada listelenmeyen hiçbir fonksiyon Python tarafından çağrılamaz.This document lists all classes and functions you can use when writing scripts for the embedded Python 2.7 interpreter in GLBot++, verified against the source code (GLBridgeTable in forGF.h and the related wrapper functions). No function that is not listed here can be called from Python.

178FonksiyonFunctions
12Class / ModülClasses / Modules
1Özel Tip (Position)Special Type (Position)

Giriş & Nasıl ÇalışırIntroduction & How It Works

GLBot++, scriptleri C:\MemoryBreak\GLBot++\scripts\ klasöründen okur. Bir script çalıştırıldığında kodunuz, GLBot++'ın METIN2 istemcisiyle paylaştığı canlı Python yorumlayıcısında __main__ kapsamında çalışır; aşağıda listelenen tüm class'lar ve global fonksiyonlar bu kapsamda otomatik olarak mevcuttur (ayrıca import GLPlayer gibi import ifadeleriyle de erişilebilirler).GLBot++ reads scripts from the C:\MemoryBreak\GLBot++\scripts\ folder. When a script runs, your code executes in the live Python interpreter that GLBot++ shares with the METIN2 client, under the __main__ scope. All classes and global functions listed below are automatically available in this scope (they can also be reached with import statements such as import GLPlayer).

Argümanlar nasıl işleniyorHow arguments are processed

Çoğu fonksiyon (özel olarak belirtilenler dışında), çağırdığınız argümanları tipine göre otomatik olarak tanır: bir Position nesnesi veya 3 elemanlı bir tuple pozisyon olarak, bir sayı (ondalıklı) float olarak, bir metin string olarak, bir tam sayı int olarak eşlenir. Bu yüzden argümanları dokümandaki sırayla ve doğru tipte geçmeniz önemlidir.Most functions (except where noted) recognize the arguments you pass automatically, based on their type: a Position object or a 3-element tuple is treated as a position, a decimal number as a float, text as a string and a whole number as an int. That is why it matters to pass arguments in the order shown in this document and with the correct type.

Hata ayıklamaDebugging

GLBot++ arayüzündeki "Debug mode" kutusu işaretliyken bir script hata verirse, hatanın tipi ve mesajı bir messagebox ile gösterilir. Ayrıca Log(message) ile konsola (ProxySupport konsol penceresi) serbest metin yazdırabilirsiniz.If a script raises an error while the "Debug mode" box in the GLBot++ interface is checked, the error type and message are shown in a messagebox. You can also print free text to the console (ProxySupport console window) with Log(message).

Güvenli — sadece ilkel (int/float/str/bool) parametreler kullanırSafe — uses only primitive (int/float/str/bool) parameters Dikkat — notlar bölümünde işaretlenmiş, ham adres/pointer içeren veya sunucu tarafı riskli fonksiyonCaution — marked in the notes section; contains raw addresses/pointers or is a risky server-side function

Özel Tip: PositionSpecial Type: Position

Birçok fonksiyon konum bilgisini bu tip üzerinden alır/döndürür. Gerçekte çalışma zamanında oluşturulan basit bir Python sınıfıdır (_GLPosition); yazılabilir .x, .y, .z float alanlarına sahiptir.Many functions receive or return position information through this type. It is a simple Python class created at runtime (_GLPosition); it has writable float fields .x, .y and .z.

pos = GLPlayer.GetPixelPosition()
Log("%f, %f, %f" % (pos.x, pos.y, pos.z))

pos.x = pos.x + 100.0   # Position nesnesi değiştirilebilir# The Position object can be modified
GLPlayer.SetPixelPosition(pos)

# Position bekleyen fonksiyonlara 3 elemanlı tuple da verilebilir:# Functions that expect a Position also accept a 3-element tuple:
GLPlayer.SetPixelPosition((123.0, 456.0, 0.0))

Tüm Class'larAll Classes

Global FonksiyonlarGlobal Functions2 fonksiyon2 functions

Herhangi bir class'a bağlı olmadan doğrudan çağrılırCalled directly, without belonging to any class

GLList2 fonksiyon2 functions

Yakındaki objeleri ve yerdeki itemleri listelerLists nearby objects and items on the ground

GLPlayer19 fonksiyon19 functions

Kendi karakterinin durumu (C++ namespace: Player)Your character's state (C++ namespace: Player)

GLPythonPlayer35 fonksiyon35 functions

Envanter, statlar, skill ve hedef bilgisi (C++ namespace: CPythonPlayer)Inventory, stats, skills and target info (C++ namespace: CPythonPlayer)

GLPythonShop12 fonksiyon12 functions

NPC/oyuncu dükkânları (C++ namespace: CPythonShop)NPC/player shops (C++ namespace: CPythonShop)

GLPythonSafeBox11 fonksiyon11 functions

Kasa (deposit box) işlemleri (C++ namespace: CPythonSafeBox)Safebox (deposit box) operations (C++ namespace: CPythonSafeBox)

GLPythonNetworkStream54 fonksiyon54 functions

Sunucuya paket gönderme katmanı (C++ namespace: CPythonNetworkStream)Packet sending layer to the server (C++ namespace: CPythonNetworkStream)

GLConnect6 fonksiyon6 functions

Kanal (channel) ve karakter değiştirme (C++ namespace: Connect)Channel and character switching (C++ namespace: Connect)

GLHelper10 fonksiyon10 functions

Geometri, zaman ve engel kontrol yardımcılarıGeometry, time and obstacle-check helpers

GLItem9 fonksiyon9 functions

VNUM bazlı item veritabanı sorguları (C++ namespace: CItemManager)VNUM-based item database queries (C++ namespace: CItemManager)

GLDamage17 fonksiyon17 functions

Otomatik saldırı/toplama durumu ve güvenli bölge ayarları (C++ namespace: Damage)Auto attack/pickup status and safe-zone settings (C++ namespace: Damage)

GLAPI1 fonksiyon1 function

Genel / test amaçlı yardımcılarGeneral / test helpers

Global FonksiyonlarGlobal Functions

Herhangi bir class'a bağlı olmadan doğrudan çağrılırCalled directly, without belonging to any class

GetPosition() -> Position

Oyuncunun (x, y, z) konumunu döndürür.Returns the player's (x, y, z) position.

Parametre almaz.Takes no parameters.

Dönüş:Returns: Position — Oyuncunun güncel konumu— The player's current position
KullanımUsage
pos = GetPosition()
Log("X: %f" % pos.x)
SetPosition(pos: Position | tuple) -> None

Oyuncuyu verilen konuma anlık ışınlatır (client-side; sunucuya hareket paketi göndermez).Instantly teleports the player to the given position (client-side; does not send a movement packet to the server).

ParametreParameterTipTypeAçıklamaDescription
posPosition | tupleHedef konumTarget position
Dönüş:Returns: None
KullanımUsage
SetPosition((123.0, 456.0, 0.0))

GLList

Yakındaki objeleri ve yerdeki itemleri listelerLists nearby objects and items on the ground

GetObjectList(range: int) -> list[dict]

Belirtilen menzildeki bütün objeleri (mob, NPC, oyuncu) döndürür. InstanceType == 6 oyuncu demektir.Returns all objects (mob, NPC, player) within the given range. InstanceType == 6 means player.

ParametreParameterTipTypeAçıklamaDescription
rangeintTarama yarıçapıScan radius
Dönüş:Returns: list[dict] — {InstanceType, VirtualNumber, Race, VirtualID, Name, IsDead, Rotation, GetPixelPosition}
⚠️ İç içe geçen GetPixelPosition alanı bir Position nesnesidir (tuple değil).⚠️ The nested GetPixelPosition field is a Position object (not a tuple).
KullanımUsage
for obj in GLList.GetObjectList(200):
    if obj["InstanceType"] == 6:
        Log(obj["Name"])
GetGroundItemList(range: int) -> list[dict]

Belirtilen menzildeki yerde duran itemleri döndürür.Returns the items lying on the ground within the given range.

ParametreParameterTipTypeAçıklamaDescription
rangeintTarama yarıçapıScan radius
Dönüş:Returns: list[dict] — {VID, VNUM, Owner, Position}
KullanımUsage
for item in GLList.GetGroundItemList(100):
    if item["Owner"] == "":
        GLPythonNetworkStream.SendItemPickupPacket(item["VID"])

GLPlayer

Kendi karakterinin durumu (C++ namespace: Player)Your character's state (C++ namespace: Player)

IsOnline() -> bool

Karakter oyunda (dünyada) mı.Is the character in the game world?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
if GLPlayer.IsOnline():
    pass
IsReady() -> bool

Karakter tamamen yüklenip hazır mı.Is the character fully loaded and ready?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
if GLPlayer.IsReady():
    pass
IsDead() -> bool

Karakter öldü mü.Is the character dead?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
if GLPlayer.IsDead():
    pass
IsWalking() -> bool

Karakter şu an yürüyor mu.Is the character currently walking?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
if GLPlayer.IsWalking():
    pass
IsRideMount() -> bool

Karakter binek üzerinde mi.Is the character riding a mount?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
mounted = GLPlayer.IsRideMount()
GetLevel() -> int

Karakter seviyesi.Character level.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
lvl = GLPlayer.GetLevel()
GetName() -> str

Karakter adı.Character name.

Parametre almaz.Takes no parameters.

Dönüş:Returns: str
KullanımUsage
name = GLPlayer.GetName()
GetVirtualID() -> int

Karakterin kendi Virtual ID'si (VID).The character's own Virtual ID (VID).

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
vid = GLPlayer.GetVirtualID()
GetGuildID() -> int

Karakterin üye olduğu loncanın ID'si.ID of the guild the character belongs to.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
gid = GLPlayer.GetGuildID()
GetGuildName() -> str

Karakterin üye olduğu loncanın adı.Name of the guild the character belongs to.

Parametre almaz.Takes no parameters.

Dönüş:Returns: str
KullanımUsage
gname = GLPlayer.GetGuildName()
GetType() -> int

Karakterin obje tipi (instance type).The character's object type (instance type).

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
GLPlayer.GetType()
GetRace() -> int

Karakterin ırk/job ID'si.The character's race/job ID.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
GLPlayer.GetRace()
GetRotation() -> float

Karakterin bakış açısı (derece).The character's view angle (degrees).

Parametre almaz.Takes no parameters.

Dönüş:Returns: float
KullanımUsage
rot = GLPlayer.GetRotation()
SetRotation(rotation: float) -> None

Karakterin bakış açısını client-side değiştirir.Changes the character's view angle (client-side).

ParametreParameterTipTypeAçıklamaDescription
rotationfloatYeni açı (derece)New angle (degrees)
Dönüş:Returns: None
KullanımUsage
GLPlayer.SetRotation(90.0)
GetPixelPosition() -> Position

Karakterin güncel konumu (GetPosition() ile aynı).The character's current position (same as GetPosition()).

Parametre almaz.Takes no parameters.

Dönüş:Returns: Position
KullanımUsage
pos = GLPlayer.GetPixelPosition()
SetPixelPosition(pos: Position | tuple) -> None

Karakteri verilen konuma client-side ışınlatır.Teleports the character to the given position (client-side).

ParametreParameterTipTypeAçıklamaDescription
posPosition | tupleHedef konumTarget position
Dönüş:Returns: None
KullanımUsage
GLPlayer.SetPixelPosition((x, y, z))
SetSkipCollision(state: bool) -> None

Duvar/collision kontrolünü açıp kapatır (wall-hack).Toggles the wall/collision check (wall-hack).

ParametreParameterTipTypeAçıklamaDescription
statebool1: çoklu geçiş açık, 0: kapalı1: multi-pass on, 0: off
Dönüş:Returns: None
KullanımUsage
GLPlayer.SetSkipCollision(1)
Move(pos: Position | tuple) -> None

Karakteri belirtilen hedefe doğru yürütmeye başlatır.Starts walking the character toward the given target.

ParametreParameterTipTypeAçıklamaDescription
posPosition | tupleHedef konumTarget position
Dönüş:Returns: None
KullanımUsage
GLPlayer.Move((x, y, z))
ChangeMap(mapName: str) -> None

Harita değiştirme işlemini başlatır; işlem arka planda asenkron olarak yürütülür.Starts the map change; the operation runs asynchronously in the background.

ParametreParameterTipTypeAçıklamaDescription
mapNamestrHedef harita adı (örn. metin2_map_a2)Target map name (e.g. metin2_map_a2)
Dönüş:Returns: None
KullanımUsage
GLPlayer.ChangeMap("metin2_map_n_flame_01")

GLPythonPlayer

Envanter, statlar, skill ve hedef bilgisi (C++ namespace: CPythonPlayer)Inventory, stats, skills and target info (C++ namespace: CPythonPlayer)

GetStatus(type: int) -> int

Belirtilen stat türünün güncel değerini döndürür.Returns the current value of the given stat type.

ParametreParameterTipTypeAçıklamaDescription
typeintStat tipi (örn. 3=EXP, 4=MaxEXP, 5=MaxHP, 6=HP, 7=MaxSP, 8=SP, 11=Yang)Stat type (e.g. 3=EXP, 4=MaxEXP, 5=MaxHP, 6=HP, 7=MaxSP, 8=SP, 11=Yang)
Dönüş:Returns: int
KullanımUsage
hp = GLPythonPlayer.GetStatus(6)
GetTargetVID() -> int

Şu anki hedefin Virtual ID'si.Virtual ID of the current target.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
vid = GLPythonPlayer.GetTargetVID()
GetTargetVNUM() -> int

Şu anki hedefin VNUM'u (mob/NPC tür ID'si).VNUM of the current target (mob/NPC type ID).

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
vnum = GLPythonPlayer.GetTargetVNUM()
SetTargetVID(vid: int) -> None

Hedefi doğrudan (paket göndermeden) ayarlar.Sets the target directly (without sending a packet).

ParametreParameterTipTypeAçıklamaDescription
vidintHedef Virtual IDTarget Virtual ID
Dönüş:Returns: None
KullanımUsage
GLPythonPlayer.SetTargetVID(vid)
SetTarget(vid: int, forceChange: int) -> None

Hedefi ayarlar ve isteğe bağlı olarak zorla değiştirir.Sets the target and optionally forces the change.

ParametreParameterTipTypeAçıklamaDescription
vidintHedef Virtual IDTarget Virtual ID
forceChangeint1 ise zorla değiştir1 = force the change
Dönüş:Returns: None
KullanımUsage
GLPythonPlayer.SetTarget(vid, 1)
GetVIDByVNUM(vnum: int) -> int

Yakın çevredeki objeler arasında belirtilen VNUM'a sahip olanı arar.Searches nearby objects for one with the given VNUM.

ParametreParameterTipTypeAçıklamaDescription
vnumintAranan VNUMSearched VNUM
Dönüş:Returns: int — Bulunursa VID, bulunamazsa 0— VID if found, 0 if not found
KullanımUsage
vid = GLPythonPlayer.GetVIDByVNUM(101)
GetNameByVID(vid: int) -> str

VID'ye karşılık gelen objenin adını döndürür.Returns the name of the object matching the VID.

ParametreParameterTipTypeAçıklamaDescription
vidintAranan Virtual IDSearched Virtual ID
Dönüş:Returns: str
KullanımUsage
name = GLPythonPlayer.GetNameByVID(vid)
GetTargetPixelPosition(vid: int) -> Position

Belirtilen VID'ye sahip objenin konumunu döndürür.Returns the position of the object with the given VID.

ParametreParameterTipTypeAçıklamaDescription
vidintHedef Virtual IDTarget Virtual ID
Dönüş:Returns: Position
KullanımUsage
pos = GLPythonPlayer.GetTargetPixelPosition(vid)
SetAutoAttackTargetActorID(vid: int) -> None

Otomatik saldırı hedefini ayarlar.Sets the auto attack target.

ParametreParameterTipTypeAçıklamaDescription
vidintHedef Virtual IDTarget Virtual ID
Dönüş:Returns: None
KullanımUsage
GLPythonPlayer.SetAutoAttackTargetActorID(vid)
GetAutoAttackTargetActorState() -> bool

Otomatik saldırı hedefinin geçerli/canlı olup olmadığı.Whether the auto attack target is valid/alive.

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
GLPythonPlayer.GetAutoAttackTargetActorState()
ClickSkillSlot(index: int) -> None

Belirtilen skill slotunu tetikler (kullanmaya çalışır).Triggers the given skill slot (tries to use it).

ParametreParameterTipTypeAçıklamaDescription
indexintSkill slot indeksiSkill slot index
Dönüş:Returns: None
KullanımUsage
GLPythonPlayer.ClickSkillSlot(0)
CanUseSkill(index: int) -> bool

Skill kullanılabilir durumda mı (cooldown/mana vb.).Is the skill usable (cooldown/mana etc.)?

ParametreParameterTipTypeAçıklamaDescription
indexintSkill slot indeksiSkill slot index
Dönüş:Returns: bool
KullanımUsage
if GLPythonPlayer.CanUseSkill(0):
    pass
GetSkillGrade(slotIndex: int) -> int

Skill'in seviyesini (grade) döndürür.Returns the skill's level (grade).

ParametreParameterTipTypeAçıklamaDescription
slotIndexintSkill slot indeksiSkill slot index
Dönüş:Returns: int
KullanımUsage
grade = GLPythonPlayer.GetSkillGrade(0)
GetSkillIndex(slotIndex: int) -> int

Skill'in gerçek index numarasını döndürür.Returns the real index number of the skill.

ParametreParameterTipTypeAçıklamaDescription
slotIndexintSkill slot indeksiSkill slot index
Dönüş:Returns: int
KullanımUsage
idx = GLPythonPlayer.GetSkillIndex(0)
IsSkillActive(slotIndex: int) -> bool

Skill aktif/kullanımda mı.Is the skill active/in use?

ParametreParameterTipTypeAçıklamaDescription
slotIndexintSkill slot indeksiSkill slot index
Dönüş:Returns: bool
⚠️ Alttaki C++ fonksiyonu bir BYTE işaretçisi bekliyor; buraya düz int gönderilmesi orijinal API'nin bir kısıtlamasıdır, dikkatli kullanın.⚠️ The C++ function below expects a BYTE pointer; passing a plain int is a limitation of the original API, so use it with care.
KullanımUsage
GLPythonPlayer.IsSkillActive(0)
__SendUseSkill(skillSlot: int, targetVID: int) -> None

Belirtilen skill'i belirtilen hedefe kullanma paketi gönderir.Sends a packet that uses the given skill on the given target.

ParametreParameterTipTypeAçıklamaDescription
skillSlotintSkill slot indeksiSkill slot index
targetVIDintHedef VIDTarget VID
Dönüş:Returns: None
KullanımUsage
GLPythonPlayer.__SendUseSkill(0, vid)
__SendClickActorPacket(instance: int) -> None

Bir objeye tıklama paketi gönderir.Sends a click packet to an object.

ParametreParameterTipTypeAçıklamaDescription
instanceintHam obje işaretçisi (DWORD)Raw object pointer (DWORD)
Dönüş:Returns: None
⚠️ UYARI: 'instance' ham bir bellek adresidir (pointer). Python scriptinden geçerli bir değer üretmek güvenli değildir; sadece başka bir C++ kaynağından gelen değerle kullanılmalıdır.⚠️ WARNING: 'instance' is a raw memory address (pointer). Generating a valid value from a Python script is not safe; only use it with a value obtained from another C++ source.
KullanımUsage
GLPythonPlayer.__SendClickActorPacket(instance)
GetWeaponVNUM() -> int

Kuşanılan silahın VNUM'unu döndürür.Returns the VNUM of the equipped weapon.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
vnum = GLPythonPlayer.GetWeaponVNUM()
GetExtendInvenMax() -> int

Genişletilmiş envanterin maksimum slot sayısı.Maximum slot count of the extended inventory.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
maxSlot = GLPythonPlayer.GetExtendInvenMax()
GetItemVnumByIndex(index: int) -> int

Belirtilen slottaki itemin VNUM'unu döndürür.Returns the VNUM of the item in the given slot.

ParametreParameterTipTypeAçıklamaDescription
indexintEnvanter slotuInventory slot
Dönüş:Returns: int
KullanımUsage
vnum = GLPythonPlayer.GetItemVnumByIndex(0)
GetItemSlotByVnum(vnum: int) -> int

Belirtilen VNUM'a sahip itemin envanterdeki slotunu bulur.Finds the inventory slot of the item with the given VNUM.

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
Dönüş:Returns: int
KullanımUsage
slot = GLPythonPlayer.GetItemSlotByVnum(vnum)
GetItemCount(index: int) -> int

Belirtilen slottaki item adedini döndürür.Returns the item count in the given slot.

ParametreParameterTipTypeAçıklamaDescription
indexintEnvanter slotuInventory slot
Dönüş:Returns: int
KullanımUsage
count = GLPythonPlayer.GetItemCount(0)
GetItemCountByVnum(vnum: int) -> int

Envanterdeki belirtilen VNUM'a sahip toplam item adedi.Total count of items with the given VNUM in the inventory.

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
Dönüş:Returns: int
KullanımUsage
count = GLPythonPlayer.GetItemCountByVnum(vnum)
GetItemCountManual(vnum: int) -> int

GetItemCountByVnum'a alternatif, manuel tarama ile sayar.Alternative to GetItemCountByVnum; counts by manual scanning.

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
Dönüş:Returns: int
KullanımUsage
count = GLPythonPlayer.GetItemCountManual(vnum)
GetItemTypeBySlot(cell: int) -> int

Belirtilen slottaki itemin tipini döndürür.Returns the type of the item in the given slot.

ParametreParameterTipTypeAçıklamaDescription
cellintEnvanter slotuInventory slot
Dönüş:Returns: int
KullanımUsage
itemType = GLPythonPlayer.GetItemTypeBySlot(0)
GetItemSubTypeBySlot(cell: int) -> int

Belirtilen slottaki itemin alt tipini döndürür.Returns the sub-type of the item in the given slot.

ParametreParameterTipTypeAçıklamaDescription
cellintEnvanter slotuInventory slot
Dönüş:Returns: int
KullanımUsage
subType = GLPythonPlayer.GetItemSubTypeBySlot(0)
GetItemNameByVNUM(vnum: int) -> str

Item'in görünen adını döndürür.Returns the display name of the item.

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
Dönüş:Returns: str — Boş string, item verisi henüz yüklenmemişse— Empty string, if the item data is not loaded yet
⚠️ Oyun belleğinden doğrudan okuma yapar; item istemci tarafından henüz tanımlanmamışsa boş sonuç dönebilir.⚠️ Reads directly from game memory; may return an empty result if the item is not yet defined on the client.
KullanımUsage
name = GLPythonPlayer.GetItemNameByVNUM(vnum)
GetItemAttribute(cell: int, slotIdx: int, outType: int, outValue: int) -> None

Bir itemin belirtilen attribute slotunu okur (ham C++ API).Reads the given attribute slot of an item (raw C++ API).

ParametreParameterTipTypeAçıklamaDescription
cellintEnvanter slotuInventory slot
slotIdxintAttribute slotu (0-4)Attribute slot (0-4)
outTypeintÇıkış: tip (ham adres)Output: type (raw address)
outValueintÇıkış: değer (ham adres)Output: value (raw address)
Dönüş:Returns: None
⚠️ UYARI: outType/outValue parametreleri ham bellek adresleridir. Python'dan güvenle kullanılamaz; genel kullanım için önerilmez.⚠️ WARNING: outType/outValue parameters are raw memory addresses. Not safe to use from Python; not recommended for general use.
KullanımUsage
# onerilmez, bkz. notlar
GetItemAttributeCount(index: int) -> int

Bir itemin kaç dolu attribute'u olduğunu sayar.Counts how many attributes an item has filled.

ParametreParameterTipTypeAçıklamaDescription
indexintEnvanter slotuInventory slot
Dönüş:Returns: int
KullanımUsage
count = GLPythonPlayer.GetItemAttributeCount(0)
GetAttributeNameByID(id: int) -> str

Bir attribute ID'sinin görünen adını döndürür.Returns the display name of an attribute ID.

ParametreParameterTipTypeAçıklamaDescription
idintAttribute tip ID'siAttribute type ID
Dönüş:Returns: str
KullanımUsage
name = GLPythonPlayer.GetAttributeNameByID(1)
NEW_Fishing() -> None

Balık tutma aksiyonunu başlatır.Starts the fishing action.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLPythonPlayer.NEW_Fishing()
IHavePickaxe() -> bool

Envanterde/kuşanımda kazma var mı.Is there a pickaxe in the inventory/equipped?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
GLPythonPlayer.IHavePickaxe()
GetPickaxeCurrentScore() -> int

Kuşanılan kazmanın güncel dayanıklılık/skorunu döndürür.Returns the current durability/score of the equipped pickaxe.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
score = GLPythonPlayer.GetPickaxeCurrentScore()
GetPickaxeMaxScore() -> int

Kuşanılan kazmanın maksimum dayanıklılık/skorunu döndürür.Returns the maximum durability/score of the equipped pickaxe.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
maxScore = GLPythonPlayer.GetPickaxeMaxScore()
FrameSkip(status: bool) -> None

Render frame-skip modunu açar/kapatır (performans ayarı).Enables/disables the render frame-skip mode (performance setting).

ParametreParameterTipTypeAçıklamaDescription
statusbool1: frame skip açık1: frame skip on
Dönüş:Returns: None
KullanımUsage
GLPythonPlayer.FrameSkip(1)

GLPythonShop

NPC/oyuncu dükkânları (C++ namespace: CPythonShop)NPC/player shops (C++ namespace: CPythonShop)

IsOpen() -> bool

Bir dükkân penceresi açık mı.Is a shop window open?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
if GLPythonShop.IsOpen():
    pass
OpenShopFast(vid: int) -> None

Belirtilen satıcının dükkânını hızlıca açma paketi gönderir.Sends a packet that quickly opens the given seller's shop.

ParametreParameterTipTypeAçıklamaDescription
vidintSatıcı NPC/oyuncunun Virtual ID'siVirtual ID of the seller NPC/player
Dönüş:Returns: None
KullanımUsage
GLPythonShop.OpenShopFast(vid)
GetItemListSize() -> int

Açık dükkândaki toplam item sayısı.Total number of items in the open shop.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
size = GLPythonShop.GetItemListSize()
GetSlotByVNUM(vnum: int) -> int

Dükkân listesinde belirtilen VNUM'un slotunu bulur.Finds the slot of the given VNUM in the shop list.

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
Dönüş:Returns: int
KullanımUsage
slot = GLPythonShop.GetSlotByVNUM(vnum)
GetItemVNUM(index: int) -> int

Belirtilen slottaki itemin VNUM'unu döndürür.Returns the VNUM of the item in the given slot.

ParametreParameterTipTypeAçıklamaDescription
indexintDükkân slotuShop slot
Dönüş:Returns: int
KullanımUsage
vnum = GLPythonShop.GetItemVNUM(0)
GetItemPrice(index: int) -> int

Belirtilen slottaki itemin fiyatını döndürür.Returns the price of the item in the given slot.

ParametreParameterTipTypeAçıklamaDescription
indexintDükkân slotuShop slot
Dönüş:Returns: int
KullanımUsage
price = GLPythonShop.GetItemPrice(0)
GetItemWon(index: int) -> int

Belirtilen slottaki itemin WON (cash) fiyatını döndürür.Returns the WON (cash) price of the item in the given slot.

ParametreParameterTipTypeAçıklamaDescription
indexintDükkân slotuShop slot
Dönüş:Returns: int
KullanımUsage
won = GLPythonShop.GetItemWon(0)
GetItemCount(index: int) -> int

Belirtilen slottaki item adedini döndürür.Returns the item count in the given slot.

ParametreParameterTipTypeAçıklamaDescription
indexintDükkân slotuShop slot
Dönüş:Returns: int
KullanımUsage
count = GLPythonShop.GetItemCount(0)
IsMyItemInMarket(index: int) -> bool

Belirtilen slottaki item kendi satışın mı.Is the item in the given slot my own sale?

ParametreParameterTipTypeAçıklamaDescription
indexintDükkân/market slotuShop/market slot
Dönüş:Returns: bool
KullanımUsage
GLPythonShop.IsMyItemInMarket(0)
IsLimitedItemShop(vid: int) -> bool

Bu satıcı sınırlı stoklu bir dükkân mı.Is this seller a limited-stock shop?

ParametreParameterTipTypeAçıklamaDescription
vidintSatıcı Virtual IDSeller Virtual ID
Dönüş:Returns: bool
KullanımUsage
GLPythonShop.IsLimitedItemShop(vid)
AddPrivateShopItemStock(itemPos: int, displayPos: int, price: int, priceCheque: int) -> None

Kendi özel dükkânına (private shop) satılacak bir item ekler.Adds an item to your own private shop for sale.

ParametreParameterTipTypeAçıklamaDescription
itemPosintEnvanter slotuInventory slot
displayPosintDükkânda gösterilecek sıraDisplay order in the shop
priceintYang fiyatıYang price
priceChequeintÇek/WON fiyatıCheque/WON price
Dönüş:Returns: None
KullanımUsage
GLPythonShop.AddPrivateShopItemStock(0, 0, 1000, 0)
SetBlackListNicks(nickList: str) -> None

Otomatik alım (auto-buy) özelliğinde göz ardı edilecek satıcı adlarını ayarlar.Sets the seller names to ignore in the auto-buy feature.

ParametreParameterTipTypeAçıklamaDescription
nickListstrVirgül/satırla ayrılmış kullanıcı adlarıComma/line-separated usernames
Dönüş:Returns: None
KullanımUsage
GLPythonShop.SetBlackListNicks("kullanici1,kullanici2")

GLPythonSafeBox

Kasa (deposit box) işlemleri (C++ namespace: CPythonSafeBox)Safebox (deposit box) operations (C++ namespace: CPythonSafeBox)

IsOpen() -> bool

Kasa penceresi açık mı.Is the safebox window open?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
if GLPythonSafeBox.IsOpen():
    pass
isPasswordWindowOpen() -> bool

Kasa şifre giriş penceresi açık mı.Is the safebox password entry window open?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
GLPythonSafeBox.isPasswordWindowOpen()
OpenSafeBox() -> None

Önceden SetSafeBoxInfo ile kaydedilen şifreyle kasayı açar (tam paket akışı).Opens the safebox with the password saved earlier via SetSafeBoxInfo (full packet flow).

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLPythonSafeBox.OpenSafeBox()
OpenSafeBoxPacket(password: str) -> None

Doğrudan verilen şifreyle kasa açma paketi gönderir.Sends a packet that opens the safebox directly with the given password.

ParametreParameterTipTypeAçıklamaDescription
passwordstrKasa şifresiSafebox password
Dönüş:Returns: None
KullanımUsage
GLPythonSafeBox.OpenSafeBoxPacket("1234")
CreateSafeBox() -> None

Yeni bir kasa oluşturma işlemini (tam paket akışı) başlatır.Starts the new safebox creation process (full packet flow).

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLPythonSafeBox.CreateSafeBox()
SkipSafeBoxQuests() -> None

Kasa açılışındaki tanıtım/quest diyaloglarını otomatik geçer.Automatically skips the intro/quest dialogs when the safebox opens.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLPythonSafeBox.SkipSafeBoxQuests()
SetSafeBoxInfo(password: str) -> None

Kasa şifresini bot içinde saklar (OpenSafeBox() tarafından kullanılır).Stores the safebox password inside the bot (used by OpenSafeBox()).

ParametreParameterTipTypeAçıklamaDescription
passwordstrKasa şifresiSafebox password
Dönüş:Returns: None
KullanımUsage
GLPythonSafeBox.SetSafeBoxInfo("1234")
GetBestEmptySlot() -> int

Kasada kullanılabilir en uygun boş slotu bulur.Finds the best available empty slot in the safebox.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
slot = GLPythonSafeBox.GetBestEmptySlot()
GetItemVNUMBySlot(slot: int) -> int

Belirtilen kasa slotundaki itemin VNUM'unu döndürür.Returns the VNUM of the item in the given safebox slot.

ParametreParameterTipTypeAçıklamaDescription
slotintKasa slotuSafebox slot
Dönüş:Returns: int — Boşsa -1— -1 if empty
KullanımUsage
vnum = GLPythonSafeBox.GetItemVNUMBySlot(0)
ConvertYangToWon(count: int) -> None

Yang'ı WON'a çevirme işlemini başlatır.Starts the Yang-to-WON conversion.

ParametreParameterTipTypeAçıklamaDescription
countintÇevrilecek adet/miktarAmount to convert
Dönüş:Returns: None
KullanımUsage
GLPythonSafeBox.ConvertYangToWon(1)
OpenSafeBoxMarket() -> None

Kasanın 'market' alt penceresini açar.Opens the safebox's 'market' sub-window.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLPythonSafeBox.OpenSafeBoxMarket()

GLPythonNetworkStream

Sunucuya paket gönderme katmanı (C++ namespace: CPythonNetworkStream)Packet sending layer to the server (C++ namespace: CPythonNetworkStream)

GetPhase() -> int

İstemcinin şu anki faz/durum (phase) değeri.The client's current phase/state value.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
phase = GLPythonNetworkStream.GetPhase()
SetPhase(phase: int) -> None

İstemci fazını değiştirir.Changes the client phase.

ParametreParameterTipTypeAçıklamaDescription
phaseintYeni faz değeriNew phase value
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SetPhase(phase)
ServerName() -> str

Bağlı olunan sunucunun adı.Name of the server currently connected to.

Parametre almaz.Takes no parameters.

Dönüş:Returns: str
KullanımUsage
name = GLPythonNetworkStream.ServerName()
GetCH() -> int

Bağlı olunan kanal (channel) numarası.Number of the channel currently connected to.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
ch = GLPythonNetworkStream.GetCH()
GetFastTeleportState() -> bool

Hızlı ışınlanma (fast teleport) modu açık mı.Is the fast teleport mode enabled?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
GLPythonNetworkStream.GetFastTeleportState()
SetFastTeleportState(state: bool) -> None

Hızlı ışınlanma modunu açar/kapatır.Enables/disables the fast teleport mode.

ParametreParameterTipTypeAçıklamaDescription
statebool1: açık, 0: kapalı1: on, 0: off
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SetFastTeleportState(1)
GetAttrMap() -> bool

Zemin/engel (attribute map) kontrolü açık mı.Is the ground/obstacle (attribute map) check enabled?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
GLPythonNetworkStream.GetAttrMap()
SetAttrMap(status: bool) -> None

Zemin/engel kontrolünü açar/kapatır.Enables/disables the ground/obstacle check.

ParametreParameterTipTypeAçıklamaDescription
statusbool1: açık, 0: kapalı1: on, 0: off
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SetAttrMap(1)
SendCharacterStatePacket(pos: Position | tuple, rotation: float, state1: int, state2: int) -> None

Karakterin anlık konum/durumunu sunucuya bildiren paket gönderir (hareket senkronizasyonu).Sends a packet that informs the server of the character's current position/state (movement sync).

ParametreParameterTipTypeAçıklamaDescription
posPosition | tupleKonumPosition
rotationfloatBakış açısıView angle
state1intDurum biti 1Status bit 1
state2intDurum biti 2Status bit 2
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendCharacterStatePacket(pos, rotation, 1, 0)
SendBattleAttackPacket(motion: int, targetVID: int) -> None

Yakın dönüş saldırı paketi gönderir.Sends a melee-return attack packet.

ParametreParameterTipTypeAçıklamaDescription
motionintSaldırı animasyon/motion ID'siAttack animation/motion ID
targetVIDintHedef Virtual IDTarget Virtual ID
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendBattleAttackPacket(0, vid)
SendAttackPacket(motion: int, targetVID: int) -> None

SendBattleAttackPacket ile aynı (alias).Same as SendBattleAttackPacket (alias).

ParametreParameterTipTypeAçıklamaDescription
motionintSaldırı animasyon/motion ID'siAttack animation/motion ID
targetVIDintHedef Virtual IDTarget Virtual ID
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendAttackPacket(0, vid)
SendFlyTargetingPacket(vid: int, pos: Position | tuple) -> None

Mesafeli/uçan saldırı hedefleme paketi gönderir.Sends a ranged/flying attack targeting packet.

ParametreParameterTipTypeAçıklamaDescription
vidintHedef Virtual IDTarget Virtual ID
posPosition | tupleHedef konumTarget position
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendFlyTargetingPacket(vid, pos)
SendUseSkillPacket(skillIndex: int, targetVID: int) -> None

Skill kullanma paketi gönderir.Sends a skill-use packet.

ParametreParameterTipTypeAçıklamaDescription
skillIndexintSkill indexSkill index
targetVIDintHedef Virtual IDTarget Virtual ID
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendUseSkillPacket(0, vid)
SendShootPacket(targetVID: int) -> None

Menzilli (ok vb.) saldırı paketi gönderir.Sends a ranged (arrow etc.) attack packet.

ParametreParameterTipTypeAçıklamaDescription
targetVIDintHedef Virtual IDTarget Virtual ID
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendShootPacket(vid)
SendItemPickupPacket(vid: int) -> None

Yerdeki bir itemi alma paketi gönderir.Sends a packet that picks up an item from the ground.

ParametreParameterTipTypeAçıklamaDescription
vidintYerdeki itemin Virtual ID'siVirtual ID of the item on the ground
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendItemPickupPacket(vid)
SendItemUsePacket(slot: int) -> None

Envanterden bir itemi kullanma paketi gönderir.Sends a packet that uses an item from the inventory.

ParametreParameterTipTypeAçıklamaDescription
slotintEnvanter slotuInventory slot
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendItemUsePacket(0)
SendItemUseToItemPacket(slot: int, targetSlot: int) -> None

Bir itemi başka bir item üzerinde kullanma paketi gönderir (örn. birleştirme).Sends a packet that uses one item on another item (e.g. combining).

ParametreParameterTipTypeAçıklamaDescription
slotintKaynak item slotuSource item slot
targetSlotintHedef item slotuTarget item slot
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendItemUseToItemPacket(0, 1)
SendItemDropPacket(vnum: int, count: int) -> None

Item bırakma paketi (eski format) gönderir.Sends an item drop packet (old format).

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
countintAdetCount
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendItemDropPacket(vnum, 1)
SendItemDropPacketNew(slot: int, count: int, unk: int) -> None

Item bırakma paketi (yeni format) gönderir.Sends an item drop packet (new format).

ParametreParameterTipTypeAçıklamaDescription
slotintEnvanter slotuInventory slot
countintAdetCount
unkintBilinmeyen parametreUnknown parameter
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendItemDropPacketNew(0, 1, 0)
SendGiveItemPacket(targetVID: int, itemPos: int, count: int) -> None

Yakındaki bir oyuncuya doğrudan item verme paketi gönderir.Sends a packet that gives an item directly to a nearby player.

ParametreParameterTipTypeAçıklamaDescription
targetVIDintHedef oyuncu Virtual IDTarget player Virtual ID
itemPosintEnvanter slotuInventory slot
countintAdetCount
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendGiveItemPacket(vid, 0, 1)
SendSelectItemPacket(id: int) -> None

Bir diyalogda item/seçenek seçme paketi gönderir.Sends a packet that selects an item/option in a dialog.

ParametreParameterTipTypeAçıklamaDescription
idintSeçilen item/seçenek ID'siSelected item/option ID
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendSelectItemPacket(id)
MoveItemToSafeBox(a: int, b: int, c: int) -> None

Bir itemi envanterden kasaya taşıma paketi gönderir.Sends a packet that moves an item from the inventory to the safebox.

ParametreParameterTipTypeAçıklamaDescription
aintKaynak slotSource slot
bintHedef slotTarget slot
cintAdetCount
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.MoveItemToSafeBox(0, 0, 1)
SendSafeboxCheckoutPacket(index: int) -> None

Kasadan item çekme paketi gönderir.Sends a packet that withdraws an item from the safebox.

ParametreParameterTipTypeAçıklamaDescription
indexintKasa slotuSafebox slot
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendSafeboxCheckoutPacket(0)
SendStorageClose(a: int) -> None

Açık bir depo/kasa penceresini kapatma paketi gönderir.Sends a packet that closes the open storage/safebox window.

ParametreParameterTipTypeAçıklamaDescription
aintDepo tipi/parametresiStorage type/parameter
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendStorageClose(0)
SendShopBuyPacket(slotPos: int) -> None

Dükkândan item satın alma paketi gönderir.Sends a packet that buys an item from a shop.

ParametreParameterTipTypeAçıklamaDescription
slotPosintDükkândaki item slotuItem slot in the shop
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendShopBuyPacket(0)
SendShopSellPacketNew(a: int, b: int, c: int) -> None

Dükkâna/NPC'ye item satma paketi gönderir.Sends a packet that sells an item to a shop/NPC.

ParametreParameterTipTypeAçıklamaDescription
aintEnvanter slotuInventory slot
bintAdetCount
cintBilinmeyen parametreUnknown parameter
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendShopSellPacketNew(0, 1, 0)
SendShopEndPacket() -> None

Açık dükkân oturumunu sonlandırma paketi gönderir.Sends a packet that ends the open shop session.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendShopEndPacket()
SendExchangeStartPacket(vid: int) -> None

Takas (exchange) başlatma paketi gönderir.Sends an exchange-start packet.

ParametreParameterTipTypeAçıklamaDescription
vidintKarşı tarafın Virtual ID'siThe other party's Virtual ID
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendExchangeStartPacket(vid)
SendExchangeItemAddPacket(itemPos: int, exchangePos: int) -> None

Takas penceresine item ekleme paketi gönderir.Sends a packet that adds an item to the exchange window.

ParametreParameterTipTypeAçıklamaDescription
itemPosintEnvanter slotuInventory slot
exchangePosintTakas penceresindeki slotSlot in the exchange window
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendExchangeItemAddPacket(0, 0)
SendExchangeElkAddPacket(yang: int, won: int) -> None

Takas penceresine para (yang/won) ekleme paketi gönderir.Sends a packet that adds money (yang/won) to the exchange window.

ParametreParameterTipTypeAçıklamaDescription
yangintEklenecek yangYang to add
wonintEklenecek WONWON to add
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendExchangeElkAddPacket(1000, 0)
SendExchangeAcceptPacket() -> None

Takası onaylama paketi gönderir.Sends a packet that confirms the exchange.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendExchangeAcceptPacket()
SendRefinePacket(a: int, b: int) -> None

Item geliştirme (refine) paketi gönderir.Sends an item upgrade (refine) packet.

ParametreParameterTipTypeAçıklamaDescription
aintİşlem tipiOperation type
bintHedef slotTarget slot
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendRefinePacket(0, 0)
SendNpcQuestPacket(a: int, b: int, c: int) -> None

NPC quest diyaloğu ile ilgili paket gönderir.Sends a packet related to an NPC quest dialog.

ParametreParameterTipTypeAçıklamaDescription
aintNPC/diyalog parametresiNPC/dialog parameter
bintSeçenek/VIDOption/VID
cintEk parametreExtra parameter
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendNpcQuestPacket(0, 0, 0)
SendCommandPacket(a1: int, a2: int, a3: str) -> None

Düşük seviyeli, sayısal kodla tanımlanan bir istemci-içi komut paketi gönderir (örn. projede 54 koduyla UI/kamera ile ilgili işlemler için kullanılıyor).Sends a low-level, client-internal command packet identified by a numeric code (e.g. in this project, code 54 is used for UI/camera operations).

ParametreParameterTipTypeAçıklamaDescription
a1intKomut koduCommand code
a2intAlt parametreSub-parameter
a3strMetin parametresi (boş geçilebilir)Text parameter (may be left empty)
Dönüş:Returns: None
⚠️ Komut kodlarının anlamı istemci implementasyonuna bağlıdır; genel kullanım için özel bir API değildir.⚠️ The meaning of command codes depends on the client implementation; it is not a dedicated API for general use.
KullanımUsage
GLPythonNetworkStream.SendCommandPacket(54, 1, "")
SendGuilfOfferPacket(experience: int) -> None

Lonca'ya tecrübe (experience) bağışı paketi gönderir.Sends an experience donation packet to the guild.

ParametreParameterTipTypeAçıklamaDescription
experienceintBağışlanacak tecrübe miktarıAmount of experience to donate
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendGuilfOfferPacket(1000)
SendQuestInputStringPacket(text: str) -> None

Quest diyaloğunda metin girişi paketi gönderir.Sends a text-input packet in a quest dialog.

ParametreParameterTipTypeAçıklamaDescription
textstrGirilen metinEntered text
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendQuestInputStringPacket("merhaba")
SendScriptAnswerPacket(answer: int) -> None

Script/diyalog penceresine cevap paketi gönderir.Sends an answer packet to the script/dialog window.

ParametreParameterTipTypeAçıklamaDescription
answerintSeçilen cevap/buton index'iSelected answer/button index
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendScriptAnswerPacket(0)
SendOnClickPacket(vid: int) -> None

Bir NPC/objeye tıklama paketi gönderir.Sends a click packet to an NPC/object.

ParametreParameterTipTypeAçıklamaDescription
vidintTıklanan objenin Virtual ID'siVirtual ID of the clicked object
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendOnClickPacket(vid)
DirectEnter(channel: int) -> None

Belirtilen kanala doğrudan giriş paketi gönderir.Sends a direct entry packet to the given channel.

ParametreParameterTipTypeAçıklamaDescription
channelintGirilecek kanalChannel to enter
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.DirectEnter(1)
ClosePhase() -> None

Şu anki fazı/pencereyi kapatma paketi gönderir.Sends a packet that closes the current phase/window.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.ClosePhase()
CheckPacket(packet: int) -> None

Belirtilen paketi bekleme/kontrol kuyruğuna ekler.Adds the given packet to the wait/check queue.

ParametreParameterTipTypeAçıklamaDescription
packetintPaket ID'siPacket ID
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.CheckPacket(0)
SendChatPacket(text: str, type: int) -> None

Sohbet mesajı gönderir.Sends a chat message.

ParametreParameterTipTypeAçıklamaDescription
textstrMesaj metniMessage text
typeintSohbet tipi (normal/shout/vb.)Chat type (normal/shout/etc.)
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendChatPacket("merhaba", 0)
SendWhisperPacket(name: str, text: str) -> None

Fısıltı (whisper/tell) mesajı gönderir.Sends a whisper (tell) message.

ParametreParameterTipTypeAçıklamaDescription
namestrAlıcı kullanıcı adıRecipient username
textstrMesaj metniMessage text
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendWhisperPacket("oyuncu1", "merhaba")
SendServerCommand(command: str) -> None

Sunucuya özel bir komut string'i gönderir.Sends a server-specific command string.

ParametreParameterTipTypeAçıklamaDescription
commandstrKomut metniCommand text
Dönüş:Returns: None
⚠️ UYARI: Bu, sunucu/GM amaçlı düşük seviyeli bir kanaldır; içeriği sunucu implementasyonuna bağlıdır, dikkatli kullanılmalıdır.⚠️ WARNING: This is a low-level channel for server/GM purposes; its content depends on the server implementation, use with care.
KullanımUsage
GLPythonNetworkStream.SendServerCommand("komut")
SendEmoticon(id: int) -> None

Emoticon gösterme paketi gönderir.Sends a packet that shows an emoticon.

ParametreParameterTipTypeAçıklamaDescription
idintEmoticon ID'siEmoticon ID
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendEmoticon(0)
SendFishingPacket(rotation: int) -> None

Balık tutma (olta atma) paketi gönderir.Sends a fishing (cast line) packet.

ParametreParameterTipTypeAçıklamaDescription
rotationintOlta atış açısıCast angle
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendFishingPacket(0)
SendFishingQuitPacket(a: int, b: float) -> None

Balık tutmayı bırakma paketi gönderir.Sends a packet to stop fishing.

ParametreParameterTipTypeAçıklamaDescription
aintParametreParameter
bfloatParametreParameter
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendFishingQuitPacket(0, 0.0)
SendFishFryPacket(vid: int, index: int, unk: int) -> None

Balık kızartma/işlem paketi gönderir.Sends a fish frying/processing packet.

ParametreParameterTipTypeAçıklamaDescription
vidintHedef Virtual IDTarget Virtual ID
indexintIndex
unkintBilinmeyen parametreUnknown parameter
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendFishFryPacket(vid, 0, 1)
SendMailBoxPacket(title: str, content: str, sender: str, a: int, b: int, c: int, d: int) -> None

Posta (mail) gönderme paketi gönderir.Sends a mail-sending packet.

ParametreParameterTipTypeAçıklamaDescription
titlestrMail başlığıMail title
contentstrMail içeriğiMail content
senderstrAlıcı adıRecipient name
aintParametreParameter
bintParametreParameter
cintParametreParameter
dintParametreParameter
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendMailBoxPacket("Konu", "Icerik", "alici", 0, 0, 0, 0)
GetAllMailBoxPacket() -> None

Posta kutusu listesini isteme paketi gönderir.Sends a packet that requests the mailbox list.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.GetAllMailBoxPacket()
DeleteAllMailBoxPacket() -> None

Tüm postaları silme paketi gönderir.Sends a packet that deletes all mails.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.DeleteAllMailBoxPacket()
CloseMailBoxPacket() -> None

Posta kutusu penceresini kapatma paketi gönderir.Sends a packet that closes the mailbox window.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.CloseMailBoxPacket()
SetBlockOnScriptEventStart() -> None

Script olayı başlangıcında giriş engelleme durumunu ayarlar.Sets the input-blocking state when a script event starts.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
⚠️ Alt seviyede process belleğine doğrudan yazan bir yama (patch) uygular; sadece orijinal sistemde zaten var olduğu için listelenmiştir.⚠️ Applies a low-level patch that writes directly to process memory; listed only because it already exists in the original system.
KullanımUsage
GLPythonNetworkStream.SetBlockOnScriptEventStart()
SetUnBlockOnScriptEventStart() -> None

SetBlockOnScriptEventStart ile uygulanan engeli kaldırır.Removes the block applied by SetBlockOnScriptEventStart.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
⚠️ Alt seviyede process belleğine doğrudan yazan bir yama (patch) uygular; sadece orijinal sistemde zaten var olduğu için listelenmiştir.⚠️ Applies a low-level patch that writes directly to process memory; listed only because it already exists in the original system.
KullanımUsage
GLPythonNetworkStream.SetUnBlockOnScriptEventStart()

GLConnect

Kanal (channel) ve karakter değiştirme (C++ namespace: Connect)Channel and character switching (C++ namespace: Connect)

ManualCHChanger(ch: int) -> bool

Belirtilen kanala manuel olarak geçer.Manually switches to the given channel.

ParametreParameterTipTypeAçıklamaDescription
chintHedef kanal numarasıTarget channel number
Dönüş:Returns: bool — Başarılı ise True— True if successful
KullanımUsage
GLConnect.ManualCHChanger(2)
AutoCHChanger(serverName: str, ch: int) -> None

Belirtilen sunucu/kanal kombinasyonuna otomatik geçiş yapar (tam bağlantı akışı).Automatically switches to the given server/channel combination (full connection flow).

ParametreParameterTipTypeAçıklamaDescription
serverNamestrSunucu adıServer name
chintHedef kanal numarasıTarget channel number
Dönüş:Returns: None
KullanımUsage
GLConnect.AutoCHChanger("ServerAdi", 2)
AutoCharacterChanger(index: int) -> bool

Aynı sunucuda başka bir karakter slotuna geçer.Switches to another character slot on the same server.

ParametreParameterTipTypeAçıklamaDescription
indexintKarakter slotuCharacter slot
Dönüş:Returns: bool — Başarılı ise True— True if successful
KullanımUsage
GLConnect.AutoCharacterChanger(0)
GetRandomCHWithList() -> int

Kullanıcının kanal listesinden rastgele bir kanal seçer.Picks a random channel from the user's channel list.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
ch = GLConnect.GetRandomCHWithList()
GetNextCHInOrder() -> int

Kanal listesinde sıradaki kanalı döndürür.Returns the next channel in the channel list.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
ch = GLConnect.GetNextCHInOrder()
IsInCHList(ch: int) -> bool

Belirtilen kanal, kullanıcının tanımladığı kanal listesinde var mı.Is the given channel in the user-defined channel list?

ParametreParameterTipTypeAçıklamaDescription
chintKanal numarasıChannel number
Dönüş:Returns: bool
KullanımUsage
GLConnect.IsInCHList(2)

GLHelper

Geometri, zaman ve engel kontrol yardımcılarıGeometry, time and obstacle-check helpers

GetTime() -> int

Sistem çalışma süresini milisaniye olarak döndürür; zamanlayıcı (timer) mantığı için kullanılır.Returns the system uptime in milliseconds; used for timer logic.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int — Milisaniye (GetTickCount)— Milliseconds (GetTickCount)
KullanımUsage
t0 = GLHelper.GetTime()
# ...
if GLHelper.GetTime() - t0 >= 1000:
    pass
GetDistance(pos1: Position | tuple, pos2: Position | tuple) -> float

İki nokta arasındaki düz mesafeyi döndürür.Returns the straight-line distance between two points.

ParametreParameterTipTypeAçıklamaDescription
pos1Position | tupleBirinci noktaFirst point
pos2Position | tupleİkinci noktaSecond point
Dönüş:Returns: float
KullanımUsage
dist = GLHelper.GetDistance(GLPlayer.GetPixelPosition(), target_pos)
CountDistanceTwoPoints(pos1: Position | tuple, pos2: Position | tuple) -> int

İki nokta arasındaki mesafeyi tam sayı olarak döndürür.Returns the distance between two points as an integer.

ParametreParameterTipTypeAçıklamaDescription
pos1Position | tupleBirinci noktaFirst point
pos2Position | tupleİkinci noktaSecond point
Dönüş:Returns: int
KullanımUsage
dist = GLHelper.CountDistanceTwoPoints(pos1, pos2)
GetRotationToTarget(from_pos: Position | tuple, to_pos: Position | tuple) -> float

Bir noktadan diğerine bakmak için gereken açıdır (derece).The angle (in degrees) needed to look from one point to another.

ParametreParameterTipTypeAçıklamaDescription
from_posPosition | tupleBaşlangıç noktasıStart point
to_posPosition | tupleHedef noktaTarget point
Dönüş:Returns: float
KullanımUsage
rot = GLHelper.GetRotationToTarget(my_pos, target_pos)
AngleBetweenTwoPoints(x1: float, y1: float, x2: float, y2: float) -> float

İki (x, y) koordinatı arasındaki açıyı hesaplar (düz float parametreler, Position değil).Calculates the angle between two (x, y) coordinates (plain float parameters, not Position).

ParametreParameterTipTypeAçıklamaDescription
x1floatBirinci nokta XFirst point X
y1floatBirinci nokta YFirst point Y
x2floatİkinci nokta XSecond point X
y2floatİkinci nokta YSecond point Y
Dönüş:Returns: float
KullanımUsage
angle = GLHelper.AngleBetweenTwoPoints(0.0, 0.0, 100.0, 100.0)
GetPercentPointBetweenTwoPoints(pos1: Position | tuple, pos2: Position | tuple, percent: float) -> Position

İki nokta arasında belirtilen yüzdedeki (örn. 0.5 = orta nokta) konumu döndürür.Returns the position at the given percentage between two points (e.g. 0.5 = midpoint).

ParametreParameterTipTypeAçıklamaDescription
pos1Position | tupleBaşlangıçStart
pos2Position | tupleBitişEnd
percentfloat0.0 - 1.0 arası yüzdePercentage between 0.0 and 1.0
Dönüş:Returns: Position
KullanımUsage
midPoint = GLHelper.GetPercentPointBetweenTwoPoints(pos1, pos2, 0.5)
GetBestSafePositionOnCircle(pos: Position | tuple, distance: int) -> Position

Verilen merkez etrafında, engelsiz/güvenli bir nokta bulmaya çalışır.Tries to find an unobstructed/safe point around the given center.

ParametreParameterTipTypeAçıklamaDescription
posPosition | tupleMerkez noktaCenter point
distanceintYarıçapRadius
Dönüş:Returns: Position
KullanımUsage
safePos = GLHelper.GetBestSafePositionOnCircle(my_pos, 200)
DivideTwoPointsByDistance(pos1: Position | tuple, pos2: Position | tuple, distance: int) -> list[dict]

İki nokta arasındaki hattı, belirtilen adım aralığına göre ara noktalara böler (örn. düz hat yürüme/ışınlanma simülasyonu için).Splits the line between two points into intermediate points using the given step interval (e.g. for straight-line walking/teleport simulation).

ParametreParameterTipTypeAçıklamaDescription
pos1Position | tupleBaşlangıçStart
pos2Position | tupleBitişEnd
distanceintAdım aralığıStep interval
Dönüş:Returns: list[dict] — Her biri {Position} alanını içeren sözlük listesi— List of dictionaries, each containing a {Position} field
KullanımUsage
for step in GLHelper.DivideTwoPointsByDistance(pos1, pos2, 2000):
    GLPythonNetworkStream.SendCharacterStatePacket(step["Position"], 0, 0, 0)
IsBlock(pos1: Position | tuple, pos2: Position | tuple) -> bool

İki nokta arasındaki yol zemin/engel özelliğine (attribute) göre engelli mi kontrol eder.Checks whether the path between two points is blocked based on the ground/obstacle attribute.

ParametreParameterTipTypeAçıklamaDescription
pos1Position | tupleBirinci noktaFirst point
pos2Position | tupleİkinci noktaSecond point
Dönüş:Returns: bool
KullanımUsage
if GLHelper.IsBlock(my_pos, target_pos) == 0:
    pass
AppendChat(type: int, text: str) -> None

Yerel sohbet penceresine (sunucuya paket göndermeden) bir satır ekler.Adds a line to the local chat window (without sending a packet to the server).

ParametreParameterTipTypeAçıklamaDescription
typeintSohbet tipiChat type
textstrMesaj metniMessage text
Dönüş:Returns: None
KullanımUsage
GLHelper.AppendChat(0, "lokal mesaj")

GLItem

VNUM bazlı item veritabanı sorguları (C++ namespace: CItemManager)VNUM-based item database queries (C++ namespace: CItemManager)

GetItemPrice(vnum: int) -> int

Item'in temel (NPC) satış fiyatını döndürür.Returns the base (NPC) sell price of the item.

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
Dönüş:Returns: int
KullanımUsage
price = GLItem.GetItemPrice(vnum)
GetItemType(vnum: int) -> int

Item'in ana tipini döndürür.Returns the item's main type.

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
Dönüş:Returns: int
KullanımUsage
itemType = GLItem.GetItemType(vnum)
GetItemSubType(vnum: int) -> int

Item'in alt tipini döndürür.Returns the item's sub-type.

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
Dönüş:Returns: int
KullanımUsage
subType = GLItem.GetItemSubType(vnum)
GetItemLimitLevel(vnum: int) -> int

Item'in kullanım/kuşanım için gereken minimum seviyesini döndürür.Returns the minimum level required to use/equip the item.

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
Dönüş:Returns: int
KullanımUsage
lvl = GLItem.GetItemLimitLevel(vnum)
IsWearableFlag(vnum: int, flag: int) -> bool

Item'in belirtilen kuşanım bayrağına (flag) sahip olup olmadığını kontrol eder.Checks whether the item has the given wear flag.

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
flagintKontrol edilecek flag bitiFlag bit to check
Dönüş:Returns: bool
KullanımUsage
GLItem.IsWearableFlag(vnum, flag)
IsAntiFlag(vnum: int, flag: int) -> bool

Item'in belirtilen anti-flag (kısıtlama) bayrağına sahip olup olmadığını kontrol eder.Checks whether the item has the given anti-flag (restriction) bit.

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
flagintKontrol edilecek anti-flag bitiAnti-flag bit to check
Dönüş:Returns: bool
KullanımUsage
GLItem.IsAntiFlag(vnum, flag)
IsCharacterWearable(vnum: int) -> bool

Item karakter üzerinde kuşanılabilir mi.Can the item be equipped on the character?

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
Dönüş:Returns: bool
KullanımUsage
GLItem.IsCharacterWearable(vnum)
IsAccessory(vnum: int) -> bool

Item bir aksesuar (kolye/küpe/bilezik) mi.Is the item an accessory (necklace/earring/bracelet)?

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
Dönüş:Returns: bool
KullanımUsage
GLItem.IsAccessory(vnum)
IsSocketable(vnum: int) -> bool

Item'e soket (changyong/dolgu taşı vb.) takılabilir mi.Can a socket (changyong/filler stone etc.) be inserted into the item?

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
Dönüş:Returns: bool
KullanımUsage
GLItem.IsSocketable(vnum)

GLDamage

Otomatik saldırı/toplama durumu ve güvenli bölge ayarları (C++ namespace: Damage)Auto attack/pickup status and safe-zone settings (C++ namespace: Damage)

TargetDamage() -> None

Şu anki hedefe anında bir saldırı aksiyonu tetikler.Immediately triggers an attack action on the current target.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLDamage.TargetDamage()
GetDamageStatus() -> bool

Otomatik saldırı (damage bot) özelliği açık mı.Is the auto attack (damage bot) feature enabled?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
GLDamage.GetDamageStatus()
SetDamageStatus(state: bool) -> None

Otomatik saldırı özelliğini açar/kapatır.Enables/disables the auto attack feature.

ParametreParameterTipTypeAçıklamaDescription
statebool1: açık, 0: kapalı1: on, 0: off
Dönüş:Returns: None
KullanımUsage
GLDamage.SetDamageStatus(1)
GetPickupStatus() -> bool

Otomatik toplama (pickup bot) özelliği açık mı.Is the auto pickup (pickup bot) feature enabled?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
GLDamage.GetPickupStatus()
SetPickupStatus(state: bool) -> None

Otomatik toplama özelliğini açar/kapatır.Enables/disables the auto pickup feature.

ParametreParameterTipTypeAçıklamaDescription
statebool1: açık, 0: kapalı1: on, 0: off
Dönüş:Returns: None
KullanımUsage
GLDamage.SetPickupStatus(1)
ResetAttackedMobVIDS() -> None

Bu döngüde 'saldırıldı' olarak işaretlenen mob listesini temizler.Clears the mob list marked as 'attacked' in this loop.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLDamage.ResetAttackedMobVIDS()
AddAttackedMobVIDS(vid: int) -> None

Belirtilen mob'u 'saldırıldı' listesine ekler.Adds the given mob to the 'attacked' list.

ParametreParameterTipTypeAçıklamaDescription
vidintMob Virtual IDMob Virtual ID
Dönüş:Returns: None
KullanımUsage
GLDamage.AddAttackedMobVIDS(vid)
IsInAttackedMobVIDS(vid: int) -> bool

Belirtilen mob 'saldırıldı' listesinde mi.Is the given mob in the 'attacked' list?

ParametreParameterTipTypeAçıklamaDescription
vidintMob Virtual IDMob Virtual ID
Dönüş:Returns: bool
KullanımUsage
GLDamage.IsInAttackedMobVIDS(vid)
GetMobDistance() -> int

Güvenli-hasar (Safe Damage) modu için tanımlı mob tarama mesafesi.Mob scan distance defined for the Safe Damage mode.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
dist = GLDamage.GetMobDistance()
SetMobDistance(distance: int) -> None

Güvenli-hasar modu için mob tarama mesafesini ayarlar.Sets the mob scan distance for the Safe Damage mode.

ParametreParameterTipTypeAçıklamaDescription
distanceintYeni mesafeNew distance
Dönüş:Returns: None
KullanımUsage
GLDamage.SetMobDistance(300)
IsInSafe(pos: Position | tuple) -> bool

Verilen konum, tanımlı 'güvenli bölge' içinde mi.Is the given position inside the defined 'safe zone'?

ParametreParameterTipTypeAçıklamaDescription
posPosition | tupleKontrol edilecek konumPosition to check
Dönüş:Returns: bool
KullanımUsage
GLDamage.IsInSafe(my_pos)
GetSafeDamage() -> bool

'Güvenli Hasar' (Safe Damage) modu açık mı.Is the 'Safe Damage' mode enabled?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
GLDamage.GetSafeDamage()
SetSafeDamage(state: bool) -> None

'Güvenli Hasar' modunu açar/kapatır.Enables/disables the 'Safe Damage' mode.

ParametreParameterTipTypeAçıklamaDescription
statebool1: açık, 0: kapalı1: on, 0: off
Dönüş:Returns: None
KullanımUsage
GLDamage.SetSafeDamage(1)
GetSafeDamageRender() -> bool

Güvenli-hasar modunda render/görsel kontrolü açık mı.Is the render/visual check enabled in Safe Damage mode?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
GLDamage.GetSafeDamageRender()
SetSafeDamageRender(state: bool) -> None

Güvenli-hasar modunda render kontrolünü açar/kapatır.Enables/disables the render check in Safe Damage mode.

ParametreParameterTipTypeAçıklamaDescription
statebool1: açık, 0: kapalı1: on, 0: off
Dönüş:Returns: None
KullanımUsage
GLDamage.SetSafeDamageRender(1)
GetSafeDamageBlockControl() -> bool

Güvenli-hasar modunda engel (block) kontrolü açık mı.Is the obstacle (block) check enabled in Safe Damage mode?

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
GLDamage.GetSafeDamageBlockControl()
SetSafeDamageBlockControl(state: bool) -> None

Güvenli-hasar modunda engel kontrolünü açar/kapatır.Enables/disables the obstacle check in Safe Damage mode.

ParametreParameterTipTypeAçıklamaDescription
statebool1: açık, 0: kapalı1: on, 0: off
Dönüş:Returns: None
KullanımUsage
GLDamage.SetSafeDamageBlockControl(1)

GLAPI

Genel / test amaçlı yardımcılarGeneral / test helpers

CheckAPI() -> None

API'nin doğru çalıştığını doğrulamak için bir messagebox gösterir (bağlantı testi).Shows a messagebox to verify that the API works (connection test).

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLAPI.CheckAPI()

GLBot++ Python Scripting API Referansı — kaynak koddan otomatik üretildi. Burada listelenmeyen fonksiyonlar Python tarafından erişilemez.GLBot++ Python Scripting API Reference — generated automatically from the source code. Functions not listed here cannot be accessed from Python.