GetPosition() -> Position
Oyuncunun (x, y, z) konumunu döndürür.Returns the player's (x, y, z) position.
Parametre almaz.Takes no parameters.
pos = GetPosition()
Log("X: %f" % pos.x)
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.
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).
Ç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.
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).
PositionSpecial Type: PositionBirç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))
Herhangi bir class'a bağlı olmadan doğrudan çağrılırCalled directly, without belonging to any class
GLList2 fonksiyon2 functionsYakındaki objeleri ve yerdeki itemleri listelerLists nearby objects and items on the ground
GLPlayer19 fonksiyon19 functionsKendi karakterinin durumu (C++ namespace: Player)Your character's state (C++ namespace: Player)
GLPythonPlayer35 fonksiyon35 functionsEnvanter, statlar, skill ve hedef bilgisi (C++ namespace: CPythonPlayer)Inventory, stats, skills and target info (C++ namespace: CPythonPlayer)
GLPythonShop12 fonksiyon12 functionsNPC/oyuncu dükkânları (C++ namespace: CPythonShop)NPC/player shops (C++ namespace: CPythonShop)
GLPythonSafeBox11 fonksiyon11 functionsKasa (deposit box) işlemleri (C++ namespace: CPythonSafeBox)Safebox (deposit box) operations (C++ namespace: CPythonSafeBox)
GLPythonNetworkStream54 fonksiyon54 functionsSunucuya paket gönderme katmanı (C++ namespace: CPythonNetworkStream)Packet sending layer to the server (C++ namespace: CPythonNetworkStream)
GLConnect6 fonksiyon6 functionsKanal (channel) ve karakter değiştirme (C++ namespace: Connect)Channel and character switching (C++ namespace: Connect)
GLHelper10 fonksiyon10 functionsGeometri, zaman ve engel kontrol yardımcılarıGeometry, time and obstacle-check helpers
GLItem9 fonksiyon9 functionsVNUM bazlı item veritabanı sorguları (C++ namespace: CItemManager)VNUM-based item database queries (C++ namespace: CItemManager)
GLDamage17 fonksiyon17 functionsOtomatik 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 functionGenel / test amaçlı yardımcılarGeneral / test helpers
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.
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos | Position | tuple | Hedef konumTarget position |
SetPosition((123.0, 456.0, 0.0))
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
range | int | Tarama yarıçapıScan radius |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
range | int | Tarama yarıçapıScan radius |
for item in GLList.GetGroundItemList(100):
if item["Owner"] == "":
GLPythonNetworkStream.SendItemPickupPacket(item["VID"])
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.
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.
if GLPlayer.IsReady():
pass
IsDead() -> bool
Karakter öldü mü.Is the character dead?
Parametre almaz.Takes no parameters.
if GLPlayer.IsDead():
pass
IsWalking() -> bool
Karakter şu an yürüyor mu.Is the character currently walking?
Parametre almaz.Takes no parameters.
if GLPlayer.IsWalking():
pass
IsRideMount() -> bool
Karakter binek üzerinde mi.Is the character riding a mount?
Parametre almaz.Takes no parameters.
mounted = GLPlayer.IsRideMount()
GetLevel() -> int
Karakter seviyesi.Character level.
Parametre almaz.Takes no parameters.
lvl = GLPlayer.GetLevel()
GetName() -> str
Karakter adı.Character name.
Parametre almaz.Takes no parameters.
name = GLPlayer.GetName()
GetVirtualID() -> int
Karakterin kendi Virtual ID'si (VID).The character's own Virtual ID (VID).
Parametre almaz.Takes no parameters.
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.
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.
gname = GLPlayer.GetGuildName()
GetType() -> int
Karakterin obje tipi (instance type).The character's object type (instance type).
Parametre almaz.Takes no parameters.
GLPlayer.GetType()
GetRace() -> int
Karakterin ırk/job ID'si.The character's race/job ID.
Parametre almaz.Takes no parameters.
GLPlayer.GetRace()
GetRotation() -> float
Karakterin bakış açısı (derece).The character's view angle (degrees).
Parametre almaz.Takes no parameters.
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
rotation | float | Yeni açı (derece)New angle (degrees) |
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.
pos = GLPlayer.GetPixelPosition()
SetPixelPosition(pos: Position | tuple) -> None
Karakteri verilen konuma client-side ışınlatır.Teleports the character to the given position (client-side).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos | Position | tuple | Hedef konumTarget position |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
state | bool | 1: çoklu geçiş açık, 0: kapalı1: multi-pass on, 0: off |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos | Position | tuple | Hedef konumTarget position |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
mapName | str | Hedef harita adı (örn. metin2_map_a2)Target map name (e.g. metin2_map_a2) |
GLPlayer.ChangeMap("metin2_map_n_flame_01")
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
type | int | Stat 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) |
hp = GLPythonPlayer.GetStatus(6)
GetTargetVID() -> int
Şu anki hedefin Virtual ID'si.Virtual ID of the current target.
Parametre almaz.Takes no parameters.
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.
vnum = GLPythonPlayer.GetTargetVNUM()
SetTargetVID(vid: int) -> None
Hedefi doğrudan (paket göndermeden) ayarlar.Sets the target directly (without sending a packet).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Hedef Virtual IDTarget Virtual ID |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Hedef Virtual IDTarget Virtual ID |
forceChange | int | 1 ise zorla değiştir1 = force the change |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Aranan VNUMSearched VNUM |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Aranan Virtual IDSearched Virtual ID |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Hedef Virtual IDTarget Virtual ID |
pos = GLPythonPlayer.GetTargetPixelPosition(vid)
SetAutoAttackTargetActorID(vid: int) -> None
Otomatik saldırı hedefini ayarlar.Sets the auto attack target.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Hedef Virtual IDTarget Virtual ID |
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.
GLPythonPlayer.GetAutoAttackTargetActorState()
ClickSkillSlot(index: int) -> None
Belirtilen skill slotunu tetikler (kullanmaya çalışır).Triggers the given skill slot (tries to use it).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Skill slot indeksiSkill slot index |
GLPythonPlayer.ClickSkillSlot(0)
CanUseSkill(index: int) -> bool
Skill kullanılabilir durumda mı (cooldown/mana vb.).Is the skill usable (cooldown/mana etc.)?
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Skill slot indeksiSkill slot index |
if GLPythonPlayer.CanUseSkill(0):
pass
GetSkillGrade(slotIndex: int) -> int
Skill'in seviyesini (grade) döndürür.Returns the skill's level (grade).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
slotIndex | int | Skill slot indeksiSkill slot index |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
slotIndex | int | Skill slot indeksiSkill slot index |
idx = GLPythonPlayer.GetSkillIndex(0)
IsSkillActive(slotIndex: int) -> bool
Skill aktif/kullanımda mı.Is the skill active/in use?
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
slotIndex | int | Skill slot indeksiSkill slot index |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
skillSlot | int | Skill slot indeksiSkill slot index |
targetVID | int | Hedef VIDTarget VID |
GLPythonPlayer.__SendUseSkill(0, vid)
__SendClickActorPacket(instance: int) -> None
Bir objeye tıklama paketi gönderir.Sends a click packet to an object.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
instance | int | Ham obje işaretçisi (DWORD)Raw object pointer (DWORD) |
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.
vnum = GLPythonPlayer.GetWeaponVNUM()
GetExtendInvenMax() -> int
Genişletilmiş envanterin maksimum slot sayısı.Maximum slot count of the extended inventory.
Parametre almaz.Takes no parameters.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Envanter slotuInventory slot |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
slot = GLPythonPlayer.GetItemSlotByVnum(vnum)
GetItemCount(index: int) -> int
Belirtilen slottaki item adedini döndürür.Returns the item count in the given slot.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Envanter slotuInventory slot |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
count = GLPythonPlayer.GetItemCountByVnum(vnum)
GetItemCountManual(vnum: int) -> int
GetItemCountByVnum'a alternatif, manuel tarama ile sayar.Alternative to GetItemCountByVnum; counts by manual scanning.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
cell | int | Envanter slotuInventory slot |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
cell | int | Envanter slotuInventory slot |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
cell | int | Envanter slotuInventory slot |
slotIdx | int | Attribute slotu (0-4)Attribute slot (0-4) |
outType | int | Çıkış: tip (ham adres)Output: type (raw address) |
outValue | int | Çıkış: değer (ham adres)Output: value (raw address) |
# onerilmez, bkz. notlar
GetItemAttributeCount(index: int) -> int
Bir itemin kaç dolu attribute'u olduğunu sayar.Counts how many attributes an item has filled.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Envanter slotuInventory slot |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
id | int | Attribute tip ID'siAttribute type ID |
name = GLPythonPlayer.GetAttributeNameByID(1)
NEW_Fishing() -> None
Balık tutma aksiyonunu başlatır.Starts the fishing action.
Parametre almaz.Takes no parameters.
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.
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.
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.
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
status | bool | 1: frame skip açık1: frame skip on |
GLPythonPlayer.FrameSkip(1)
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.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Satıcı NPC/oyuncunun Virtual ID'siVirtual ID of the seller NPC/player |
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.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Dükkân slotuShop slot |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Dükkân slotuShop slot |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Dükkân slotuShop slot |
won = GLPythonShop.GetItemWon(0)
GetItemCount(index: int) -> int
Belirtilen slottaki item adedini döndürür.Returns the item count in the given slot.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Dükkân slotuShop slot |
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?
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Dükkân/market slotuShop/market slot |
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?
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Satıcı Virtual IDSeller Virtual ID |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
itemPos | int | Envanter slotuInventory slot |
displayPos | int | Dükkânda gösterilecek sıraDisplay order in the shop |
price | int | Yang fiyatıYang price |
priceCheque | int | Çek/WON fiyatıCheque/WON price |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
nickList | str | Virgül/satırla ayrılmış kullanıcı adlarıComma/line-separated usernames |
GLPythonShop.SetBlackListNicks("kullanici1,kullanici2")
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.
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.
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.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
password | str | Kasa şifresiSafebox password |
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.
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.
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()).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
password | str | Kasa şifresiSafebox password |
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.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
slot | int | Kasa slotuSafebox slot |
vnum = GLPythonSafeBox.GetItemVNUMBySlot(0)
ConvertYangToWon(count: int) -> None
Yang'ı WON'a çevirme işlemini başlatır.Starts the Yang-to-WON conversion.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
count | int | Çevrilecek adet/miktarAmount to convert |
GLPythonSafeBox.ConvertYangToWon(1)
OpenSafeBoxMarket() -> None
Kasanın 'market' alt penceresini açar.Opens the safebox's 'market' sub-window.
Parametre almaz.Takes no parameters.
GLPythonSafeBox.OpenSafeBoxMarket()
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.
phase = GLPythonNetworkStream.GetPhase()
SetPhase(phase: int) -> None
İstemci fazını değiştirir.Changes the client phase.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
phase | int | Yeni faz değeriNew phase value |
GLPythonNetworkStream.SetPhase(phase)
ServerName() -> str
Bağlı olunan sunucunun adı.Name of the server currently connected to.
Parametre almaz.Takes no parameters.
name = GLPythonNetworkStream.ServerName()
GetCH() -> int
Bağlı olunan kanal (channel) numarası.Number of the channel currently connected to.
Parametre almaz.Takes no parameters.
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.
GLPythonNetworkStream.GetFastTeleportState()
SetFastTeleportState(state: bool) -> None
Hızlı ışınlanma modunu açar/kapatır.Enables/disables the fast teleport mode.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
state | bool | 1: açık, 0: kapalı1: on, 0: off |
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.
GLPythonNetworkStream.GetAttrMap()
SetAttrMap(status: bool) -> None
Zemin/engel kontrolünü açar/kapatır.Enables/disables the ground/obstacle check.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
status | bool | 1: açık, 0: kapalı1: on, 0: off |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos | Position | tuple | KonumPosition |
rotation | float | Bakış açısıView angle |
state1 | int | Durum biti 1Status bit 1 |
state2 | int | Durum biti 2Status bit 2 |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
motion | int | Saldırı animasyon/motion ID'siAttack animation/motion ID |
targetVID | int | Hedef Virtual IDTarget Virtual ID |
GLPythonNetworkStream.SendBattleAttackPacket(0, vid)
SendAttackPacket(motion: int, targetVID: int) -> None
SendBattleAttackPacket ile aynı (alias).Same as SendBattleAttackPacket (alias).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
motion | int | Saldırı animasyon/motion ID'siAttack animation/motion ID |
targetVID | int | Hedef Virtual IDTarget Virtual ID |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Hedef Virtual IDTarget Virtual ID |
pos | Position | tuple | Hedef konumTarget position |
GLPythonNetworkStream.SendFlyTargetingPacket(vid, pos)
SendUseSkillPacket(skillIndex: int, targetVID: int) -> None
Skill kullanma paketi gönderir.Sends a skill-use packet.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
skillIndex | int | Skill indexSkill index |
targetVID | int | Hedef Virtual IDTarget Virtual ID |
GLPythonNetworkStream.SendUseSkillPacket(0, vid)
SendShootPacket(targetVID: int) -> None
Menzilli (ok vb.) saldırı paketi gönderir.Sends a ranged (arrow etc.) attack packet.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
targetVID | int | Hedef Virtual IDTarget Virtual ID |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Yerdeki itemin Virtual ID'siVirtual ID of the item on the ground |
GLPythonNetworkStream.SendItemPickupPacket(vid)
SendItemUsePacket(slot: int) -> None
Envanterden bir itemi kullanma paketi gönderir.Sends a packet that uses an item from the inventory.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
slot | int | Envanter slotuInventory slot |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
slot | int | Kaynak item slotuSource item slot |
targetSlot | int | Hedef item slotuTarget item slot |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
count | int | AdetCount |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
slot | int | Envanter slotuInventory slot |
count | int | AdetCount |
unk | int | Bilinmeyen parametreUnknown parameter |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
targetVID | int | Hedef oyuncu Virtual IDTarget player Virtual ID |
itemPos | int | Envanter slotuInventory slot |
count | int | AdetCount |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
id | int | Seçilen item/seçenek ID'siSelected item/option ID |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
a | int | Kaynak slotSource slot |
b | int | Hedef slotTarget slot |
c | int | AdetCount |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Kasa slotuSafebox slot |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
a | int | Depo tipi/parametresiStorage type/parameter |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
slotPos | int | Dükkândaki item slotuItem slot in the shop |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
a | int | Envanter slotuInventory slot |
b | int | AdetCount |
c | int | Bilinmeyen parametreUnknown parameter |
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.
GLPythonNetworkStream.SendShopEndPacket()
SendExchangeStartPacket(vid: int) -> None
Takas (exchange) başlatma paketi gönderir.Sends an exchange-start packet.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Karşı tarafın Virtual ID'siThe other party's Virtual ID |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
itemPos | int | Envanter slotuInventory slot |
exchangePos | int | Takas penceresindeki slotSlot in the exchange window |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
yang | int | Eklenecek yangYang to add |
won | int | Eklenecek WONWON to add |
GLPythonNetworkStream.SendExchangeElkAddPacket(1000, 0)
SendExchangeAcceptPacket() -> None
Takası onaylama paketi gönderir.Sends a packet that confirms the exchange.
Parametre almaz.Takes no parameters.
GLPythonNetworkStream.SendExchangeAcceptPacket()
SendRefinePacket(a: int, b: int) -> None
Item geliştirme (refine) paketi gönderir.Sends an item upgrade (refine) packet.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
a | int | İşlem tipiOperation type |
b | int | Hedef slotTarget slot |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
a | int | NPC/diyalog parametresiNPC/dialog parameter |
b | int | Seçenek/VIDOption/VID |
c | int | Ek parametreExtra parameter |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
a1 | int | Komut koduCommand code |
a2 | int | Alt parametreSub-parameter |
a3 | str | Metin parametresi (boş geçilebilir)Text parameter (may be left empty) |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
experience | int | Bağışlanacak tecrübe miktarıAmount of experience to donate |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
text | str | Girilen metinEntered text |
GLPythonNetworkStream.SendQuestInputStringPacket("merhaba")
SendScriptAnswerPacket(answer: int) -> None
Script/diyalog penceresine cevap paketi gönderir.Sends an answer packet to the script/dialog window.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
answer | int | Seçilen cevap/buton index'iSelected answer/button index |
GLPythonNetworkStream.SendScriptAnswerPacket(0)
SendOnClickPacket(vid: int) -> None
Bir NPC/objeye tıklama paketi gönderir.Sends a click packet to an NPC/object.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Tıklanan objenin Virtual ID'siVirtual ID of the clicked object |
GLPythonNetworkStream.SendOnClickPacket(vid)
DirectEnter(channel: int) -> None
Belirtilen kanala doğrudan giriş paketi gönderir.Sends a direct entry packet to the given channel.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
channel | int | Girilecek kanalChannel to enter |
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.
GLPythonNetworkStream.ClosePhase()
CheckPacket(packet: int) -> None
Belirtilen paketi bekleme/kontrol kuyruğuna ekler.Adds the given packet to the wait/check queue.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
packet | int | Paket ID'siPacket ID |
GLPythonNetworkStream.CheckPacket(0)
SendChatPacket(text: str, type: int) -> None
Sohbet mesajı gönderir.Sends a chat message.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
text | str | Mesaj metniMessage text |
type | int | Sohbet tipi (normal/shout/vb.)Chat type (normal/shout/etc.) |
GLPythonNetworkStream.SendChatPacket("merhaba", 0)
SendWhisperPacket(name: str, text: str) -> None
Fısıltı (whisper/tell) mesajı gönderir.Sends a whisper (tell) message.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
name | str | Alıcı kullanıcı adıRecipient username |
text | str | Mesaj metniMessage text |
GLPythonNetworkStream.SendWhisperPacket("oyuncu1", "merhaba")
SendServerCommand(command: str) -> None
Sunucuya özel bir komut string'i gönderir.Sends a server-specific command string.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
command | str | Komut metniCommand text |
GLPythonNetworkStream.SendServerCommand("komut")
SendEmoticon(id: int) -> None
Emoticon gösterme paketi gönderir.Sends a packet that shows an emoticon.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
id | int | Emoticon ID'siEmoticon ID |
GLPythonNetworkStream.SendEmoticon(0)
SendFishingPacket(rotation: int) -> None
Balık tutma (olta atma) paketi gönderir.Sends a fishing (cast line) packet.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
rotation | int | Olta atış açısıCast angle |
GLPythonNetworkStream.SendFishingPacket(0)
SendFishingQuitPacket(a: int, b: float) -> None
Balık tutmayı bırakma paketi gönderir.Sends a packet to stop fishing.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
a | int | ParametreParameter |
b | float | ParametreParameter |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Hedef Virtual IDTarget Virtual ID |
index | int | Index |
unk | int | Bilinmeyen parametreUnknown parameter |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
title | str | Mail başlığıMail title |
content | str | Mail içeriğiMail content |
sender | str | Alıcı adıRecipient name |
a | int | ParametreParameter |
b | int | ParametreParameter |
c | int | ParametreParameter |
d | int | ParametreParameter |
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.
GLPythonNetworkStream.GetAllMailBoxPacket()
DeleteAllMailBoxPacket() -> None
Tüm postaları silme paketi gönderir.Sends a packet that deletes all mails.
Parametre almaz.Takes no parameters.
GLPythonNetworkStream.DeleteAllMailBoxPacket()
CloseMailBoxPacket() -> None
Posta kutusu penceresini kapatma paketi gönderir.Sends a packet that closes the mailbox window.
Parametre almaz.Takes no parameters.
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.
GLPythonNetworkStream.SetBlockOnScriptEventStart()
SetUnBlockOnScriptEventStart() -> None
SetBlockOnScriptEventStart ile uygulanan engeli kaldırır.Removes the block applied by SetBlockOnScriptEventStart.
Parametre almaz.Takes no parameters.
GLPythonNetworkStream.SetUnBlockOnScriptEventStart()
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
ch | int | Hedef kanal numarasıTarget channel number |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
serverName | str | Sunucu adıServer name |
ch | int | Hedef kanal numarasıTarget channel number |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Karakter slotuCharacter slot |
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.
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.
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?
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
ch | int | Kanal numarasıChannel number |
GLConnect.IsInCHList(2)
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.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos1 | Position | tuple | Birinci noktaFirst point |
pos2 | Position | tuple | İkinci noktaSecond point |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos1 | Position | tuple | Birinci noktaFirst point |
pos2 | Position | tuple | İkinci noktaSecond point |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
from_pos | Position | tuple | Başlangıç noktasıStart point |
to_pos | Position | tuple | Hedef noktaTarget point |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
x1 | float | Birinci nokta XFirst point X |
y1 | float | Birinci nokta YFirst point Y |
x2 | float | İkinci nokta XSecond point X |
y2 | float | İkinci nokta YSecond point Y |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos1 | Position | tuple | BaşlangıçStart |
pos2 | Position | tuple | BitişEnd |
percent | float | 0.0 - 1.0 arası yüzdePercentage between 0.0 and 1.0 |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos | Position | tuple | Merkez noktaCenter point |
distance | int | YarıçapRadius |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos1 | Position | tuple | BaşlangıçStart |
pos2 | Position | tuple | BitişEnd |
distance | int | Adım aralığıStep interval |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos1 | Position | tuple | Birinci noktaFirst point |
pos2 | Position | tuple | İkinci noktaSecond point |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
type | int | Sohbet tipiChat type |
text | str | Mesaj metniMessage text |
GLHelper.AppendChat(0, "lokal mesaj")
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
price = GLItem.GetItemPrice(vnum)
GetItemType(vnum: int) -> int
Item'in ana tipini döndürür.Returns the item's main type.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
itemType = GLItem.GetItemType(vnum)
GetItemSubType(vnum: int) -> int
Item'in alt tipini döndürür.Returns the item's sub-type.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
flag | int | Kontrol edilecek flag bitiFlag bit to check |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
flag | int | Kontrol edilecek anti-flag bitiAnti-flag bit to check |
GLItem.IsAntiFlag(vnum, flag)
IsCharacterWearable(vnum: int) -> bool
Item karakter üzerinde kuşanılabilir mi.Can the item be equipped on the character?
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
GLItem.IsCharacterWearable(vnum)
IsAccessory(vnum: int) -> bool
Item bir aksesuar (kolye/küpe/bilezik) mi.Is the item an accessory (necklace/earring/bracelet)?
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
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?
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
GLItem.IsSocketable(vnum)
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.
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.
GLDamage.GetDamageStatus()
SetDamageStatus(state: bool) -> None
Otomatik saldırı özelliğini açar/kapatır.Enables/disables the auto attack feature.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
state | bool | 1: açık, 0: kapalı1: on, 0: off |
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.
GLDamage.GetPickupStatus()
SetPickupStatus(state: bool) -> None
Otomatik toplama özelliğini açar/kapatır.Enables/disables the auto pickup feature.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
state | bool | 1: açık, 0: kapalı1: on, 0: off |
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.
GLDamage.ResetAttackedMobVIDS()
AddAttackedMobVIDS(vid: int) -> None
Belirtilen mob'u 'saldırıldı' listesine ekler.Adds the given mob to the 'attacked' list.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Mob Virtual IDMob Virtual ID |
GLDamage.AddAttackedMobVIDS(vid)
IsInAttackedMobVIDS(vid: int) -> bool
Belirtilen mob 'saldırıldı' listesinde mi.Is the given mob in the 'attacked' list?
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Mob Virtual IDMob Virtual ID |
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.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
distance | int | Yeni mesafeNew distance |
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'?
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos | Position | tuple | Kontrol edilecek konumPosition to check |
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.
GLDamage.GetSafeDamage()
SetSafeDamage(state: bool) -> None
'Güvenli Hasar' modunu açar/kapatır.Enables/disables the 'Safe Damage' mode.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
state | bool | 1: açık, 0: kapalı1: on, 0: off |
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.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
state | bool | 1: açık, 0: kapalı1: on, 0: off |
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.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
state | bool | 1: açık, 0: kapalı1: on, 0: off |
GLDamage.SetSafeDamageBlockControl(1)
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.
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.