GetPosition() -> Position
Oyuncunun (x, y, z) konumunu dondurur.Returns the player's (x, y, z) position.
Parametre almaz.Takes no parameters.
pos = GetPosition()
x = 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.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.
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()
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 bagli olmadan dogrudan cagrilirCalled directly without belonging to any class
GLList2 fonksiyon2 functionsYakindaki objeleri ve yerdeki itemleri listelerLists nearby objects and items on the ground
GLPlayer28 fonksiyon28 functionsKendi karakterinin durumu (C++ namespace: Player)Your own character's state (C++ namespace: Player)
GLPythonPlayer41 fonksiyon41 functionsEnvanter, statlar, skill ve hedef bilgisi (C++ namespace: CPythonPlayer)Inventory, stats, skills and target info (C++ namespace: CPythonPlayer)
GLPythonShop16 fonksiyon16 functionsNPC/oyuncu dukkanlari (C++ namespace: CPythonShop)NPC/player shops (C++ namespace: CPythonShop)
GLPythonSafeBox11 fonksiyon11 functionsKasa (deposit box) islemleri (C++ namespace: CPythonSafeBox)Safe deposit box operations (C++ namespace: CPythonSafeBox)
GLPythonNetworkStream88 fonksiyon88 functionsSunucuya paket gonderme katmani (C++ namespace: CPythonNetworkStream)Packet-sending layer to the server (C++ namespace: CPythonNetworkStream)
GLConnect6 fonksiyon6 functionsKanal (channel) ve karakter degistirme (C++ namespace: Connect)Channel and character switching (C++ namespace: Connect)
GLHelper12 fonksiyon12 functionsGeometri, zaman ve engel-kontrol yardimcilariGeometry, time and blocking-check helpers
GLItem10 fonksiyon10 functionsVNUM bazli item veritabani sorgulari (C++ namespace: CItemManager)VNUM-based item database lookups (C++ namespace: CItemManager)
GLDamage17 fonksiyon17 functionsOtomatik saldiri/toplama durumu ve guvenli-bolge ayarlari (C++ namespace: Damage)Automatic attack/pickup state and safe-zone settings (C++ namespace: Damage)
GLAPI1 fonksiyon1 functionGenel / test amacli yardimcilarGeneral / test helpers
GLProxy2 fonksiyon2 functionsSOCKS5 proxy uzerinden oyun baglantisini yonlendirme (C++ namespace: ProxySupport)Routing the game connection through a SOCKS5 proxy (C++ namespace: ProxySupport)
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.
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos | Position | tuple | Hedef konumTarget position |
SetPosition((123.0, 456.0, 0.0))
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
range | int | Tarama yaricapiScan radius |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
range | int | Tarama yaricapiScan radius |
for item in GLList.GetGroundItemList(100):
if item["Owner"] == "":
GLPythonNetworkStream.SendItemPickupPacket(item["VID"])
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.
if GLPlayer.IsOnline():
pass
IsReady() -> bool
Karakter tamamen yuklenip hazir mi.Is the character fully loaded and ready.
Parametre almaz.Takes no parameters.
if GLPlayer.IsReady():
pass
IsDead() -> bool
Karakter olu mu.Is the character dead.
Parametre almaz.Takes no parameters.
if GLPlayer.IsDead():
pass
IsWalking() -> bool
Karakter su an yuruyor mu.Is the character currently walking.
Parametre almaz.Takes no parameters.
if GLPlayer.IsWalking():
pass
IsRideMount() -> bool
Karakter binek uzerinde mi.Is the character riding a mount.
Parametre almaz.Takes no parameters.
mounted = GLPlayer.IsRideMount()
GetLevel() -> int
Karakter seviyesi.The character's level.
Parametre almaz.Takes no parameters.
lvl = GLPlayer.GetLevel()
GetName() -> str
Karakter adi.The character's 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 uye oldugu loncanin ID'si.The ID of the guild the character belongs to.
Parametre almaz.Takes no parameters.
gid = GLPlayer.GetGuildID()
GetGuildName() -> str
Karakterin uye oldugu loncanin adi.The 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 irk/job ID'si.The character's race/job ID.
Parametre almaz.Takes no parameters.
GLPlayer.GetRace()
GetRotation() -> float
Karakterin bakis acisi (derece).The character's facing angle (degrees).
Parametre almaz.Takes no parameters.
rot = GLPlayer.GetRotation()
SetRotation(rotation: float) -> None
Karakterin bakis acisini client-side degistirir.Changes the character's facing angle, client-side.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
rotation | float | Yeni aci (derece)New angle (degrees) |
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.
pos = GLPlayer.GetPixelPosition()
SetPixelPosition(pos: Position | tuple) -> None
Karakteri verilen konuma client-side isinlatir.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 kontrolunu acip kapatir (wall-hack).Toggles wall/collision checking (wall-hack).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
state | bool | 1: coklu gecis acik, 0: kapali1: pass through walls, 0: off |
GLPlayer.SetSkipCollision(1)
Move(pos: Position | tuple) -> None
Karakteri belirtilen hedefe dogru yurutmeye baslatir.Starts walking the character toward the given destination.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos | Position | tuple | Hedef konumTarget position |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
mapName | str | Hedef harita adi (orn. metin2_map_a2)Target map name (e.g. metin2_map_a2) |
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.
GLPlayer.IsDeadEx()
SetDead(isDead: bool) -> None
Karakterin client-side olu durumunu zorla ayarlar.Forces the character's client-side dead state.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
isDead | bool | 1: olu, 0: canli1: dead, 0: alive |
GLPlayer.SetDead(0)
SetRotateSpeed(speed: float) -> None
Karakterin donus (rotasyon) hizini ayarlar.Sets the character's turning (rotation) speed.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
speed | float | Donus hiziTurning speed |
GLPlayer.SetRotateSpeed(500.0)
IsAffect(affect: int) -> bool
Karakterde belirtilen buff/debuff etkisi var mi.Does the character have the given buff/debuff effect.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
affect | int | Buff/debuff (affect) ID'siBuff/debuff (affect) ID |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
x | float | X koordinatiX coordinate |
y | float | Y koordinatiY coordinate |
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.
GLPlayer.StoneDetector()
BossDetector() -> None
Boss mob tarama/algilama rutinini tetikler.Triggers the boss mob scan/detection routine.
Parametre almaz.Takes no parameters.
GLPlayer.BossDetector()
SetMoveSpeed(speed: int) -> None
Karakterin hareket hizini client-side degistirir (speed hack).Changes the character's movement speed, client-side (speed hack).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
speed | int | Yeni hareket hiziNew movement speed |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
motion | int | Motion/animasyon ID'siMotion/animation ID |
blendTime | float | Geçiş süresiTransition time |
speedRatio | float | Oynatma hizi oraniPlayback speed ratio |
GLPlayer.SetLoopMotion(1, 0.1, 1.0)
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
type | int | Stat 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) |
hp = GLPythonPlayer.GetStatus(6)
GetTargetVID() -> int
Su anki hedefin Virtual ID'si.The Virtual ID of the current target.
Parametre almaz.Takes no parameters.
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.
vnum = GLPythonPlayer.GetTargetVNUM()
SetTargetVID(vid: int) -> None
Hedefi dogrudan (paket gondermeden) 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 istege bagli olarak zorla degistirir.Sets the target and optionally forces the change.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Hedef Virtual IDTarget Virtual ID |
forceChange | int | 1 ise zorla degistir1 to force the change |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Aranan VNUMVNUM to search for |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Aranan Virtual IDVirtual ID to look up |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Hedef Virtual IDTarget Virtual ID |
pos = GLPythonPlayer.GetTargetPixelPosition(vid)
SetAutoAttackTargetActorID(vid: int) -> None
Otomatik saldiri hedefini ayarlar.Sets the auto-attack target.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Hedef Virtual IDTarget Virtual ID |
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.
GLPythonPlayer.GetAutoAttackTargetActorState()
ClickSkillSlot(index: int) -> None
Belirtilen skill slotunu tetikler (kullanmaya calisir).Triggers (attempts to use) the given skill slot.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Skill slot indeksiSkill slot index |
GLPythonPlayer.ClickSkillSlot(0)
CanUseSkill(index: int) -> bool
Skill kullanilabilir durumda mi (cooldown/mana vb.).Is the skill usable right now (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) dondurur.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 gercek index numarasini dondurur.Returns the skill's real index number.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
slotIndex | int | Skill slot indeksiSkill slot index |
idx = GLPythonPlayer.GetSkillIndex(0)
IsSkillActive(slotIndex: int) -> bool
Skill aktif/kullanimda mi.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 skilli belirtilen hedefe kullanma paketi gonderir.Sends a packet to use 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 tiklama paketi gonderir.Sends a click packet for an object.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
instance | int | Ham obje isaretcisi (DWORD)Raw object pointer (DWORD) |
GLPythonPlayer.__SendClickActorPacket(instance)
GetWeaponVNUM() -> int
Kusanilan silahin VNUM'unu dondurur.Returns the VNUM of the equipped weapon.
Parametre almaz.Takes no parameters.
vnum = GLPythonPlayer.GetWeaponVNUM()
GetExtendInvenMax() -> int
Genisletilmis envanterin maksimum slot sayisi.The maximum slot count of the extended inventory.
Parametre almaz.Takes no parameters.
maxSlot = GLPythonPlayer.GetExtendInvenMax()
GetItemVnumByIndex(index: int) -> int
Belirtilen slottaki itemin VNUM'unu dondurur.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 dondurur.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 item count in the inventory for the given VNUM.
| 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 via a manual scan.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
count = GLPythonPlayer.GetItemCountManual(vnum)
GetItemTypeBySlot(cell: int) -> int
Belirtilen slottaki itemin tipini dondurur.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 dondurur.Returns the subtype 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 gorunen adini dondurur.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 | Cikis: tip (ham adres)Output: type (raw address) |
outValue | int | Cikis: deger (ham adres)Output: value (raw address) |
# onerilmez, bkz. notlar
GetItemAttributeCount(index: int) -> int
Bir itemin kac dolu attribute'u oldugunu sayar.Counts how many filled attributes an item has.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Envanter slotuInventory slot |
count = GLPythonPlayer.GetItemAttributeCount(0)
GetAttributeNameByID(id: int) -> str
Bir attribute ID'sinin gorunen adini dondurur.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
Balik tutma aksiyonunu baslatir.Starts the fishing action.
Parametre almaz.Takes no parameters.
GLPythonPlayer.NEW_Fishing()
IHavePickaxe() -> bool
Envanterde/kusanimda kazma var mi.Is there a pickaxe in the inventory/equipped.
Parametre almaz.Takes no parameters.
GLPythonPlayer.IHavePickaxe()
GetPickaxeCurrentScore() -> int
Kusanilan kazmanin guncel durabilirlik/skorunu dondurur.Returns the equipped pickaxe's current durability/score.
Parametre almaz.Takes no parameters.
score = GLPythonPlayer.GetPickaxeCurrentScore()
GetPickaxeMaxScore() -> int
Kusanilan kazmanin maksimum durabilirlik/skorunu dondurur.Returns the equipped pickaxe's maximum durability/score.
Parametre almaz.Takes no parameters.
maxScore = GLPythonPlayer.GetPickaxeMaxScore()
FrameSkip(status: bool) -> None
Render frame-skip modunu acar/kapatir (performans ayari).Toggles render frame-skip mode (performance setting).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
status | bool | 1: frame skip acik1: frame skip on |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
name | str | Aranan karakter/obje adiCharacter/object name to search for |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Envanter slotuInventory slot |
vnum | int | Item VNUMItem VNUM |
count | int | AdetCount |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Envanter slotuInventory slot |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
cell | int | Envanter slotuInventory slot |
socketIndex | int | Soket indeksi (0-2)Socket index (0-2) |
socketVnum = GLPythonPlayer.GetItemMetinSocket(0, 0)
SetStatePacket(value: int) -> bool
Karakter durum paketi gonderimini ayarlar.Configures character state-packet transmission.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
value | int | Durum degeriState value |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Envanter slotuInventory slot |
bk | str | Varsayilan/placeholder degerDefault/placeholder value |
name = GLPythonPlayer.GetBKName(0, "")
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.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Satici NPC/oyuncunun Virtual ID'siSeller NPC/player's Virtual ID |
GLPythonShop.OpenShopFast(vid)
GetItemListSize() -> int
Acik dukkandaki toplam item sayisi.Total number of items in the open shop.
Parametre almaz.Takes no parameters.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
slot = GLPythonShop.GetSlotByVNUM(vnum)
GetItemVNUM(index: int) -> int
Belirtilen slottaki itemin VNUM'unu dondurur.Returns the VNUM of the item in the given slot.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Dukkan slotuShop slot |
vnum = GLPythonShop.GetItemVNUM(0)
GetItemPrice(index: int) -> int
Belirtilen slottaki itemin fiyatini dondurur.Returns the price of the item in the given slot.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Dukkan slotuShop slot |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Dukkan slotuShop slot |
won = GLPythonShop.GetItemWon(0)
GetItemCount(index: int) -> int
Belirtilen slottaki item adedini dondurur.Returns the item count in the given slot.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Dukkan slotuShop slot |
count = GLPythonShop.GetItemCount(0)
IsMyItemInMarket(index: int) -> bool
Belirtilen slottaki item kendi satisin mi.Is the item in the given slot your own listing.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Dukkan/market slotuShop/market slot |
GLPythonShop.IsMyItemInMarket(0)
IsLimitedItemShop(vid: int) -> bool
Bu satici sinirli-stoklu bir dukkan mi.Is this seller a limited-stock shop.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Satici Virtual IDSeller Virtual ID |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
itemPos | int | Envanter slotuInventory slot |
displayPos | int | Dukkanda gosterilecek siraDisplay order in the shop |
price | int | Yang fiyatiYang price |
priceCheque | int | Cek/WON fiyatiCheque/WON price |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
nickList | str | Virgul/satirla ayrilmis kullanici adlariComma/newline-separated usernames |
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.
GLPythonShop.IsTradeGlassesOpen()
GetBKName(index: int) -> str
Dukkandaki bir itemin 'BK' (bonus/ozel) adini dondurur.Returns a shop item's 'BK' (bonus/special) name.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Dukkan slotuShop slot |
name = GLPythonShop.GetBKName(0)
SetNewPrivateShopStatus(value: int) -> None
Yeni-tip ozel dukkan (private shop) durumunu ayarlar.Sets the new-style private shop status.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
value | int | Durum degeriState value |
GLPythonShop.SetNewPrivateShopStatus(1)
SetNewPrivateShopSettings(index: int, index2: int) -> None
Yeni-tip ozel dukkan ayarlarini yapilandirir.Configures the new-style private shop settings.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Ayar indeksiSetting index |
index2 | int | Ikincil ayar indeksiSecondary setting index |
GLPythonShop.SetNewPrivateShopSettings(0, 0)
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.
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.
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.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
password | str | Kasa sifresiSafe box password |
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.
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.
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()).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
password | str | Kasa sifresiSafe box password |
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.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
slot | int | Kasa slotuSafe box slot |
vnum = GLPythonSafeBox.GetItemVNUMBySlot(0)
ConvertYangToWon(count: int) -> None
Yang'i WON'a cevirme islemini baslatir.Starts converting Yang to WON.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
count | int | Cevrilecek adet/miktarAmount to convert |
GLPythonSafeBox.ConvertYangToWon(1)
OpenSafeBoxMarket() -> None
Kasanin 'market' alt penceresini acar.Opens the safe box's 'market' sub-window.
Parametre almaz.Takes no parameters.
GLPythonSafeBox.OpenSafeBoxMarket()
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.
phase = GLPythonNetworkStream.GetPhase()
SetPhase(phase: int) -> None
Istemci fazini degistirir.Changes the client's phase.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
phase | int | Yeni faz degeriNew phase value |
GLPythonNetworkStream.SetPhase(phase)
ServerName() -> str
Bagli olunan sunucunun adi.The name of the server you're connected to.
Parametre almaz.Takes no parameters.
name = GLPythonNetworkStream.ServerName()
GetCH() -> int
Bagli olunan kanal (channel) numarasi.The channel number you're connected to.
Parametre almaz.Takes no parameters.
ch = GLPythonNetworkStream.GetCH()
GetFastTeleportState() -> bool
Hizli-isinlanma (fast teleport) modu acik mi.Is fast-teleport mode on.
Parametre almaz.Takes no parameters.
GLPythonNetworkStream.GetFastTeleportState()
SetFastTeleportState(state: bool) -> None
Hizli-isinlanma modunu acar/kapatir.Toggles fast-teleport mode.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
state | bool | 1: acik, 0: kapali1: on, 0: off |
GLPythonNetworkStream.SetFastTeleportState(1)
GetAttrMap() -> bool
Zemin/engel (attribute map) kontrolu acik mi.Is terrain/obstacle (attribute map) checking on.
Parametre almaz.Takes no parameters.
GLPythonNetworkStream.GetAttrMap()
SetAttrMap(status: bool) -> None
Zemin/engel kontrolunu acar/kapatir.Toggles terrain/obstacle checking.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
status | bool | 1: acik, 0: kapali1: on, 0: off |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos | Position | tuple | KonumPosition |
rotation | float | Bakis acisiFacing angle |
state1 | int | Durum biti 1State bit 1 |
state2 | int | Durum biti 2State bit 2 |
GLPythonNetworkStream.SendCharacterStatePacket(pos, rotation, 1, 0)
SendBattleAttackPacket(motion: int, targetVID: int) -> None
Yakin donus saldiri paketi gonderir.Sends a melee attack packet.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
motion | int | Saldiri 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 ayni (alias).Same as SendBattleAttackPacket (alias).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
motion | int | Saldiri 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/ucan saldiri hedefleme paketi gonderir.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 gonderir.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.) saldiri paketi gonderir.Sends a ranged (bow 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 gonderir.Sends a packet to pick 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 gonderir.Sends a packet to use 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 baska bir item uzerinde kullanma paketi gonderir (orn. birlestirme).Sends a packet to use an 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 birakma paketi (eski format) gonderir.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 birakma paketi (yeni format) gonderir.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
Yakindaki bir oyuncuya dogrudan item verme paketi gonderir.Sends a packet to give an item directly to a nearby player.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
targetVID | int | Hedef oyuncu Virtual IDTarget player's Virtual ID |
itemPos | int | Envanter slotuInventory slot |
count | int | AdetCount |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
id | int | Secilen item/secenek ID'siSelected item/option ID |
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.
| 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 cekme paketi gonderir.Sends a packet to withdraw an item from the safe box.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Kasa slotuSafe box slot |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
a | int | Depo tipi/parametresiStorage type/parameter |
GLPythonNetworkStream.SendStorageClose(0)
SendShopBuyPacket(slotPos: int) -> None
Dukkandan item satin alma paketi gonderir.Sends a packet to buy an item from a shop.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
slotPos | int | Dukkandaki item slotuItem slot in the shop |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
a | int | Envanter slotuInventory slot |
b | int | AdetCount |
c | int | Bilinmeyen parametreUnknown parameter |
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.
GLPythonNetworkStream.SendShopEndPacket()
SendExchangeStartPacket(vid: int) -> None
Takas (exchange) baslatma paketi gonderir.Sends a packet to start a trade (exchange).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Karsi tarafin Virtual ID'siThe other party's Virtual ID |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
itemPos | int | Envanter slotuInventory slot |
exchangePos | int | Takas penceresindeki slotSlot in the trade window |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
yang | int | Eklenecek yangYang to add |
won | int | Eklenecek WONWON to add |
GLPythonNetworkStream.SendExchangeElkAddPacket(1000, 0)
SendExchangeAcceptPacket() -> None
Takasi onaylama paketi gonderir.Sends a packet to accept the trade.
Parametre almaz.Takes no parameters.
GLPythonNetworkStream.SendExchangeAcceptPacket()
SendRefinePacket(a: int, b: int) -> None
Item gelistirme (refine) paketi gonderir.Sends an item-refine packet.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
a | int | Islem tipiOperation type |
b | int | Hedef slotTarget slot |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
a | int | NPC/dialog parametresiNPC/dialog parameter |
b | int | Secenek/VIDOption/VID |
c | int | Ek parametreExtra parameter |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
a1 | int | Komut koduCommand code |
a2 | int | Alt parametreSub-parameter |
a3 | str | Metin parametresi (bos gecilebilir)Text parameter (can be left empty) |
GLPythonNetworkStream.SendCommandPacket(54, 1, "")
SendGuilfOfferPacket(experience: int) -> None
Lonca'ya tecrube (experience) bagisi paketi gonderir.Sends a guild experience-donation packet.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
experience | int | Bagislanacak tecrube miktariAmount of experience to donate |
GLPythonNetworkStream.SendGuilfOfferPacket(1000)
SendQuestInputStringPacket(text: str) -> None
Quest diyalogunda metin girisi paketi gonderir.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/dialog penceresine cevap paketi gonderir.Sends an answer packet to a script/dialog window.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
answer | int | Secilen cevap/buton index'iSelected answer/button index |
GLPythonNetworkStream.SendScriptAnswerPacket(0)
SendOnClickPacket(vid: int) -> None
Bir NPC/objeye tiklama paketi gonderir.Sends a click packet for an NPC/object.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Tiklanan objenin Virtual ID'siVirtual ID of the clicked object |
GLPythonNetworkStream.SendOnClickPacket(vid)
DirectEnter(channel: int) -> None
Belirtilen kanala direkt giris paketi gonderir.Sends a direct-entry packet for the given channel.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
channel | int | Girilecek kanalChannel to enter |
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.
GLPythonNetworkStream.ClosePhase()
CheckPacket(packet: int) -> None
Belirtilen paketi bekleme/kontrol kuyruguna 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 mesaji gonderir.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
Fisilti (whisper/tell) mesaji gonderir.Sends a whisper/tell message.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
name | str | Alici kullanici adiRecipient username |
text | str | Mesaj metniMessage text |
GLPythonNetworkStream.SendWhisperPacket("oyuncu1", "merhaba")
SendServerCommand(command: str) -> None
Sunucuya ozel bir komut string'i gonderir.Sends a server-specific command string.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
command | str | Komut metniCommand text |
GLPythonNetworkStream.SendServerCommand("komut")
SendEmoticon(id: int) -> None
Emoticon gosterme paketi gonderir.Sends a packet to show an emoticon.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
id | int | Emoticon ID'siEmoticon ID |
GLPythonNetworkStream.SendEmoticon(0)
SendFishingPacket(rotation: int) -> None
Balik tutma (olta atma) paketi gonderir.Sends a fishing (cast the rod) packet.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
rotation | int | Olta atis acisiCast angle |
GLPythonNetworkStream.SendFishingPacket(0)
SendFishingQuitPacket(a: int, b: float) -> None
Balik tutmayi birakma paketi gonderir.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
Balik kizartma/islem paketi gonderir.Sends a fish-frying/processing packet.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vid | int | Hedef Virtual IDTarget Virtual ID |
index | int | IndexIndex |
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) gonderme paketi gonderir.Sends a mail-sending packet.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
title | str | Mail basligiMail title |
content | str | Mail icerigiMail content |
sender | str | Alici adiRecipient 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 gonderir.Sends a packet requesting the mailbox listing.
Parametre almaz.Takes no parameters.
GLPythonNetworkStream.GetAllMailBoxPacket()
DeleteAllMailBoxPacket() -> None
Tum postalari silme paketi gonderir.Sends a packet to delete all mail.
Parametre almaz.Takes no parameters.
GLPythonNetworkStream.DeleteAllMailBoxPacket()
CloseMailBoxPacket() -> None
Posta kutusu penceresini kapatma paketi gonderir.Sends a packet to close the mailbox window.
Parametre almaz.Takes no parameters.
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.
GLPythonNetworkStream.SetBlockOnScriptEventStart()
SetUnBlockOnScriptEventStart() -> None
SetBlockOnScriptEventStart ile uygulanan engeli kaldirir.Removes the block applied by SetBlockOnScriptEventStart.
Parametre almaz.Takes no parameters.
GLPythonNetworkStream.SetUnBlockOnScriptEventStart()
GetQuestIndexByTitle(title: str) -> int
Basligina gore acik quest'in indeksini bulur.Finds the index of the open quest by its title.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
title | str | Quest basligiQuest title |
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.
h = GLPythonNetworkStream.GetStatePacketHash()
IsSelectedEmpire() -> bool
Bir imparatorluk (empire) secilmis mi.Has an empire been selected.
Parametre almaz.Takes no parameters.
GLPythonNetworkStream.IsSelectedEmpire()
GetAccountLevelBySlot(slot: int) -> int
Belirtilen karakter slotundaki karakterin seviyesini dondurur.Returns the level of the character in the given character slot.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
slot | int | Hesap karakter slotuAccount character slot |
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.
GLPythonNetworkStream.isNeedEmpire()
GetFreeCharacterCount() -> int
Hesapta bos (karaktersiz) slot sayisi.Number of free (characterless) slots on the account.
Parametre almaz.Takes no parameters.
count = GLPythonNetworkStream.GetFreeCharacterCount()
GetCharacterCount() -> int
Hesaptaki toplam karakter sayisi.Total number of characters on the account.
Parametre almaz.Takes no parameters.
count = GLPythonNetworkStream.GetCharacterCount()
isFreeCharacterCount(index: int) -> bool
Belirtilen slot bos mu.Is the given slot empty.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Karakter slotuCharacter slot |
GLPythonNetworkStream.isFreeCharacterCount(0)
GetPort(ch: int) -> int
Belirtilen kanalin baglanti portunu dondurur.Returns the connection port for the given channel.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
ch | int | Kanal numarasiChannel number |
port = GLPythonNetworkStream.GetPort(1)
GetPortBySlot(slot: int) -> int
Belirtilen karakter slotunun baglanti portunu dondurur.Returns the connection port for the given character slot.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
slot | int | Karakter slotuCharacter slot |
port = GLPythonNetworkStream.GetPortBySlot(0)
GetMainActorEmpireName() -> int
Ana karakterin imparatorluk ID'sini dondurur.Returns the main character's empire ID.
Parametre almaz.Takes no parameters.
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
slot | int | Karakter slotuCharacter slot |
type_ | int | Veri tipiData type |
value = GLPythonNetworkStream.GetAccountCharacterSlotDatau(0, 2)
GetEmpireIndexByName(name: str) -> int
Imparatorluk adina gore ID'sini bulur.Finds the ID of an empire by its name.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
name | str | Imparatorluk adiEmpire name |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
isHighLevel | bool | Sadece yuksek seviye itemlerHigh-level items only |
isDontFilter | bool | Filtreleme yapmaDon't filter |
isFilter | bool | Filtreleme yapApply filtering |
priceControl | int | Fiyat kontroluPrice control |
range | int | Tarama mesafesiScan range |
blockControl | bool | Engel kontroluObstacle checking |
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.
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.
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.
name = GLPythonNetworkStream.RandomCharacterName()
GetAccountNameBySlot(slot: int) -> str
Belirtilen slottaki karakterin adini dondurur.Returns the name of the character in the given slot.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
slot | int | Karakter slotuCharacter slot |
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.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos | int | Kaynak slotSource slot |
changePos | int | Hedef slotTarget slot |
num | int | AdetCount |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Karakter slotuCharacter slot |
GLPythonNetworkStream.SendSelectCharacterPacket(0)
SendAnswerMakeGuildPacket(name: str) -> None
Lonca olusturma paketi gonderir.Sends a guild-creation packet.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
name | str | Lonca adiGuild name |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Buton index'iButton index |
GLPythonNetworkStream.SendScriptButtonPacket(0)
SendSelectEmpirePacket(empire: int) -> None
Imparatorluk secme paketi gonderir.Sends a packet to select an empire.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
empire | int | Imparatorluk ID'siEmpire ID |
GLPythonNetworkStream.SendSelectEmpirePacket(1)
SendDragonSoulRefinePacket(type_: int, pos: int) -> None
Dragon Soul gelistirme (refine) paketi gonderir.Sends a Dragon Soul refine packet.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
type_ | int | Islem tipiOperation type |
pos | int | Dragon Soul slotuDragon Soul slot |
GLPythonNetworkStream.SendDragonSoulRefinePacket(0, 0)
SendFishPythonPacket(value: int, second: float) -> None
Balikcilik ile ilgili bir paket gonderir.Sends a fishing-related packet.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
value | int | DegerValue |
second | float | Sure (saniye)Duration (seconds) |
GLPythonNetworkStream.SendFishPythonPacket(0, 1.0)
SetSelectPhase(state: bool) -> None
Karakter/imparatorluk secim fazi durumunu ayarlar.Sets the character/empire selection-phase state.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
state | bool | 1: secim fazinda, 0: degil1: in selection phase, 0: not |
GLPythonNetworkStream.SetSelectPhase(1)
SendChangePassword(oldPassword: str, newPassword: str) -> None
Hesap sifresini degistirme paketi gonderir.Sends a packet to change the account password.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
oldPassword | str | Eski sifreOld password |
newPassword | str | Yeni sifreNew password |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
name | str | Karakter adiCharacter name |
job | int | MeslekClass |
shape | int | GorunumAppearance |
con | int | CON istatCON stat |
int_ | int | INT istatINT stat |
str_ | int | STR istatSTR stat |
dex | int | DEX istatDEX stat |
unk | int | Bilinmeyen parametreUnknown parameter |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
type_ | int | Sifre tipiPassword type |
password | str | SifrePassword |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
race | int | Irk filtresiRace filter |
itemCat | int | Item kategorisiItem category |
subCat | int | Alt kategoriSubcategory |
minRefine | int | Min gelistirmeMin refine |
maxRefine | int | Max gelistirmeMax refine |
minLevel | int | Min seviyeMin level |
maxLevel | int | Max seviyeMax level |
minGold | int | Min fiyat (yang)Min price (yang) |
maxGold | int | Max fiyat (yang)Max price (yang) |
minWon | int | Min fiyat (won)Min price (won) |
maxWon | int | Max fiyat (won)Max price (won) |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
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.
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.
GLPythonNetworkStream.SendPremiumPrivateShopReOpen()
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
ch | int | Hedef kanal numarasiTarget channel number |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
serverName | str | Sunucu adiServer name |
ch | int | Hedef kanal numarasiTarget channel number |
GLConnect.AutoCHChanger("ServerAdi", 2)
AutoCharacterChanger(index: int) -> bool
Ayni sunucuda baska bir karakter slotuna gecer.Switches to another character slot on the same server.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Karakter slotuCharacter slot |
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.
ch = GLConnect.GetRandomCHWithList()
GetNextCHInOrder() -> int
Kanal listesinde siradaki kanali dondurur.Returns the next channel in the channel list.
Parametre almaz.Takes no parameters.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
ch | int | Kanal numarasiChannel number |
GLConnect.IsInCHList(2)
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.
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos1 | Position | tuple | Birinci noktaFirst point |
pos2 | Position | tuple | Ikinci noktaSecond point |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos1 | Position | tuple | Birinci noktaFirst point |
pos2 | Position | tuple | Ikinci noktaSecond point |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
from_pos | Position | tuple | Baslangic noktasiStart 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
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
x1 | float | Birinci nokta XFirst point X |
y1 | float | Birinci nokta YFirst point Y |
x2 | float | Ikinci nokta XSecond point X |
y2 | float | Ikinci 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
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos1 | Position | tuple | BaslangicStart |
pos2 | Position | tuple | BitisEnd |
percent | float | 0.0 - 1.0 arasi yuzdePercentage between 0.0 and 1.0 |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos | Position | tuple | Merkez noktaCenter point |
distance | int | YaricapRadius |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos1 | Position | tuple | BaslangicStart |
pos2 | Position | tuple | BitisEnd |
distance | int | Adim araligiStep interval |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
pos1 | Position | tuple | Birinci noktaFirst point |
pos2 | Position | tuple | Ikinci noktaSecond point |
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).
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
type | int | Sohbet tipiChat type |
text | str | Mesaj metniMessage text |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
x | float | X koordinatiX coordinate |
y | float | Y koordinatiY coordinate |
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.
GLHelper.DeleteAllActor()
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
price = GLItem.GetItemPrice(vnum)
GetItemType(vnum: int) -> int
Item'in ana tipini dondurur.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 dondurur.Returns the item's subtype.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
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.
| 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 (kisitlama) bayragina sahip olup olmadigini kontrol eder.Checks whether the item has the given anti-flag (restriction).
| 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 uzerinde kusanilabilir mi.Can the item be worn on the character.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
GLItem.IsCharacterWearable(vnum)
IsAccessory(vnum: int) -> bool
Item bir aksesuar (kolye/kupe/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 tasi vb.) takilabilir mi.Can a socket (gem/filler) be attached to the item.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
vnum | int | Item VNUMItem VNUM |
GLItem.IsSocketable(vnum)
GetSocket(index: int) -> int
Belirtilen indeksteki itemin soket bilgisini dondurur.Returns the socket info of the item at the given index.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
index | int | Envanter/liste indeksiInventory/list index |
socket = GLItem.GetSocket(0)
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.
GLDamage.TargetDamage()
GetDamageStatus() -> bool
Otomatik saldiri (damage bot) ozelligi acik mi.Is the auto-attack (damage bot) feature on.
Parametre almaz.Takes no parameters.
GLDamage.GetDamageStatus()
SetDamageStatus(state: bool) -> None
Otomatik saldiri ozelligini acar/kapatir.Toggles the auto-attack feature.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
state | bool | 1: acik, 0: kapali1: on, 0: off |
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.
GLDamage.GetPickupStatus()
SetPickupStatus(state: bool) -> None
Otomatik toplama ozelligini acar/kapatir.Toggles the auto-pickup feature.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
state | bool | 1: acik, 0: kapali1: on, 0: off |
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.
GLDamage.ResetAttackedMobVIDS()
AddAttackedMobVIDS(vid: int) -> None
Belirtilen mob'u 'saldirildi' 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 'saldirildi' 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
Guvenli-hasar (Safe Damage) modu icin tanimli mob tarama mesafesi.The mob-scan distance defined for Safe Damage mode.
Parametre almaz.Takes no parameters.
dist = GLDamage.GetMobDistance()
SetMobDistance(distance: int) -> None
Guvenli-hasar modu icin mob tarama mesafesini ayarlar.Sets the mob-scan distance for Safe Damage mode.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
distance | int | Yeni mesafeNew distance |
GLDamage.SetMobDistance(300)
IsInSafe(pos: Position | tuple) -> bool
Verilen konum, tanimli 'guvenli bolge' icinde 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
'Guvenli Hasar' (Safe Damage) modu acik mi.Is 'Safe Damage' mode on.
Parametre almaz.Takes no parameters.
GLDamage.GetSafeDamage()
SetSafeDamage(state: bool) -> None
'Guvenli Hasar' modunu acar/kapatir.Toggles 'Safe Damage' mode.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
state | bool | 1: acik, 0: kapali1: on, 0: off |
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.
GLDamage.GetSafeDamageRender()
SetSafeDamageRender(state: bool) -> None
Guvenli-hasar modunda render kontrolunu acar/kapatir.Toggles render checking in Safe Damage mode.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
state | bool | 1: acik, 0: kapali1: on, 0: off |
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.
GLDamage.GetSafeDamageBlockControl()
SetSafeDamageBlockControl(state: bool) -> None
Guvenli-hasar modunda engel kontrolunu acar/kapatir.Toggles obstacle checking in Safe Damage mode.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
state | bool | 1: acik, 0: kapali1: on, 0: off |
GLDamage.SetSafeDamageBlockControl(1)
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.
GLAPI.CheckAPI()
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.
| ParametreParameter | TipType | AçıklamaDescription |
|---|---|---|
authState | bool | 1: kullanici adi/sifre ile kimlik dogrulamali proxy, 0: kimlik dogrulamasiz1: proxy with username/password authentication, 0: no authentication |
ip | str | Proxy sunucu IP adresi (orn. "1.2.3.4")Proxy server IP address (e.g. "1.2.3.4") |
port | int | Proxy sunucu portuProxy server port |
username | str | Proxy kullanici adi (authState=0 ise atlanabilir)Proxy username (can be omitted if authState=0) |
password | str | Proxy sifresi (authState=0 ise atlanabilir)Proxy password (can be omitted if authState=0) |
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.
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.