[RO]
ANTRENAMENT CAL (Horse Training System)
========================================
Define: ENABLE_HORSE_UPGRADE (server: CommonDefines.h, client: constinfo.py)
Vezi preview pentru aspectul ferestrei.
CE FACE SISTEMUL
----------------
Calul crește în nivel prin misiuni, nu prin questurile clasice de la grăjdar.
- Fiecare nivel al calului are 3 misiuni. Când toate 3 sunt finalizate, jucătorul apasă "Crește nivelul".
- Creșterea are o șansă de reușită:
sub nivelul 15 : 90%
15 - 19 : 80%
20 - 24 : 60%
25 - 29 : 40%
- Reușită: calul crește un nivel și pornesc misiunile nivelului următor.
- Eșec: misiunile aceluiași nivel se reiau de la zero (ce a fost livrat se pierde).
- Nu există limită de timp. Progresul se păstrează la logout și la restart de server (quest flags).
- Nivelul maxim este HORSE_MAX_LEVEL (30). La nivel maxim bara este plină și scrie "Nivel maxim atins".
Tipuri de misiuni (funcția GetMissions din horse_upgrade.cpp):
MISSION_DELIVER_ITEM livrează un item (vnum, bucăți)
MISSION_DELIVER_YANG livrează o sumă de yang
MISSION_KILL_METIN distruge pietre Metin (oricare sau un anumit vnum)
MISSION_KILL_MONSTER ucide monștri (oricare sau un anumit vnum)
MISSION_KILL_BOSS ucide șefi (oricare sau un anumit vnum)
Misiunile de test, aceleași la fiecare nivel: 1x Medalia calului (50050), 10 pietre Metin, 1.000.000 Yang.
Iteme:
38032 Pergament nivel cal - finalizează pe loc o misiune (butonul >> de pe rândul misiunii)
38033 Elixir nivel cal - click pe slotul de lângă "Crește nivelul": următoarea creștere reușește 100%
Bonusuri permanente (tabelul s_aRewards), active imediat ce nivelul este atins, și când ești pe jos:
nivel 15 : +25 valoare atac
nivel 20 : +5% tare împotriva monștrilor
nivel 25 : +5% tare împotriva pietrelor Metin
nivel 30 : +25 valoare atac, +5% monștri, +5% Metin, +10% șefi
(total la 30: 50 valoare atac, 10% monștri, 10% Metin, 10% șefi)
Fereastra:
- tab Misiuni: cele 3 misiuni cu progres, buton Livrează, buton de skip, șansa, slotul de elixir, Crește nivelul
- tab Recompense: cele 4 praguri cu starea lor (Obținut / Următoarea / Blocat)
- imaginea din hexagon: stage_1.png sub nivelul 20, stage_2.png de la nivelul 20
CUM FUNCȚIONEAZĂ TEHNIC
-----------------------
- Fără pachete noi și fără modificări în executabilul clientului. Clientul trimite comenzi de chat,
serverul răspunde cu CHAT_TYPE_COMMAND:
client: /horse_upgrade open | deliver <misiune> | skip <misiune> | up <0|1 cu elixir>
server: HorseUpgradeInfo, HorseUpgradeMission, HorseUpgradeReward, HorseUpgradeOpen, HorseUpgradeResult
- Fără tabele noi. Progresul stă în quest flags: horse_upgrade.level, horse_upgrade.m0, m1, m2.
- Serverul nu are texte proprii (locale_string.txt nu se modifică). Mesajele sunt coduri, textele sunt în
locale_game.txt din client.
CERINȚE ȘI OBSERVAȚII
---------------------
- Sursa pe care a fost scris: martysama 5.8 p21. Yangul este long long (tipul TGold). Pe o sursă cu yang int,
în funcția Deliver înlocuiește -static_cast<TGold>(mission.count) cu -static_cast<int>(mission.count).
- Bonusurile de Metin și șefi folosesc APPLY_ATTBONUS_METIN / APPLY_ATTBONUS_BOSS și sunt sub
#ifdef ENABLE_ATTBONUS_METIN_BOSS. Fără acest sistem ele nu se aplică: pune alte bonusuri în ApplyBonus.
- Pentru "Crește nivelul" jucătorul trebuie să fie coborât de pe cal (modelul calului se schimbă cu gradul).
- Dacă nivelul calului este schimbat altfel (comandă de GM, quest), misiunile repornesc de la zero.
- Clientul trebuie să poată încărca imagini PNG. ui.py trebuie să aibă ImageBox.SetAlpha, ExpandedImageBox.SetScale,
SetRenderingRect și SetPercentage; dacă SetAlpha lipsește, șterge linia cu SetAlpha din uihorseupgrade.py.
- Calul trebuie să existe (nivel >= 1). Pe serverul de origine jucătorii primesc calul de nivel 11 la început.
INFORMAȚII IMPORTANTE
---------------------
- Arhiva conține tot ce este necesar, de la instalare până la explicații detaliate.
- Nu ofer suport pentru instalare. Instalarea se face pe cont propriu și poate să difere de la o sursă la alta.
- Dacă găsești buguri, mă poți contacta pe Discord: mihaimiti30. Acestea se rezolvă fără niciun cost suplimentar.
[EN]
HORSE TRAINING SYSTEM
=====================
Define: ENABLE_HORSE_UPGRADE (server: CommonDefines.h, client: constinfo.py)
See preview.png for the look of the window.
IMPORTANT INFORMATION
---------------------
- The archive contains everything you need, from installation to detailed explanations.
- I do not offer installation support. The installation is done on your own and may differ from one source to another.
- If you find any bugs, contact me on Discord: mihaimiti30. They are fixed at no additional cost.
WHAT THE SYSTEM DOES
--------------------
The horse grows in level through missions instead of the classic stable boy quests.
- Every horse level has 3 missions. When all 3 are finished the player presses "Level up".
- The level up has a success chance:
below level 15 : 90%
15 - 19 : 80%
20 - 24 : 60%
25 - 29 : 40%
- Success: the horse grows one level and the missions of the next level start.
- Failure: the missions of the same level start again from zero (what was delivered is lost).
- There is no time limit. The progress is kept over logout and server restart (quest flags).
- The max level is HORSE_MAX_LEVEL (30). At the max level the bar is full and the window says "Max level reached".
Mission types (function GetMissions in horse_upgrade.cpp):
MISSION_DELIVER_ITEM deliver an item (vnum, count)
MISSION_DELIVER_YANG deliver an amount of yang
MISSION_KILL_METIN destroy Metin stones (any, or one vnum)
MISSION_KILL_MONSTER kill monsters (any, or one vnum)
MISSION_KILL_BOSS kill bosses (any, or one vnum)
Test missions, the same for every level: 1x Horse Medal (50050), 10 Metin stones, 1.000.000 Yang.
Items:
38032 Horse Level Scroll - finishes one mission at once (the >> button on the mission row)
38033 Horse Level Elixir - click on the slot next to "Level up": the next level up succeeds 100%
Permanent bonuses (table s_aRewards), active as soon as the level is reached, also on foot:
level 15 : +25 attack value
level 20 : +5% strong against monsters
level 25 : +5% strong against Metin stones
level 30 : +25 attack value, +5% monsters, +5% Metin stones, +10% bosses
(total at 30: 50 attack value, 10% monsters, 10% Metin stones, 10% bosses)
The window:
- Missions tab: the 3 missions with their progress, Deliver button, skip button, chance, elixir slot, Level up
- Rewards tab: the 4 steps with their state (Obtained / Next / Locked)
- picture in the hexagon: stage_1.png below level 20, stage_2.png from level 20
HOW IT WORKS
------------
- No new packets and no change in the client binary. The client sends chat commands, the server answers
with CHAT_TYPE_COMMAND:
client: /horse_upgrade open | deliver <mission> | skip <mission> | up <0|1 with the elixir>
server: HorseUpgradeInfo, HorseUpgradeMission, HorseUpgradeReward, HorseUpgradeOpen, HorseUpgradeResult
- No new tables. The progress is kept in quest flags: horse_upgrade.level, horse_upgrade.m0, m1, m2.
- The server has no text of its own (locale_string.txt is not changed). The messages are codes, the texts are
in the client's locale_game.txt.
REQUIREMENTS AND NOTES
----------------------
- Written on the martysama 5.8 p21. Yang is long long (type TGold). On a source with int yang, in the
function Deliver replace -static_cast<TGold>(mission.count) with -static_cast<int>(mission.count).
- The Metin stone and boss bonuses use APPLY_ATTBONUS_METIN / APPLY_ATTBONUS_BOSS and are inside
#ifdef ENABLE_ATTBONUS_METIN_BOSS. Without that system they are not applied: put other bonuses in ApplyBonus.
- For "Level up" the player has to be off the horse (the horse model changes with the grade).
- If the horse level is changed in another way (GM command, quest), the missions start again from zero.
- The client must be able to load PNG images. ui.py needs ImageBox.SetAlpha, ExpandedImageBox.SetScale,
SetRenderingRect and SetPercentage; if SetAlpha is missing, delete the SetAlpha line in uihorseupgrade.py.
- The horse must exist (level >= 1). On the original server the players get a level 11 horse at the start.
*Poze / Video:
![[VÂND/SELL] ANTRENAMENT CAL (Horse Training System) - Mesaj 1 - Imagine 1 [VÂND/SELL] ANTRENAMENT CAL (Horse Training System) - Mesaj 1 - Imagine 1](https://i.postimg.cc/Fz980RvX/horse-upgrade-preview-v2.jpg)
*Preț (obligatoriu): 50 Euro
*Modalități plată (obligatoriu): Transfer bancar / revolut.
*Timp de livrare (obligatoriu): Instant dupa plata
*Alte condiții:
*Date contact: mihaimiti30 - discord
*Declar că voi livra produsul în termenii menționați mai sus și înțeleg că, în cazul nerespectării acestora, pot fi supus unei reclamații: Da


