236 fonksiyon / 13 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.

236FonksiyonFunctions
13Class / 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.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.

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()

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 bagli olmadan dogrudan cagrilirCalled directly without belonging to any class

GLList2 fonksiyon2 functions

Yakindaki objeleri ve yerdeki itemleri listelerLists nearby objects and items on the ground

GLPlayer28 fonksiyon28 functions

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

GLPythonPlayer41 fonksiyon41 functions

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

GLPythonShop16 fonksiyon16 functions

NPC/oyuncu dukkanlari (C++ namespace: CPythonShop)NPC/player shops (C++ namespace: CPythonShop)

GLPythonSafeBox11 fonksiyon11 functions

Kasa (deposit box) islemleri (C++ namespace: CPythonSafeBox)Safe deposit box operations (C++ namespace: CPythonSafeBox)

GLPythonNetworkStream88 fonksiyon88 functions

Sunucuya paket gonderme katmani (C++ namespace: CPythonNetworkStream)Packet-sending layer to the server (C++ namespace: CPythonNetworkStream)

GLConnect6 fonksiyon6 functions

Kanal (channel) ve karakter degistirme (C++ namespace: Connect)Channel and character switching (C++ namespace: Connect)

GLHelper12 fonksiyon12 functions

Geometri, zaman ve engel-kontrol yardimcilariGeometry, time and blocking-check helpers

GLItem10 fonksiyon10 functions

VNUM bazli item veritabani sorgulari (C++ namespace: CItemManager)VNUM-based item database lookups (C++ namespace: CItemManager)

GLDamage17 fonksiyon17 functions

Otomatik saldiri/toplama durumu ve guvenli-bolge ayarlari (C++ namespace: Damage)Automatic attack/pickup state and safe-zone settings (C++ namespace: Damage)

GLAPI1 fonksiyon1 function

Genel / test amacli yardimcilarGeneral / test helpers

GLProxy2 fonksiyon2 functions

SOCKS5 proxy uzerinden oyun baglantisini yonlendirme (C++ namespace: ProxySupport)Routing the game connection through a SOCKS5 proxy (C++ namespace: ProxySupport)

Global FonksiyonlarGlobal Functions

Herhangi bir class'a bagli olmadan dogrudan cagrilirCalled directly without belonging to any class

GetPosition() -> Position

Oyuncunun (x, y, z) konumunu dondurur.Returns the player's (x, y, z) position.

Parametre almaz.Takes no parameters.

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

Oyuncuyu verilen konuma anlik isinlatir (client-side; sunucuya hareket paketi gondermez).Instantly teleports the player to the given position (client-side only; 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

Yakindaki objeleri ve yerdeki itemleri listelerLists nearby objects and items on the ground

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

Belirtilen menzildeki butun objeleri (mob, NPC, oyuncu) dondurur. InstanceType == 6 oyuncu demektir.Returns all objects (mobs, NPCs, players) within the given range. InstanceType == 6 means a player.

ParametreParameterTipTypeAçıklamaDescription
rangeintTarama yaricapiScan radius
Dönüş:Returns: list[dict] — {InstanceType, VirtualNumber, Race, VirtualID, Name, IsDead, Rotation, GetPixelPosition}
⚠️ Ic ice gecen GetPixelPosition alani bir Position nesnesidir (tuple degil).⚠️ The nested GetPixelPosition field is a Position object (not a tuple).
KullanımUsage
players = []
for obj in GLList.GetObjectList(200):
    if obj["InstanceType"] == 6:
        players.append(obj["Name"])
GetGroundItemList(range: int) -> list[dict]

Belirtilen menzildeki yerde duran itemleri dondurur.Returns the items lying on the ground within the given range.

ParametreParameterTipTypeAçıklamaDescription
rangeintTarama yaricapiScan 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 own character's state (C++ namespace: Player)

IsOnline() -> bool

Karakter oyunda (dunyada) mi.Is the character online (in the game world).

Parametre almaz.Takes no parameters.

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

Karakter tamamen yuklenip hazir mi.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 olu mu.Is the character dead.

Parametre almaz.Takes no parameters.

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

Karakter su an yuruyor 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 uzerinde 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.The character's level.

Parametre almaz.Takes no parameters.

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

Karakter adi.The character's 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 uye oldugu loncanin ID'si.The 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 uye oldugu loncanin adi.The 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 irk/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 bakis acisi (derece).The character's facing angle (degrees).

Parametre almaz.Takes no parameters.

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

Karakterin bakis acisini client-side degistirir.Changes the character's facing angle, client-side.

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

Karakterin guncel konumu (GetPosition() ile ayni).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 isinlatir.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 kontrolunu acip kapatir (wall-hack).Toggles wall/collision checking (wall-hack).

ParametreParameterTipTypeAçıklamaDescription
statebool1: coklu gecis acik, 0: kapali1: pass through walls, 0: off
Dönüş:Returns: None
KullanımUsage
GLPlayer.SetSkipCollision(1)
Move(pos: Position | tuple) -> None

Karakteri belirtilen hedefe dogru yurutmeye baslatir.Starts walking the character toward the given destination.

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

Harita degistirme islemini baslatir; islem arka planda asenkron olarak yurutulur.Starts a map-change; the operation runs asynchronously in the background.

ParametreParameterTipTypeAçıklamaDescription
mapNamestrHedef harita adi (orn. metin2_map_a2)Target map name (e.g. metin2_map_a2)
Dönüş:Returns: None
KullanımUsage
GLPlayer.ChangeMap("metin2_map_n_flame_01")
IsDeadEx() -> int

IsDead'e alternatif, genisletilmis olu-durumu kontrolu.Alternative to IsDead, an extended dead-state check.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
GLPlayer.IsDeadEx()
SetDead(isDead: bool) -> None

Karakterin client-side olu durumunu zorla ayarlar.Forces the character's client-side dead state.

ParametreParameterTipTypeAçıklamaDescription
isDeadbool1: olu, 0: canli1: dead, 0: alive
Dönüş:Returns: None
KullanımUsage
GLPlayer.SetDead(0)
SetRotateSpeed(speed: float) -> None

Karakterin donus (rotasyon) hizini ayarlar.Sets the character's turning (rotation) speed.

ParametreParameterTipTypeAçıklamaDescription
speedfloatDonus hiziTurning speed
Dönüş:Returns: None
KullanımUsage
GLPlayer.SetRotateSpeed(500.0)
IsAffect(affect: int) -> bool

Karakterde belirtilen buff/debuff etkisi var mi.Does the character have the given buff/debuff effect.

ParametreParameterTipTypeAçıklamaDescription
affectintBuff/debuff (affect) ID'siBuff/debuff (affect) ID
Dönüş:Returns: bool
KullanımUsage
GLPlayer.IsAffect(1)
SCRIPT_SetPixelPosition(x: float, y: float) -> None

SetPixelPosition'a alternatif, dogrudan x/y float parametreleriyle isinlanma (z otomatik hesaplanir).Alternative to SetPixelPosition: teleports using raw x/y float parameters directly (z is computed automatically).

ParametreParameterTipTypeAçıklamaDescription
xfloatX koordinatiX coordinate
yfloatY koordinatiY coordinate
Dönüş:Returns: None
KullanımUsage
GLPlayer.SCRIPT_SetPixelPosition(123.0, 456.0)
StoneDetector() -> None

Metin tasi tarama/algilama rutinini tetikler.Triggers the Metin stone scan/detection routine.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLPlayer.StoneDetector()
BossDetector() -> None

Boss mob tarama/algilama rutinini tetikler.Triggers the boss mob scan/detection routine.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLPlayer.BossDetector()
SetMoveSpeed(speed: int) -> None

Karakterin hareket hizini client-side degistirir (speed hack).Changes the character's movement speed, client-side (speed hack).

ParametreParameterTipTypeAçıklamaDescription
speedintYeni hareket hiziNew movement speed
Dönüş:Returns: None
KullanımUsage
GLPlayer.SetMoveSpeed(200)
SetLoopMotion(motion: int, blendTime: float, speedRatio: float) -> None

Karakterde belirtilen animasyonu dongusel olarak oynatir.Plays the given animation on the character in a loop.

ParametreParameterTipTypeAçıklamaDescription
motionintMotion/animasyon ID'siMotion/animation ID
blendTimefloatGeçiş süresiTransition time
speedRatiofloatOynatma hizi oraniPlayback speed ratio
Dönüş:Returns: None
KullanımUsage
GLPlayer.SetLoopMotion(1, 0.1, 1.0)

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 turunun guncel degerini dondurur.Returns the current value of the given stat type.

ParametreParameterTipTypeAçıklamaDescription
typeintStat tipi (orn. 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

Su anki hedefin Virtual ID'si.The Virtual ID of the current target.

Parametre almaz.Takes no parameters.

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

Su anki hedefin VNUM'u (mob/NPC tur ID'si).The VNUM (mob/NPC type ID) of the current target.

Parametre almaz.Takes no parameters.

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

Hedefi dogrudan (paket gondermeden) 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 istege bagli olarak zorla degistirir.Sets the target and optionally forces the change.

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

Yakin cevredeki objeler arasinda belirtilen VNUM'a sahip olani arar.Searches nearby objects for one matching the given VNUM.

ParametreParameterTipTypeAçıklamaDescription
vnumintAranan VNUMVNUM to search for
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 karsilik gelen objenin adini dondurur.Returns the name of the object corresponding to the given VID.

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

Belirtilen VID'ye sahip objenin konumunu dondurur.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 saldiri 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 saldiri hedefinin gecerli/canli olup olmadigi.Whether the auto-attack target is still valid/alive.

Parametre almaz.Takes no parameters.

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

Belirtilen skill slotunu tetikler (kullanmaya calisir).Triggers (attempts to use) the given skill slot.

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

Skill kullanilabilir durumda mi (cooldown/mana vb.).Is the skill usable right now (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) dondurur.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 gercek index numarasini dondurur.Returns the skill's real index number.

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

Skill aktif/kullanimda mi.Is the skill active/in use.

ParametreParameterTipTypeAçıklamaDescription
slotIndexintSkill slot indeksiSkill slot index
Dönüş:Returns: bool
⚠️ Alttaki C++ fonksiyonu bir BYTE isaretcisi bekliyor; buraya duz int gonderilmesi orijinal API'nin bir kisitlamasidir, dikkatli kullanin.⚠️ The underlying C++ function expects a BYTE pointer; passing a plain int here is a limitation of the original API, use with care.
KullanımUsage
GLPythonPlayer.IsSkillActive(0)
__SendUseSkill(skillSlot: int, targetVID: int) -> None

Belirtilen skilli belirtilen hedefe kullanma paketi gonderir.Sends a packet to use 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 tiklama paketi gonderir.Sends a click packet for an object.

ParametreParameterTipTypeAçıklamaDescription
instanceintHam obje isaretcisi (DWORD)Raw object pointer (DWORD)
Dönüş:Returns: None
⚠️ UYARI: 'instance' ham bir bellek adresidir (pointer). Python scriptinden gecerli bir deger uretmek guvenli degildir; sadece baska bir C++ kaynagindan gelen degerle kullanilmalidir.⚠️ WARNING: 'instance' is a raw memory address (pointer). It is not safe to produce a valid value for this from a Python script; only use it with a value obtained from another C++ source.
KullanımUsage
GLPythonPlayer.__SendClickActorPacket(instance)
GetWeaponVNUM() -> int

Kusanilan silahin VNUM'unu dondurur.Returns the VNUM of the equipped weapon.

Parametre almaz.Takes no parameters.

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

Genisletilmis envanterin maksimum slot sayisi.The 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 dondurur.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 dondurur.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 item count in the inventory for the given VNUM.

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 via a manual scan.

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

Belirtilen slottaki itemin tipini dondurur.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 dondurur.Returns the subtype 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 gorunen adini dondurur.Returns the display name of the item.

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
Dönüş:Returns: str — Bos string, item verisi henuz yuklenmemisse— Empty string if the item data isn't loaded yet
⚠️ Oyun belleginden dogrudan okuma yapar; item istemci tarafindan henuz tanimlanmamissa bos sonuc donebilir.⚠️ Reads directly from game memory; may return an empty result if the item hasn't been defined client-side yet.
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)
outTypeintCikis: tip (ham adres)Output: type (raw address)
outValueintCikis: deger (ham adres)Output: value (raw address)
Dönüş:Returns: None
⚠️ UYARI: outType/outValue parametreleri ham bellek adresleridir. Python'dan guvenle kullanilamaz; genel kullanim icin onerilmez.⚠️ WARNING: the outType/outValue parameters are raw memory addresses. Cannot be used safely from Python; not recommended for general use.
KullanımUsage
# onerilmez, bkz. notlar
GetItemAttributeCount(index: int) -> int

Bir itemin kac dolu attribute'u oldugunu sayar.Counts how many filled attributes an item has.

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

Bir attribute ID'sinin gorunen adini dondurur.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

Balik tutma aksiyonunu baslatir.Starts the fishing action.

Parametre almaz.Takes no parameters.

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

Envanterde/kusanimda kazma var mi.Is there a pickaxe in the inventory/equipped.

Parametre almaz.Takes no parameters.

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

Kusanilan kazmanin guncel durabilirlik/skorunu dondurur.Returns the equipped pickaxe's current durability/score.

Parametre almaz.Takes no parameters.

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

Kusanilan kazmanin maksimum durabilirlik/skorunu dondurur.Returns the equipped pickaxe's maximum durability/score.

Parametre almaz.Takes no parameters.

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

Render frame-skip modunu acar/kapatir (performans ayari).Toggles render frame-skip mode (performance setting).

ParametreParameterTipTypeAçıklamaDescription
statusbool1: frame skip acik1: frame skip on
Dönüş:Returns: None
KullanımUsage
GLPythonPlayer.FrameSkip(1)
GetVirtualIDByName(name: str) -> int

GetNameByVID'e ters islem: isme gore yakin cevrede VID arar.Reverse of GetNameByVID: searches nearby for a VID matching the given name.

ParametreParameterTipTypeAçıklamaDescription
namestrAranan karakter/obje adiCharacter/object name to search for
Dönüş:Returns: int — Bulunursa VID, bulunamazsa 0— VID if found, 0 if not found
KullanımUsage
vid = GLPythonPlayer.GetVirtualIDByName("OyuncuAdi")
SetItemData(index: int, vnum: int, count: int) -> int

Belirtilen envanter slotuna dogrudan (client-side) bir item verisi yazar.Writes item data directly (client-side) into the given inventory slot.

ParametreParameterTipTypeAçıklamaDescription
indexintEnvanter slotuInventory slot
vnumintItem VNUMItem VNUM
countintAdetCount
Dönüş:Returns: int
KullanımUsage
GLPythonPlayer.SetItemData(0, 101, 1)
GetItemCountManualIndex(index: int) -> int

GetItemCountManual'a alternatif, slot indeksine gore manuel sayar.Alternative to GetItemCountManual, counts manually by slot index.

ParametreParameterTipTypeAçıklamaDescription
indexintEnvanter slotuInventory slot
Dönüş:Returns: int
KullanımUsage
count = GLPythonPlayer.GetItemCountManualIndex(0)
GetItemMetinSocket(cell: int, socketIndex: int) -> int

Bir itemin belirtilen soketindeki metin tasi/dolgu VNUM'unu dondurur.Returns the Metin stone/socket-fill VNUM in the given socket of an item.

ParametreParameterTipTypeAçıklamaDescription
cellintEnvanter slotuInventory slot
socketIndexintSoket indeksi (0-2)Socket index (0-2)
Dönüş:Returns: int
KullanımUsage
socketVnum = GLPythonPlayer.GetItemMetinSocket(0, 0)
SetStatePacket(value: int) -> bool

Karakter durum paketi gonderimini ayarlar.Configures character state-packet transmission.

ParametreParameterTipTypeAçıklamaDescription
valueintDurum degeriState value
Dönüş:Returns: bool
KullanımUsage
GLPythonPlayer.SetStatePacket(1)
GetBKName(index: int, bk: str) -> str

Bir itemin 'BK' (bonus/ozel) adini dondurur; item yoksa 'bk' parametresi geri doner.Returns an item's 'BK' (bonus/special) name; returns the 'bk' parameter back if there is no item.

ParametreParameterTipTypeAçıklamaDescription
indexintEnvanter slotuInventory slot
bkstrVarsayilan/placeholder degerDefault/placeholder value
Dönüş:Returns: str
KullanımUsage
name = GLPythonPlayer.GetBKName(0, "")

GLPythonShop

NPC/oyuncu dukkanlari (C++ namespace: CPythonShop)NPC/player shops (C++ namespace: CPythonShop)

IsOpen() -> bool

Bir dukkan penceresi acik mi.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 saticinin dukkanini hizlica acma paketi gonderir.Sends a packet to quickly open the given seller's shop.

ParametreParameterTipTypeAçıklamaDescription
vidintSatici NPC/oyuncunun Virtual ID'siSeller NPC/player's Virtual ID
Dönüş:Returns: None
KullanımUsage
GLPythonShop.OpenShopFast(vid)
GetItemListSize() -> int

Acik dukkandaki toplam item sayisi.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

Dukkan listesinde belirtilen VNUM'un slotunu bulur.Finds the slot of the given VNUM in the shop listing.

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

Belirtilen slottaki itemin VNUM'unu dondurur.Returns the VNUM of the item in the given slot.

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

Belirtilen slottaki itemin fiyatini dondurur.Returns the price of the item in the given slot.

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

Belirtilen slottaki itemin WON (cash) fiyatini dondurur.Returns the WON (cash) price of the item in the given slot.

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

Belirtilen slottaki item adedini dondurur.Returns the item count in the given slot.

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

Belirtilen slottaki item kendi satisin mi.Is the item in the given slot your own listing.

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

Bu satici sinirli-stoklu bir dukkan mi.Is this seller a limited-stock shop.

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

Kendi ozel dukkanina (private shop) satilacak bir item ekler.Adds an item to be sold in your own private shop.

ParametreParameterTipTypeAçıklamaDescription
itemPosintEnvanter slotuInventory slot
displayPosintDukkanda gosterilecek siraDisplay order in the shop
priceintYang fiyatiYang price
priceChequeintCek/WON fiyatiCheque/WON price
Dönüş:Returns: None
KullanımUsage
GLPythonShop.AddPrivateShopItemStock(0, 0, 1000, 0)
SetBlackListNicks(nickList: str) -> None

Otomatik-alim (auto-buy) ozelliginde goz ardi edilecek satici adlarini ayarlar.Sets the seller names to ignore in the auto-buy feature.

ParametreParameterTipTypeAçıklamaDescription
nickListstrVirgul/satirla ayrilmis kullanici adlariComma/newline-separated usernames
Dönüş:Returns: None
KullanımUsage
GLPythonShop.SetBlackListNicks("kullanici1,kullanici2")
IsTradeGlassesOpen() -> bool

Takas/degerli-esya penceresi (trade glasses) acik mi.Is the trade/valuables window (trade glasses) open.

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
GLPythonShop.IsTradeGlassesOpen()
GetBKName(index: int) -> str

Dukkandaki bir itemin 'BK' (bonus/ozel) adini dondurur.Returns a shop item's 'BK' (bonus/special) name.

ParametreParameterTipTypeAçıklamaDescription
indexintDukkan slotuShop slot
Dönüş:Returns: str
KullanımUsage
name = GLPythonShop.GetBKName(0)
SetNewPrivateShopStatus(value: int) -> None

Yeni-tip ozel dukkan (private shop) durumunu ayarlar.Sets the new-style private shop status.

ParametreParameterTipTypeAçıklamaDescription
valueintDurum degeriState value
Dönüş:Returns: None
KullanımUsage
GLPythonShop.SetNewPrivateShopStatus(1)
SetNewPrivateShopSettings(index: int, index2: int) -> None

Yeni-tip ozel dukkan ayarlarini yapilandirir.Configures the new-style private shop settings.

ParametreParameterTipTypeAçıklamaDescription
indexintAyar indeksiSetting index
index2intIkincil ayar indeksiSecondary setting index
Dönüş:Returns: None
KullanımUsage
GLPythonShop.SetNewPrivateShopSettings(0, 0)

GLPythonSafeBox

Kasa (deposit box) islemleri (C++ namespace: CPythonSafeBox)Safe deposit box operations (C++ namespace: CPythonSafeBox)

IsOpen() -> bool

Kasa penceresi acik mi.Is the safe box window open.

Parametre almaz.Takes no parameters.

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

Kasa sifre giris penceresi acik mi.Is the safe box password-entry window open.

Parametre almaz.Takes no parameters.

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

Onceden SetSafeBoxInfo ile kaydedilen sifreyle kasayi acar (tam paket akisi).Opens the safe box using the password previously stored via SetSafeBoxInfo (full packet flow).

Parametre almaz.Takes no parameters.

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

Dogrudan verilen sifreyle kasa acma paketi gonderir.Sends a packet to open the safe box with the given password directly.

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

Yeni bir kasa olusturma islemini (tam paket akisi) baslatir.Starts the process of creating a new safe box (full packet flow).

Parametre almaz.Takes no parameters.

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

Kasa acilisindaki tanitim/quest diyaloglarini otomatik gecer.Automatically skips through the intro/quest dialogs when opening the safe box.

Parametre almaz.Takes no parameters.

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

Kasa sifresini bot icinde saklar (OpenSafeBox() tarafindan kullanilir).Stores the safe box password inside the bot (used by OpenSafeBox()).

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

Kasada kullanilabilir en uygun bos slotu bulur.Finds the best available empty slot in the safe box.

Parametre almaz.Takes no parameters.

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

Belirtilen kasa slotundaki itemin VNUM'unu dondurur.Returns the VNUM of the item in the given safe box slot.

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

Yang'i WON'a cevirme islemini baslatir.Starts converting Yang to WON.

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

Kasanin 'market' alt penceresini acar.Opens the safe box's 'market' sub-window.

Parametre almaz.Takes no parameters.

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

GLPythonNetworkStream

Sunucuya paket gonderme katmani (C++ namespace: CPythonNetworkStream)Packet-sending layer to the server (C++ namespace: CPythonNetworkStream)

GetPhase() -> int

Istemcinin su anki faz/durum (phase) degeri.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

Istemci fazini degistirir.Changes the client's phase.

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

Bagli olunan sunucunun adi.The name of the server you're connected to.

Parametre almaz.Takes no parameters.

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

Bagli olunan kanal (channel) numarasi.The channel number you're connected to.

Parametre almaz.Takes no parameters.

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

Hizli-isinlanma (fast teleport) modu acik mi.Is fast-teleport mode on.

Parametre almaz.Takes no parameters.

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

Hizli-isinlanma modunu acar/kapatir.Toggles fast-teleport mode.

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

Zemin/engel (attribute map) kontrolu acik mi.Is terrain/obstacle (attribute map) checking on.

Parametre almaz.Takes no parameters.

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

Zemin/engel kontrolunu acar/kapatir.Toggles terrain/obstacle checking.

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

Karakterin anlik konum/durumunu sunucuya bildiren paket gonderir (hareket senkronizasyonu).Sends a packet informing the server of the character's current position/state (movement sync).

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

Yakin donus saldiri paketi gonderir.Sends a melee attack packet.

ParametreParameterTipTypeAçıklamaDescription
motionintSaldiri 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 ayni (alias).Same as SendBattleAttackPacket (alias).

ParametreParameterTipTypeAçıklamaDescription
motionintSaldiri 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/ucan saldiri hedefleme paketi gonderir.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 gonderir.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.) saldiri paketi gonderir.Sends a ranged (bow 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 gonderir.Sends a packet to pick 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 gonderir.Sends a packet to use 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 baska bir item uzerinde kullanma paketi gonderir (orn. birlestirme).Sends a packet to use an 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 birakma paketi (eski format) gonderir.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 birakma paketi (yeni format) gonderir.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

Yakindaki bir oyuncuya dogrudan item verme paketi gonderir.Sends a packet to give an item directly to a nearby player.

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

Bir diyalogda item/secenek secme paketi gonderir.Sends a packet to select an item/option in a dialog.

ParametreParameterTipTypeAçıklamaDescription
idintSecilen item/secenek 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 tasima paketi gonderir.Sends a packet to move an item from the inventory to the safe box.

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 cekme paketi gonderir.Sends a packet to withdraw an item from the safe box.

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

Acik bir depo/kasa penceresini kapatma paketi gonderir.Sends a packet to close an open storage/safe-box window.

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

Dukkandan item satin alma paketi gonderir.Sends a packet to buy an item from a shop.

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

Dukkana/NPC'ye item satma paketi gonderir.Sends a packet to sell 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

Acik dukkan oturumunu sonlandirma paketi gonderir.Sends a packet to end the open shop session.

Parametre almaz.Takes no parameters.

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

Takas (exchange) baslatma paketi gonderir.Sends a packet to start a trade (exchange).

ParametreParameterTipTypeAçıklamaDescription
vidintKarsi tarafin 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 gonderir.Sends a packet to add an item to the trade window.

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

Takas penceresine para (yang/won) ekleme paketi gonderir.Sends a packet to add money (yang/won) to the trade window.

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

Takasi onaylama paketi gonderir.Sends a packet to accept the trade.

Parametre almaz.Takes no parameters.

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

Item gelistirme (refine) paketi gonderir.Sends an item-refine packet.

ParametreParameterTipTypeAçıklamaDescription
aintIslem 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 diyalogu ile ilgili paket gonderir.Sends a packet related to an NPC quest dialog.

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

Dusuk seviyeli, sayisal kod ile tanimlanan bir istemci-ici komut paketi gonderir (orn. proje icinde 54 koduyla UI/kamera ile ilgili islemler icin kullaniliyor).Sends a low-level client-internal command packet identified by a numeric code (e.g. code 54 is used in the project for UI/camera-related operations).

ParametreParameterTipTypeAçıklamaDescription
a1intKomut koduCommand code
a2intAlt parametreSub-parameter
a3strMetin parametresi (bos gecilebilir)Text parameter (can be left empty)
Dönüş:Returns: None
⚠️ Komut kodlarinin anlami istemci implementasyonuna baglidir; genel kullanim icin ozel bir API degildir.⚠️ 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 tecrube (experience) bagisi paketi gonderir.Sends a guild experience-donation packet.

ParametreParameterTipTypeAçıklamaDescription
experienceintBagislanacak tecrube miktariAmount of experience to donate
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendGuilfOfferPacket(1000)
SendQuestInputStringPacket(text: str) -> None

Quest diyalogunda metin girisi paketi gonderir.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/dialog penceresine cevap paketi gonderir.Sends an answer packet to a script/dialog window.

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

Bir NPC/objeye tiklama paketi gonderir.Sends a click packet for an NPC/object.

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

Belirtilen kanala direkt giris paketi gonderir.Sends a direct-entry packet for the given channel.

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

Su anki fazi/pencereyi kapatma paketi gonderir.Sends a packet to close 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 kuyruguna 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 mesaji gonderir.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

Fisilti (whisper/tell) mesaji gonderir.Sends a whisper/tell message.

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

Sunucuya ozel bir komut string'i gonderir.Sends a server-specific command string.

ParametreParameterTipTypeAçıklamaDescription
commandstrKomut metniCommand text
Dönüş:Returns: None
⚠️ UYARI: Bu, sunucu/GM amacli dusuk seviye bir kanaldir; icerigi sunucu implementasyonuna baglidir, dikkatli kullanilmalidir.⚠️ WARNING: this is a low-level channel intended for server/GM use; its content depends on the server implementation, use with care.
KullanımUsage
GLPythonNetworkStream.SendServerCommand("komut")
SendEmoticon(id: int) -> None

Emoticon gosterme paketi gonderir.Sends a packet to show an emoticon.

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

Balik tutma (olta atma) paketi gonderir.Sends a fishing (cast the rod) packet.

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

Balik tutmayi birakma paketi gonderir.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

Balik kizartma/islem paketi gonderir.Sends a fish-frying/processing packet.

ParametreParameterTipTypeAçıklamaDescription
vidintHedef Virtual IDTarget Virtual ID
indexintIndexIndex
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) gonderme paketi gonderir.Sends a mail-sending packet.

ParametreParameterTipTypeAçıklamaDescription
titlestrMail basligiMail title
contentstrMail icerigiMail content
senderstrAlici adiRecipient 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 gonderir.Sends a packet requesting the mailbox listing.

Parametre almaz.Takes no parameters.

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

Tum postalari silme paketi gonderir.Sends a packet to delete all mail.

Parametre almaz.Takes no parameters.

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

Posta kutusu penceresini kapatma paketi gonderir.Sends a packet to close the mailbox window.

Parametre almaz.Takes no parameters.

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

Script olay baslangicinda giris engelleme durumunu ayarlar.Sets the input-blocking state at the start of a script event.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
⚠️ Alt seviyede process bellegine dogrudan yazan bir yama (patch) uygular; sadece orijinal sistemde zaten var oldugu icin listelenmistir.⚠️ Applies a low-level patch that writes directly into process memory; it is listed only because it already existed in the original system.
KullanımUsage
GLPythonNetworkStream.SetBlockOnScriptEventStart()
SetUnBlockOnScriptEventStart() -> None

SetBlockOnScriptEventStart ile uygulanan engeli kaldirir.Removes the block applied by SetBlockOnScriptEventStart.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
⚠️ Alt seviyede process bellegine dogrudan yazan bir yama (patch) uygular; sadece orijinal sistemde zaten var oldugu icin listelenmistir.⚠️ Applies a low-level patch that writes directly into process memory; it is listed only because it already existed in the original system.
KullanımUsage
GLPythonNetworkStream.SetUnBlockOnScriptEventStart()
GetQuestIndexByTitle(title: str) -> int

Basligina gore acik quest'in indeksini bulur.Finds the index of the open quest by its title.

ParametreParameterTipTypeAçıklamaDescription
titlestrQuest basligiQuest title
Dönüş:Returns: int
KullanımUsage
idx = GLPythonNetworkStream.GetQuestIndexByTitle("Baslik")
GetStatePacketHash() -> int

Son gonderilen durum paketinin hash degeri.The hash value of the last state packet sent.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
h = GLPythonNetworkStream.GetStatePacketHash()
IsSelectedEmpire() -> bool

Bir imparatorluk (empire) secilmis mi.Has an empire been selected.

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
GLPythonNetworkStream.IsSelectedEmpire()
GetAccountLevelBySlot(slot: int) -> int

Belirtilen karakter slotundaki karakterin seviyesini dondurur.Returns the level of the character in the given character slot.

ParametreParameterTipTypeAçıklamaDescription
slotintHesap karakter slotuAccount character slot
Dönüş:Returns: int
KullanımUsage
lvl = GLPythonNetworkStream.GetAccountLevelBySlot(0)
isNeedEmpire() -> bool

Imparatorluk secim ekraninin gerekip gerekmedigini kontrol eder.Checks whether the empire-selection screen is required.

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
GLPythonNetworkStream.isNeedEmpire()
GetFreeCharacterCount() -> int

Hesapta bos (karaktersiz) slot sayisi.Number of free (characterless) slots on the account.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
count = GLPythonNetworkStream.GetFreeCharacterCount()
GetCharacterCount() -> int

Hesaptaki toplam karakter sayisi.Total number of characters on the account.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
count = GLPythonNetworkStream.GetCharacterCount()
isFreeCharacterCount(index: int) -> bool

Belirtilen slot bos mu.Is the given slot empty.

ParametreParameterTipTypeAçıklamaDescription
indexintKarakter slotuCharacter slot
Dönüş:Returns: bool
KullanımUsage
GLPythonNetworkStream.isFreeCharacterCount(0)
GetPort(ch: int) -> int

Belirtilen kanalin baglanti portunu dondurur.Returns the connection port for the given channel.

ParametreParameterTipTypeAçıklamaDescription
chintKanal numarasiChannel number
Dönüş:Returns: int
KullanımUsage
port = GLPythonNetworkStream.GetPort(1)
GetPortBySlot(slot: int) -> int

Belirtilen karakter slotunun baglanti portunu dondurur.Returns the connection port for the given character slot.

ParametreParameterTipTypeAçıklamaDescription
slotintKarakter slotuCharacter slot
Dönüş:Returns: int
KullanımUsage
port = GLPythonNetworkStream.GetPortBySlot(0)
GetMainActorEmpireName() -> int

Ana karakterin imparatorluk ID'sini dondurur.Returns the main character's empire ID.

Parametre almaz.Takes no parameters.

Dönüş:Returns: int
KullanımUsage
empire = GLPythonNetworkStream.GetMainActorEmpireName()
GetAccountCharacterSlotDatau(slot: int, type_: int) -> int

Hesap-karakter slot verisinden belirtilen tipte bir deger okur (dusuk seviye erisim).Reads a value of the given type from the account-character slot data (low-level access).

ParametreParameterTipTypeAçıklamaDescription
slotintKarakter slotuCharacter slot
type_intVeri tipiData type
Dönüş:Returns: int
KullanımUsage
value = GLPythonNetworkStream.GetAccountCharacterSlotDatau(0, 2)
GetEmpireIndexByName(name: str) -> int

Imparatorluk adina gore ID'sini bulur.Finds the ID of an empire by its name.

ParametreParameterTipTypeAçıklamaDescription
namestrImparatorluk adiEmpire name
Dönüş:Returns: int
KullanımUsage
idx = GLPythonNetworkStream.GetEmpireIndexByName("Red")
PickCloseItem(isHighLevel: bool, isDontFilter: bool, isFilter: bool, priceControl: int, range: int, blockControl: bool) -> bool

Yakindaki itemler arasinda filtrelere uyan en yakin olani secer/toplar.Picks/collects the nearest item among nearby items that matches the given filters.

ParametreParameterTipTypeAçıklamaDescription
isHighLevelboolSadece yuksek seviye itemlerHigh-level items only
isDontFilterboolFiltreleme yapmaDon't filter
isFilterboolFiltreleme yapApply filtering
priceControlintFiyat kontroluPrice control
rangeintTarama mesafesiScan range
blockControlboolEngel kontroluObstacle checking
Dönüş:Returns: bool
KullanımUsage
GLPythonNetworkStream.PickCloseItem(0, 1, 0, 0, 200, 0)
GetQuestString() -> str

Su anki aktif quest metnini dondurur.Returns the text of the currently active quest.

Parametre almaz.Takes no parameters.

Dönüş:Returns: str
KullanımUsage
text = GLPythonNetworkStream.GetQuestString()
GetPhaseStr() -> str

Su anki fazin (phase) ismini metin olarak dondurur.Returns the name of the current phase as text.

Parametre almaz.Takes no parameters.

Dönüş:Returns: str
KullanımUsage
phase = GLPythonNetworkStream.GetPhaseStr()
RandomCharacterName() -> str

Karakter olusturma ekrani icin rastgele bir isim onerisi uretir.Generates a random name suggestion for the character-creation screen.

Parametre almaz.Takes no parameters.

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

Belirtilen slottaki karakterin adini dondurur.Returns the name of the character in the given slot.

ParametreParameterTipTypeAçıklamaDescription
slotintKarakter slotuCharacter slot
Dönüş:Returns: str
KullanımUsage
name = GLPythonNetworkStream.GetAccountNameBySlot(0)
DirectEnterManual() -> None

Secili kanala manuel direkt-giris paketi gonderir.Sends a manual direct-entry packet for the selected channel.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.DirectEnterManual()
SendItemMovePacket(pos: int, changePos: int, num: int) -> None

Envanterde bir itemi baska bir slota tasima paketi gonderir.Sends a packet to move an item to another slot in the inventory.

ParametreParameterTipTypeAçıklamaDescription
posintKaynak slotSource slot
changePosintHedef slotTarget slot
numintAdetCount
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendItemMovePacket(0, 1, 1)
SendSelectCharacterPacket(index: int) -> None

Karakter secim ekraninda bir karakteri secme paketi gonderir.Sends a packet to select a character on the character-selection screen.

ParametreParameterTipTypeAçıklamaDescription
indexintKarakter slotuCharacter slot
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendSelectCharacterPacket(0)
SendAnswerMakeGuildPacket(name: str) -> None

Lonca olusturma paketi gonderir.Sends a guild-creation packet.

ParametreParameterTipTypeAçıklamaDescription
namestrLonca adiGuild name
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendAnswerMakeGuildPacket("LoncaAdi")
SendScriptButtonPacket(index: int) -> None

Script/dialog penceresindeki bir butona tiklama paketi gonderir.Sends a click packet for a button in a script/dialog window.

ParametreParameterTipTypeAçıklamaDescription
indexintButon index'iButton index
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendScriptButtonPacket(0)
SendSelectEmpirePacket(empire: int) -> None

Imparatorluk secme paketi gonderir.Sends a packet to select an empire.

ParametreParameterTipTypeAçıklamaDescription
empireintImparatorluk ID'siEmpire ID
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendSelectEmpirePacket(1)
SendDragonSoulRefinePacket(type_: int, pos: int) -> None

Dragon Soul gelistirme (refine) paketi gonderir.Sends a Dragon Soul refine packet.

ParametreParameterTipTypeAçıklamaDescription
type_intIslem tipiOperation type
posintDragon Soul slotuDragon Soul slot
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendDragonSoulRefinePacket(0, 0)
SendFishPythonPacket(value: int, second: float) -> None

Balikcilik ile ilgili bir paket gonderir.Sends a fishing-related packet.

ParametreParameterTipTypeAçıklamaDescription
valueintDegerValue
secondfloatSure (saniye)Duration (seconds)
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendFishPythonPacket(0, 1.0)
SetSelectPhase(state: bool) -> None

Karakter/imparatorluk secim fazi durumunu ayarlar.Sets the character/empire selection-phase state.

ParametreParameterTipTypeAçıklamaDescription
statebool1: secim fazinda, 0: degil1: in selection phase, 0: not
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SetSelectPhase(1)
SendChangePassword(oldPassword: str, newPassword: str) -> None

Hesap sifresini degistirme paketi gonderir.Sends a packet to change the account password.

ParametreParameterTipTypeAçıklamaDescription
oldPasswordstrEski sifreOld password
newPasswordstrYeni sifreNew password
Dönüş:Returns: None
⚠️ DIKKAT: Bu fonksiyon hesap sifresini degistirir. Script icinde dikkatli ve kasitli kullanilmalidir.⚠️ WARNING: this function changes the account password. Use deliberately and with care inside a script.
KullanımUsage
GLPythonNetworkStream.SendChangePassword("eski", "yeni")
SendCreateCharacterPacket(name: str, job: int, shape: int, con: int, int_: int, str_: int, dex: int, unk: int) -> None

Yeni karakter olusturma paketi gonderir.Sends a packet to create a new character.

ParametreParameterTipTypeAçıklamaDescription
namestrKarakter adiCharacter name
jobintMeslekClass
shapeintGorunumAppearance
conintCON istatCON stat
int_intINT istatINT stat
str_intSTR istatSTR stat
dexintDEX istatDEX stat
unkintBilinmeyen parametreUnknown parameter
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendCreateCharacterPacket("Isim", 0, 0, 5, 5, 5, 5, 0)
SendPasswordType(type_: int, password: str) -> None

Belirtilen tipte bir sifre dogrulama paketi gonderir.Sends a password-verification packet of the given type.

ParametreParameterTipTypeAçıklamaDescription
type_intSifre tipiPassword type
passwordstrSifrePassword
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendPasswordType(0, "1234")
SendPrivateShopSearchInfo(race: int, itemCat: int, subCat: int, minRefine: int, maxRefine: int, minLevel: int, maxLevel: int, minGold: int, maxGold: int, minWon: int, maxWon: int) -> None

Ozel dukkan (private shop) aramasi icin filtre kriterlerini gonderir.Sends filter criteria for a private-shop search.

ParametreParameterTipTypeAçıklamaDescription
raceintIrk filtresiRace filter
itemCatintItem kategorisiItem category
subCatintAlt kategoriSubcategory
minRefineintMin gelistirmeMin refine
maxRefineintMax gelistirmeMax refine
minLevelintMin seviyeMin level
maxLevelintMax seviyeMax level
minGoldintMin fiyat (yang)Min price (yang)
maxGoldintMax fiyat (yang)Max price (yang)
minWonintMin fiyat (won)Min price (won)
maxWonintMax fiyat (won)Max price (won)
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendPrivateShopSearchInfo(0, 0, 0, 0, 9, 0, 999, 0, 999999, 0, 999999)
SendPrivateShopSearchInfoByVnum(vnum: int) -> None

Ozel dukkan aramasini belirli bir VNUM'a gore filtreler.Filters the private-shop search by a specific VNUM.

ParametreParameterTipTypeAçıklamaDescription
vnumintItem VNUMItem VNUM
Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendPrivateShopSearchInfoByVnum(vnum)
SendPremiumPrivateShopModify() -> None

Premium ozel dukkani duzenleme paketi gonderir.Sends a packet to modify the premium private shop.

Parametre almaz.Takes no parameters.

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

Premium ozel dukkani yeniden acma paketi gonderir.Sends a packet to reopen the premium private shop.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLPythonNetworkStream.SendPremiumPrivateShopReOpen()

GLConnect

Kanal (channel) ve karakter degistirme (C++ namespace: Connect)Channel and character switching (C++ namespace: Connect)

ManualCHChanger(ch: int) -> bool

Belirtilen kanala manuel olarak gecer.Manually switches to the given channel.

ParametreParameterTipTypeAçıklamaDescription
chintHedef kanal numarasiTarget channel number
Dönüş:Returns: bool — Basarili ise True— True on success
KullanımUsage
GLConnect.ManualCHChanger(2)
AutoCHChanger(serverName: str, ch: int) -> None

Belirtilen sunucu/kanal kombinasyonuna otomatik gecis yapar (tam baglanti akisi).Automatically switches to the given server/channel combination (full connection flow).

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

Ayni sunucuda baska bir karakter slotuna gecer.Switches to another character slot on the same server.

ParametreParameterTipTypeAçıklamaDescription
indexintKarakter slotuCharacter slot
Dönüş:Returns: bool — Basarili ise True— True on success
KullanımUsage
GLConnect.AutoCharacterChanger(0)
GetRandomCHWithList() -> int

Kullanicinin kanal listesinden rastgele bir kanal secer.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 siradaki kanali dondurur.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, kullanicinin tanimladigi kanal listesinde var mi.Is the given channel present in the user-defined channel list.

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

GLHelper

Geometri, zaman ve engel-kontrol yardimcilariGeometry, time and blocking-check helpers

GetTime() -> int

Sistem calisma suresini milisaniye olarak dondurur; zamanlayici (timer) mantigi icin kullanilir.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

Iki nokta arasindaki duz mesafeyi dondurur.Returns the straight-line distance between two points.

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

Iki nokta arasindaki mesafeyi tam sayi olarak dondurur.Returns the distance between two points as an integer.

ParametreParameterTipTypeAçıklamaDescription
pos1Position | tupleBirinci noktaFirst point
pos2Position | tupleIkinci 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 digerine bakmak icin gereken acidir (derece).The angle (degrees) required to face from one point toward another.

ParametreParameterTipTypeAçıklamaDescription
from_posPosition | tupleBaslangic noktasiStart 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

Iki (x, y) koordinati arasindaki aciyi hesaplar (duz float parametreler, Position degil).Computes the angle between two (x, y) coordinates (plain float parameters, not Position).

ParametreParameterTipTypeAçıklamaDescription
x1floatBirinci nokta XFirst point X
y1floatBirinci nokta YFirst point Y
x2floatIkinci nokta XSecond point X
y2floatIkinci 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

Iki nokta arasinda belirtilen yuzdedeki (orn. 0.5 = orta nokta) konumu dondurur.Returns the position at the given percentage (e.g. 0.5 = midpoint) between two points.

ParametreParameterTipTypeAçıklamaDescription
pos1Position | tupleBaslangicStart
pos2Position | tupleBitisEnd
percentfloat0.0 - 1.0 arasi yuzdePercentage 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 etrafinda, engelsiz/guvenli bir nokta bulmaya calisir.Attempts to find an unobstructed/safe point around the given center.

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

Iki nokta arasindaki hatti, belirtilen adim araligina gore ara noktalara boler (orn. duz-hat yurume/isinlanma simulasyonu icin).Splits the line between two points into intermediate points at the given step interval (e.g. for straight-line walk/teleport simulation).

ParametreParameterTipTypeAçıklamaDescription
pos1Position | tupleBaslangicStart
pos2Position | tupleBitisEnd
distanceintAdim araligiStep interval
Dönüş:Returns: list[dict] — Her biri {Position} alanini iceren sozluk listesi— A list of dicts, 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

Iki nokta arasindaki yol zemin/engel ozelligine (attribute) gore engelli mi kontrol eder.Checks whether the path between two points is blocked according to terrain/obstacle attributes.

ParametreParameterTipTypeAçıklamaDescription
pos1Position | tupleBirinci noktaFirst point
pos2Position | tupleIkinci 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 gondermeden) bir satir ekler.Appends 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")
GetBackgroundHeight(x: float, y: float) -> float

Verilen (x, y) koordinatindaki zemin/arazi yuksekligini dondurur.Returns the terrain height at the given (x, y) coordinate.

ParametreParameterTipTypeAçıklamaDescription
xfloatX koordinatiX coordinate
yfloatY koordinatiY coordinate
Dönüş:Returns: float
KullanımUsage
z = GLHelper.GetBackgroundHeight(123.0, 456.0)
DeleteAllActor() -> None

Istemci tarafinda render edilen tum aktor (obje) nesnelerini temizler.Clears all actor (object) instances rendered on the client.

Parametre almaz.Takes no parameters.

Dönüş:Returns: None
KullanımUsage
GLHelper.DeleteAllActor()

GLItem

VNUM bazli item veritabani sorgulari (C++ namespace: CItemManager)VNUM-based item database lookups (C++ namespace: CItemManager)

GetItemPrice(vnum: int) -> int

Item'in temel (NPC) satis fiyatini dondurur.Returns the item's base (NPC) sale price.

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

Item'in ana tipini dondurur.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 dondurur.Returns the item's subtype.

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

Item'in kullanim/kusanim icin gereken minimum seviyesini dondurur.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 kusanim bayragina (flag) sahip olup olmadigini kontrol eder.Checks whether the item has the given wearable 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 (kisitlama) bayragina sahip olup olmadigini kontrol eder.Checks whether the item has the given anti-flag (restriction).

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 uzerinde kusanilabilir mi.Can the item be worn 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/kupe/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 tasi vb.) takilabilir mi.Can a socket (gem/filler) be attached to the item.

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

Belirtilen indeksteki itemin soket bilgisini dondurur.Returns the socket info of the item at the given index.

ParametreParameterTipTypeAçıklamaDescription
indexintEnvanter/liste indeksiInventory/list index
Dönüş:Returns: int
KullanımUsage
socket = GLItem.GetSocket(0)

GLDamage

Otomatik saldiri/toplama durumu ve guvenli-bolge ayarlari (C++ namespace: Damage)Automatic attack/pickup state and safe-zone settings (C++ namespace: Damage)

TargetDamage() -> None

Su anki hedefe aninda bir saldiri aksiyonu tetikler.Immediately triggers an attack action against the current target.

Parametre almaz.Takes no parameters.

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

Otomatik saldiri (damage bot) ozelligi acik mi.Is the auto-attack (damage bot) feature on.

Parametre almaz.Takes no parameters.

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

Otomatik saldiri ozelligini acar/kapatir.Toggles the auto-attack feature.

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

Otomatik toplama (pickup bot) ozelligi acik mi.Is the auto-pickup (pickup bot) feature on.

Parametre almaz.Takes no parameters.

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

Otomatik toplama ozelligini acar/kapatir.Toggles the auto-pickup feature.

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

Bu dongude 'saldirildi' olarak isaretlenen mob listesini temizler.Clears the list of mobs marked as 'attacked' this cycle.

Parametre almaz.Takes no parameters.

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

Belirtilen mob'u 'saldirildi' 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 'saldirildi' 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

Guvenli-hasar (Safe Damage) modu icin tanimli mob tarama mesafesi.The mob-scan distance defined for Safe Damage mode.

Parametre almaz.Takes no parameters.

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

Guvenli-hasar modu icin mob tarama mesafesini ayarlar.Sets the mob-scan distance for Safe Damage mode.

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

Verilen konum, tanimli 'guvenli bolge' icinde 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

'Guvenli Hasar' (Safe Damage) modu acik mi.Is 'Safe Damage' mode on.

Parametre almaz.Takes no parameters.

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

'Guvenli Hasar' modunu acar/kapatir.Toggles 'Safe Damage' mode.

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

Guvenli-hasar modunda render/gorsel kontrolu acik mi.Is render/visual checking on in Safe Damage mode.

Parametre almaz.Takes no parameters.

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

Guvenli-hasar modunda render kontrolunu acar/kapatir.Toggles render checking in Safe Damage mode.

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

Guvenli-hasar modunda engel (block) kontrolu acik mi.Is obstacle (block) checking on in Safe Damage mode.

Parametre almaz.Takes no parameters.

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

Guvenli-hasar modunda engel kontrolunu acar/kapatir.Toggles obstacle checking in Safe Damage mode.

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

GLAPI

Genel / test amacli yardimcilarGeneral / test helpers

CheckAPI() -> None

API'nin dogru calistigini dogrulamak icin bir messagebox gosterir (baglanti testi).Shows a messagebox to verify that the API works correctly (connection test).

Parametre almaz.Takes no parameters.

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

GLProxy

SOCKS5 proxy uzerinden oyun baglantisini yonlendirme (C++ namespace: ProxySupport)Routing the game connection through a SOCKS5 proxy (C++ namespace: ProxySupport)

Hook(authState: bool, ip: str, port: int, username: str, password: str) -> None

Oyunun ag baglantisini (WS2_32.dll connect()) belirtilen SOCKS5 proxy uzerinden yonlendirir. Cagrildigi andan itibaren tum yeni soket baglantilari bu proxy'den gecer.Routes the game's network connection (WS2_32.dll connect()) through the given SOCKS5 proxy. From the moment it is called, every new socket connection goes through this proxy.

ParametreParameterTipTypeAçıklamaDescription
authStatebool1: kullanici adi/sifre ile kimlik dogrulamali proxy, 0: kimlik dogrulamasiz1: proxy with username/password authentication, 0: no authentication
ipstrProxy sunucu IP adresi (orn. "1.2.3.4")Proxy server IP address (e.g. "1.2.3.4")
portintProxy sunucu portuProxy server port
usernamestrProxy kullanici adi (authState=0 ise atlanabilir)Proxy username (can be omitted if authState=0)
passwordstrProxy sifresi (authState=0 ise atlanabilir)Proxy password (can be omitted if authState=0)
Dönüş:Returns: None
⚠️ username/password verilmezse bos string kabul edilir (authState=0 ile kullanin). Hook() bir kere cagrildiktan sonra proxy process boyunca aktif kalir, kapatma fonksiyonu yoktur.⚠️ If username/password are not given, an empty string is used (use with authState=0). Once Hook() is called, the proxy stays active for the lifetime of the process; there is no function to turn it off.
KullanımUsage
GLProxy.Hook(1, "1.2.3.4", 1080, "kullanici", "sifre")
# Kimlik dogrulamasiz proxy icin username/password atlanabilir:
GLProxy.Hook(0, "1.2.3.4", 1080)
IsInitalized() -> bool

Proxy'nin Hook() ile zaten baslatilip baslatilmadigini kontrol eder.Checks whether the proxy has already been started via Hook().

Parametre almaz.Takes no parameters.

Dönüş:Returns: bool
KullanımUsage
if not GLProxy.IsInitalized():
    GLProxy.Hook(0, "1.2.3.4", 1080)

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.