Oyun içerisinde gm karakteriyle oyuncunun ep miktarını güncelleyebileceksiniz.
açılır ve aratılır cmd.cpp
altına eklenir
aratılır
altına eklenir
açılır cmd_gm.cpp
ve en aşşağıya eklenir
Oyun içerisinde
/ep_g ZacqooLeaven 1881 veya ep_g ZacqooLeaven 1938
olarak komut & isim & değer şeklinde girdiğinizde ep gönderilir.
Metin2 Oyunlarında [C++] Ep Verme Sistemi Nasıl Geliştirilir?
[C++] kullanarak Metin2 özel sunucularında ep verme komutu geliştirmek, oyuncuların deneyim kazanması ve seviye atlaması için oldukça önemlidir. Bu yazıda, Metin2lobby üzerinden detaylı bir şekilde ep komutu geliştirmeyi inceleyeceğiz.
Ep Nedir ve Neden Önemlidir?
Ep, yani experience point, oyuncuların karakterlerini geliştirme sürecinde kullandıkları temel mekaniklerden biridir. Oyuncular, görevleri tamamlayarak, düşmanları yenerek veya belirli eylemleri gerçekleştirmeleriyle ep kazanabilir. Bu sayede seviye atlama ve özellik puanı alma gibi fırsatlar elde ederler.
Ep Verme Komutunun Amacı
Oyun içinde admin veya moderator gibi rollerin kullanabileceği bir komut olarak ep verme sistemi, oyun yönetimi açısından oldukça faydalıdır. Örneğin, bir oyuncuya ödül vermek istendiğinde veya hata durumunda ep eksikliği giderilmek istendiğinde bu komut devreye girer.
Komutun C++ Kaynak Kodu Üzerinde Uygulanışı
Metin2 özel sunucularında game server tarafında C++ ile geliştirilen bu komut, char_manager.cpp veya benzeri dosyalarda tanımlanır. Aşağıda örnek bir ep komutu kodu verilmiştir:
int ep_ver(CHARACTER* ch, const char* arg)
{
int amount = atoi(arg);
ch->PointChange(POINT_EXP, amount);
return 1;
}
Oyun İçinde Kullanımı
Oyuncu, /epver [miktar] şeklinde komutu kullanabilir. Bu komut, server side'da işlenerek belirtilen miktarda ep oyuncuya aktarılır. Martysama gibi geliştiricilerin hazırladığı script dosyalarında bu komut daha da detaylandırılabilir.
Güvenlik ve Yetkilendirme
Herhangi bir komut sisteminde olduğu gibi, ep verme[/COORD] komutu da sadece yetkili kullanıcılar tarafından kullanılmalıdır. Bu nedenle, kod içinde yetki kontrolü yapılmalıdır. Örneğin, if (ch->GetGMLevel() >= GM_ADMIN) gibi bir kontrol eklenebilir.
Sonuç
Ep verme komutu, Metin2 özel sunucularında oyun içi yönetim için önemli bir araçtır. C++ ile geliştirilen bu sistem, source edit yaparak kolayca entegre edilebilir. Metin2lobby olarak, oyun geliştirme süreçlerinde size yardımcı olacak birçok kaynak kod ve script sunuyoruz.
How to Develop [C++] Ep Give Command for Metin2 Private Servers?
Developing an ep give command with [C++] in Metin2 private servers is essential for players to gain experience and level up. In this article, we will examine how to implement the ep command in detail via Metin2lobby.
What Is Ep and Why Is It Important?
Ep, also known as experience point, is one of the fundamental mechanics players use to develop their characters. Players can earn ep by completing quests, defeating enemies, or performing specific actions, allowing them to level up and gain stat points.
Purpose of the Ep Give Command
As an admin or moderator command within the game, the ep giving system serves as a valuable tool for game management. For instance, it can be used to reward a player or fix ep shortages that occur due to errors.
Implementation in C++ Source Code
In Metin2 private servers, this command developed on the game server side using C++ is typically defined in files like char_manager.cpp. Below is an example code snippet for the ep command:
int ep_give(CHARACTER* ch, const char* arg)
{
int amount = atoi(arg);
ch->PointChange(POINT_EXP, amount);
return 1;
}
Usage Within the Game
Players can use the command as /giveep [amount]. This command is processed server-side and transfers the specified amount of ep to the player. Such commands can be further detailed in script files prepared by developers like Martysama.
Security and Authorization
As with any command system, the ep give command should only be accessible to authorized users. Therefore, authorization checks must be included in the code. For example, you could add if (ch->GetGMLevel() >= GM_ADMIN).
Conclusion
The ep give command is an important tool for in-game management in Metin2 private servers. This system, developed with C++, can be easily integrated through source editing. At Metin2lobby, we provide many source codes and scripts to assist you during your game development processes.
açılır ve aratılır cmd.cpp
Kod:
ACMD(do_block_chat_list);
Kod:
ACMD(do_ep_ver);
Kod:
{ "block_chat_list",do_block_chat_list, 0, POS_DEAD, GM_PLAYER },
Kod:
{ "ep_g",do_ep_ver, 0, POS_DEAD, GM_IMPLEMENTOR },
açılır cmd_gm.cpp
ve en aşşağıya eklenir
Kod:
ACMD (do_ep_ver) { char arg1[256], arg2[256]; long cnsvalue; const char* Name; two_arguments(argument, arg1, sizeof(arg1), arg2, sizeof(arg2)); if (!*arg1 || !*arg2) { ch->ChatPacket(CHAT_TYPE_INFO, "/ep_g oyuncu ep"); return; } Name = arg1; cnsvalue = atoi(arg2); LPCHARACTER tch = CHARACTER_MANAGER::instance().FindPC(Name); if(!tch) { ch->ChatPacket(CHAT_TYPE_INFO, "Oyuncu %s bulunamadi.",Name); return; } std::auto_ptr<SQLMsg> msg(DBManager::instance().DirectQuery("UPDATE account.account SET coins = coins + '%ld' WHERE id = '%d'",cnsvalue,tch->GetAID())); tch->ChatPacket(CHAT_TYPE_INFO, "Administrator %s hesabiniza %ld ep yukledi.",ch->GetName(),cnsvalue); ch->ChatPacket(CHAT_TYPE_INFO, "%ld ep yukledin, bu hesaba; %s.",cnsvalue,tch->GetName()); }
Oyun içerisinde
/ep_g ZacqooLeaven 1881 veya ep_g ZacqooLeaven 1938
olarak komut & isim & değer şeklinde girdiğinizde ep gönderilir.
Metin2 Oyunlarında [C++] Ep Verme Sistemi Nasıl Geliştirilir?
[C++] kullanarak Metin2 özel sunucularında ep verme komutu geliştirmek, oyuncuların deneyim kazanması ve seviye atlaması için oldukça önemlidir. Bu yazıda, Metin2lobby üzerinden detaylı bir şekilde ep komutu geliştirmeyi inceleyeceğiz.
Ep Nedir ve Neden Önemlidir?
Ep, yani experience point, oyuncuların karakterlerini geliştirme sürecinde kullandıkları temel mekaniklerden biridir. Oyuncular, görevleri tamamlayarak, düşmanları yenerek veya belirli eylemleri gerçekleştirmeleriyle ep kazanabilir. Bu sayede seviye atlama ve özellik puanı alma gibi fırsatlar elde ederler.
Ep Verme Komutunun Amacı
Oyun içinde admin veya moderator gibi rollerin kullanabileceği bir komut olarak ep verme sistemi, oyun yönetimi açısından oldukça faydalıdır. Örneğin, bir oyuncuya ödül vermek istendiğinde veya hata durumunda ep eksikliği giderilmek istendiğinde bu komut devreye girer.
Komutun C++ Kaynak Kodu Üzerinde Uygulanışı
Metin2 özel sunucularında game server tarafında C++ ile geliştirilen bu komut, char_manager.cpp veya benzeri dosyalarda tanımlanır. Aşağıda örnek bir ep komutu kodu verilmiştir:
int ep_ver(CHARACTER* ch, const char* arg)
{
int amount = atoi(arg);
ch->PointChange(POINT_EXP, amount);
return 1;
}
Oyun İçinde Kullanımı
Oyuncu, /epver [miktar] şeklinde komutu kullanabilir. Bu komut, server side'da işlenerek belirtilen miktarda ep oyuncuya aktarılır. Martysama gibi geliştiricilerin hazırladığı script dosyalarında bu komut daha da detaylandırılabilir.
Güvenlik ve Yetkilendirme
Herhangi bir komut sisteminde olduğu gibi, ep verme[/COORD] komutu da sadece yetkili kullanıcılar tarafından kullanılmalıdır. Bu nedenle, kod içinde yetki kontrolü yapılmalıdır. Örneğin, if (ch->GetGMLevel() >= GM_ADMIN) gibi bir kontrol eklenebilir.
Sonuç
Ep verme komutu, Metin2 özel sunucularında oyun içi yönetim için önemli bir araçtır. C++ ile geliştirilen bu sistem, source edit yaparak kolayca entegre edilebilir. Metin2lobby olarak, oyun geliştirme süreçlerinde size yardımcı olacak birçok kaynak kod ve script sunuyoruz.
How to Develop [C++] Ep Give Command for Metin2 Private Servers?
Developing an ep give command with [C++] in Metin2 private servers is essential for players to gain experience and level up. In this article, we will examine how to implement the ep command in detail via Metin2lobby.
What Is Ep and Why Is It Important?
Ep, also known as experience point, is one of the fundamental mechanics players use to develop their characters. Players can earn ep by completing quests, defeating enemies, or performing specific actions, allowing them to level up and gain stat points.
Purpose of the Ep Give Command
As an admin or moderator command within the game, the ep giving system serves as a valuable tool for game management. For instance, it can be used to reward a player or fix ep shortages that occur due to errors.
Implementation in C++ Source Code
In Metin2 private servers, this command developed on the game server side using C++ is typically defined in files like char_manager.cpp. Below is an example code snippet for the ep command:
int ep_give(CHARACTER* ch, const char* arg)
{
int amount = atoi(arg);
ch->PointChange(POINT_EXP, amount);
return 1;
}
Usage Within the Game
Players can use the command as /giveep [amount]. This command is processed server-side and transfers the specified amount of ep to the player. Such commands can be further detailed in script files prepared by developers like Martysama.
Security and Authorization
As with any command system, the ep give command should only be accessible to authorized users. Therefore, authorization checks must be included in the code. For example, you could add if (ch->GetGMLevel() >= GM_ADMIN).
Conclusion
The ep give command is an important tool for in-game management in Metin2 private servers. This system, developed with C++, can be easily integrated through source editing. At Metin2lobby, we provide many source codes and scripts to assist you during your game development processes.
