function PetSystem.IsExpBlocked()
return (pc.getqf(PetSystem.ExpFlag) == 1)
end
function PetSystem.pokaz_gui(arg , petIndex) -- kocham Ole
local petIndex = pc.getqf("petindex")
local skill_points, liv, ex, ev, ev1,ev2, ev3 = PetSystem.ReadStatus(petIndex)
local level1 = "Lv"..liv.." "..pc.get_name().." "
if PetSystem.IsExpBlocked() then
blokada = 1
else
blokada = 0
end
if arg == 1 then
if petIndex == 1 then
pet.summon(ev,level1)
cmdchat("PetPokaz "..ev1.." "..liv.." "..ex.." "..PetSystem[petIndex].ExpTable[liv].." "..blokada.." "..skill_points.."")
chat ( "Pet'......Cagrildi." )
elseif petIndex == 2 then
pet.summon(ev2,level1)
cmdchat("PetPokaz "..ev3.." "..liv.." "..ex.." "..PetSystem[petIndex].ExpTable[liv].." "..blokada.." "..skill_points.."")
chat ( "Pet'......Cagrildi." )
end
end
if arg == 2 then
if petIndex == 1 then
cmdchat("PetPokaz "..ev1.." "..liv.." "..ex.." "..PetSystem[petIndex].ExpTable[liv].." "..blokada.." "..skill_points.."")
elseif petIndex == 2 then
cmdchat("PetPokaz "..ev3.." "..liv.." "..ex.." "..PetSystem[petIndex].ExpTable[liv].." "..blokada.." "..skill_points.."")
end
end
if arg == 5 then
pet.unsummon(ev,level1)
pet.unsummon(ev2,level1)
cmdchat("PetZamnkij")
chat("Pet'gonderildi.")
PetSystem.RemoveBonus(petIndex)
PetSystem.SetInactive()
pc.setqf("petindex",0)
end
if arg == 6 then
PetSystem.RemoveBonus(petIndex)
PetSystem.SetInactive()
cmdchat("PetZamnkij")
pc.setqf("petindex",0)
end
Metin2 oyununda pet sistemleri, oyuncuların karakterlerine destek sağlayabilmesi açısından oldukça önemlidir. Petler, hem savaş sırasında hem de günlük görevlerde yardımcı rol üstlenir. Ancak bazı durumlarda, petlerin belirli fonksiyonları kilitli olabilir. Bu durum özellikle quest sistemlerinde ya da belirli oyun içi etkinliklerde fark edilebilir. Pet expinin kilitli olup olmadığını gösteren mekanizmalar, genellikle sunucu tarafında tanımlanmış özel scriptler aracılığıyla kontrol edilir.
Metin2 quest sistemleri, Lua dili üzerinden çalışır. Quest yazımı sırasında, petin deneyim kazanıp kazanmadığı gibi detaylar, geliştiriciler tarafından doğrudan script içine kodlanmalıdır. Eğer bir quest, petin exp almasını engelliyorsa, bu genellikle questin 'begin' veya 'end' aşamalarında yer alan özel kontrollerle sağlanır. Bu tür kontroller, petin oynatıcıya ait mi yoksa bağımsız bir varlık mı olduğunu belirlemek için kullanılır.
Pet expinin kilitli olup olmadığını kontrol etmek için geliştiriciler, belirli flag ve state değerlerinden yararlanabilir. Örneğin, quest scriptinde bir flag değeri tanımlanarak, petin exp alıp almayacağı belirlenebilir. Quest scripti içinde, petin exp alması istenmiyorsa, bu durum doğrudan engellenir. Aynı zamanda, timer ve trigger yapıları kullanılarak, belirli zamanlarda bu özelliklerin aktif ya da pasif olması sağlanabilir.
Metin2 lua dosyalarında pet exp kontrolü yaparken, geliştiriciler genellikle 'pet_info', 'pet_level', 'exp_gain' gibi fonksiyonları kullanırlar. Bu fonksiyonlar sayesinde petin mevcut seviyesi ve deneyim durumu izlenebilir. Eğer petin exp alması engellenmişse, bu durum genellikle sunucu loglarında da gözlemlenebilir. Hata ayıklama (debug) işlemleri sırasında, bu loglar büyük önem taşır.
Pet expinin kilitli olup olmadığını belirleyen sistemlerin yanı sıra, bazı özel questlerde petin tamamen devre dışı bırakılması da söz konusu olabilir. Bu durumda, petin hem exp alması hem de görevleri yerine getirmesi engellenir. Bu tür özel durumlar, genellikle sunucuya özel geliştirilen custom questlerde görülür. Metin2dev ve benzeri platformlarda paylaşılan quest örneklerinde bu tür kontroller sıkça karşılaşılan senaryolardır.
Geliştiricilerin dikkat etmesi gereken önemli noktalardan biri, quest sistemlerinde yapılan değişikliklerin doğrudan oyun dengesini etkilemesidir. Pet expinin kilidinin açık ya da kapalı olması, oyuncuların ilerleme hızını doğrudan etkileyebilir. Bu nedenle, pet exp kontrol mekanizmalarının dikkatli tasarlanması gerekir. Ayrıca, daily questlerde bu tür kontrollerin doğru yerleştirilmesi, oyunun tekrarlayan görevlerde tutarlılığını artırır.
Sonuç olarak, Metin2'de pet expinin kilitli olup olmadığı, quest scriptleri üzerinden doğrudan kontrol edilebilir. Geliştiricilerin bu konuda dikkatli olması, hem oyun dengesinin korunması hem de kullanıcı deneyiminin artırılması açısından büyük önem taşır. Lua tabanlı quest sistemleri, bu tür kontrolleri gerçekleştirmek için güçlü bir araçtır.
In the game Metin2, pet systems are extremely important as they provide support to players' characters. Pets serve as helpful companions both during battles and daily quests. However, in some cases, certain functions of pets may be locked. This situation can especially be noticed in quest systems or specific in-game activities. The mechanisms that indicate whether pet exp is locked are usually controlled through custom scripts defined on the server side.
Metin2 quest systems operate via the Lua language. During quest creation, details such as whether a pet gains experience must be coded directly into the script. If a quest prevents a pet from gaining experience, this is typically done through special controls located within the 'begin' or 'end' phases of the quest. Such controls determine whether the pet belongs to the player or acts as an independent entity.
To check whether pet exp is locked, developers can utilize specific flag and state values. For instance, by defining a flag value in the quest script, whether the pet gains experience can be determined. In the script, if the pet is not supposed to gain experience, this action is directly blocked. Additionally, with timer and trigger structures, these features can be activated or deactivated at specific times.
When controlling pet exp in Metin2 lua files, developers often use functions like 'pet_info', 'pet_level', 'exp_gain'. Through these functions, the pet's current level and experience status can be tracked. If the pet's ability to gain exp is disabled, this is often observable in server logs. These logs play a critical role during debugging processes.
Besides systems that determine whether pet exp is locked, there are also special quests where the pet might be completely disabled. In such cases, both the pet's exp gain and its ability to complete quests are prevented. These scenarios are commonly seen in custom quests developed specifically for servers. In platforms like Metin2dev, such controls are frequently encountered examples.
An important point for developers to consider is that changes made in quest systems can directly affect the game balance. Whether the pet exp lock is open or closed can directly influence the player's progression speed. Therefore, pet exp control mechanisms must be designed carefully. Moreover, placing such controls correctly in daily quests enhances consistency in repetitive tasks within the game.
In conclusion, in Metin2, whether the pet exp is locked can be directly controlled via quest scripts. Developers must be cautious in this regard, as it is crucial for maintaining game balance and enhancing user experience. Lua-based quest systems are powerful tools for implementing such controls.
return (pc.getqf(PetSystem.ExpFlag) == 1)
end
function PetSystem.pokaz_gui(arg , petIndex) -- kocham Ole
local petIndex = pc.getqf("petindex")
local skill_points, liv, ex, ev, ev1,ev2, ev3 = PetSystem.ReadStatus(petIndex)
local level1 = "Lv"..liv.." "..pc.get_name().." "
if PetSystem.IsExpBlocked() then
blokada = 1
else
blokada = 0
end
if arg == 1 then
if petIndex == 1 then
pet.summon(ev,level1)
cmdchat("PetPokaz "..ev1.." "..liv.." "..ex.." "..PetSystem[petIndex].ExpTable[liv].." "..blokada.." "..skill_points.."")
chat ( "Pet'......Cagrildi." )
elseif petIndex == 2 then
pet.summon(ev2,level1)
cmdchat("PetPokaz "..ev3.." "..liv.." "..ex.." "..PetSystem[petIndex].ExpTable[liv].." "..blokada.." "..skill_points.."")
chat ( "Pet'......Cagrildi." )
end
end
if arg == 2 then
if petIndex == 1 then
cmdchat("PetPokaz "..ev1.." "..liv.." "..ex.." "..PetSystem[petIndex].ExpTable[liv].." "..blokada.." "..skill_points.."")
elseif petIndex == 2 then
cmdchat("PetPokaz "..ev3.." "..liv.." "..ex.." "..PetSystem[petIndex].ExpTable[liv].." "..blokada.." "..skill_points.."")
end
end
if arg == 5 then
pet.unsummon(ev,level1)
pet.unsummon(ev2,level1)
cmdchat("PetZamnkij")
chat("Pet'gonderildi.")
PetSystem.RemoveBonus(petIndex)
PetSystem.SetInactive()
pc.setqf("petindex",0)
end
if arg == 6 then
PetSystem.RemoveBonus(petIndex)
PetSystem.SetInactive()
cmdchat("PetZamnkij")
pc.setqf("petindex",0)
end
Metin2 oyununda pet sistemleri, oyuncuların karakterlerine destek sağlayabilmesi açısından oldukça önemlidir. Petler, hem savaş sırasında hem de günlük görevlerde yardımcı rol üstlenir. Ancak bazı durumlarda, petlerin belirli fonksiyonları kilitli olabilir. Bu durum özellikle quest sistemlerinde ya da belirli oyun içi etkinliklerde fark edilebilir. Pet expinin kilitli olup olmadığını gösteren mekanizmalar, genellikle sunucu tarafında tanımlanmış özel scriptler aracılığıyla kontrol edilir.
Metin2 quest sistemleri, Lua dili üzerinden çalışır. Quest yazımı sırasında, petin deneyim kazanıp kazanmadığı gibi detaylar, geliştiriciler tarafından doğrudan script içine kodlanmalıdır. Eğer bir quest, petin exp almasını engelliyorsa, bu genellikle questin 'begin' veya 'end' aşamalarında yer alan özel kontrollerle sağlanır. Bu tür kontroller, petin oynatıcıya ait mi yoksa bağımsız bir varlık mı olduğunu belirlemek için kullanılır.
Pet expinin kilitli olup olmadığını kontrol etmek için geliştiriciler, belirli flag ve state değerlerinden yararlanabilir. Örneğin, quest scriptinde bir flag değeri tanımlanarak, petin exp alıp almayacağı belirlenebilir. Quest scripti içinde, petin exp alması istenmiyorsa, bu durum doğrudan engellenir. Aynı zamanda, timer ve trigger yapıları kullanılarak, belirli zamanlarda bu özelliklerin aktif ya da pasif olması sağlanabilir.
Metin2 lua dosyalarında pet exp kontrolü yaparken, geliştiriciler genellikle 'pet_info', 'pet_level', 'exp_gain' gibi fonksiyonları kullanırlar. Bu fonksiyonlar sayesinde petin mevcut seviyesi ve deneyim durumu izlenebilir. Eğer petin exp alması engellenmişse, bu durum genellikle sunucu loglarında da gözlemlenebilir. Hata ayıklama (debug) işlemleri sırasında, bu loglar büyük önem taşır.
Pet expinin kilitli olup olmadığını belirleyen sistemlerin yanı sıra, bazı özel questlerde petin tamamen devre dışı bırakılması da söz konusu olabilir. Bu durumda, petin hem exp alması hem de görevleri yerine getirmesi engellenir. Bu tür özel durumlar, genellikle sunucuya özel geliştirilen custom questlerde görülür. Metin2dev ve benzeri platformlarda paylaşılan quest örneklerinde bu tür kontroller sıkça karşılaşılan senaryolardır.
Geliştiricilerin dikkat etmesi gereken önemli noktalardan biri, quest sistemlerinde yapılan değişikliklerin doğrudan oyun dengesini etkilemesidir. Pet expinin kilidinin açık ya da kapalı olması, oyuncuların ilerleme hızını doğrudan etkileyebilir. Bu nedenle, pet exp kontrol mekanizmalarının dikkatli tasarlanması gerekir. Ayrıca, daily questlerde bu tür kontrollerin doğru yerleştirilmesi, oyunun tekrarlayan görevlerde tutarlılığını artırır.
Sonuç olarak, Metin2'de pet expinin kilitli olup olmadığı, quest scriptleri üzerinden doğrudan kontrol edilebilir. Geliştiricilerin bu konuda dikkatli olması, hem oyun dengesinin korunması hem de kullanıcı deneyiminin artırılması açısından büyük önem taşır. Lua tabanlı quest sistemleri, bu tür kontrolleri gerçekleştirmek için güçlü bir araçtır.
In the game Metin2, pet systems are extremely important as they provide support to players' characters. Pets serve as helpful companions both during battles and daily quests. However, in some cases, certain functions of pets may be locked. This situation can especially be noticed in quest systems or specific in-game activities. The mechanisms that indicate whether pet exp is locked are usually controlled through custom scripts defined on the server side.
Metin2 quest systems operate via the Lua language. During quest creation, details such as whether a pet gains experience must be coded directly into the script. If a quest prevents a pet from gaining experience, this is typically done through special controls located within the 'begin' or 'end' phases of the quest. Such controls determine whether the pet belongs to the player or acts as an independent entity.
To check whether pet exp is locked, developers can utilize specific flag and state values. For instance, by defining a flag value in the quest script, whether the pet gains experience can be determined. In the script, if the pet is not supposed to gain experience, this action is directly blocked. Additionally, with timer and trigger structures, these features can be activated or deactivated at specific times.
When controlling pet exp in Metin2 lua files, developers often use functions like 'pet_info', 'pet_level', 'exp_gain'. Through these functions, the pet's current level and experience status can be tracked. If the pet's ability to gain exp is disabled, this is often observable in server logs. These logs play a critical role during debugging processes.
Besides systems that determine whether pet exp is locked, there are also special quests where the pet might be completely disabled. In such cases, both the pet's exp gain and its ability to complete quests are prevented. These scenarios are commonly seen in custom quests developed specifically for servers. In platforms like Metin2dev, such controls are frequently encountered examples.
An important point for developers to consider is that changes made in quest systems can directly affect the game balance. Whether the pet exp lock is open or closed can directly influence the player's progression speed. Therefore, pet exp control mechanisms must be designed carefully. Moreover, placing such controls correctly in daily quests enhances consistency in repetitive tasks within the game.
In conclusion, in Metin2, whether the pet exp is locked can be directly controlled via quest scripts. Developers must be cautious in this regard, as it is crucial for maintaining game balance and enhancing user experience. Lua-based quest systems are powerful tools for implementing such controls.
