GMS-like Wedding + Scissors of Karma + Maple Life + Buyback

Properly developed the Marriage feature in the source.
Added TRAVEL_RATE server flag, a modifier for the travel frequency rate.
Corrected stance for players in 3rd party view when entering a map to work similarly as GMS.
Fixed mobs spamming skills incoherently.
Added code support for old GMS-like PQ NPCs, where party leaders just need to click once to start a new PQ.
Implemented podium system for the Hall of Fame PlayerNPCs.
Improved character load-out system, now using way less queries to the DB in the process.
Fixed birthday field for accounts not being read correctly.
Further implemented the incomplete yet-existing Scissors of Karma mechanic.
Fixed Duey not propagating item flags when packaging an item.
Added a custom buyback system.
Refactored the character creation system, now offering support for Maple Life.
Fixed some issues with the PlayerNPC positioning system.
Added server flag allowing AP assignment for novices (beginners under level 11).
Fixed Strategy Time (GPQ) announcement being sent twice to guilds in certain cases.
Tweaked mount EXP system now awarding it accordingly with the amount of tiredness healed.
Removed the randomness aspect of closeness gain when feeding the pet, now acting accordingly with amount of fullness gained.
Fixed an exploit with Arwen script.
Fixed travel-back from Florina forcefully sending players to Lith Harbor in certain situations.
Thoroughly reviewed job skill questlines for Explorers and Aran.
Localhost edit: removed MTS block in certain maps (useful for the buyback system).
Localhost edit: removed party blocks for novices.
Localhost edit: removed AP assigning block for novices.
Localhost edit: removed speed cap.
Localhost edit: removed Maker block popping up when inputting ATK gems on non-weapons.
This commit is contained in:
ronancpl
2018-06-05 02:40:53 -03:00
230 changed files with 11510 additions and 3591 deletions

View File

@@ -0,0 +1,33 @@
// @Author: Resinate
var towns = new Array(800020120, 251010102, 260010201, 107000300, 200010300, 100040105, 100040106, 261030000, 110040000, 250010504, 240040401, 104000400, 222010310, 230040420, 230040420, 230020100, 105090310, 101030404, 250010304, 220050100, 220050000, 220050200, 221040301);
var spawns = new Array(6090002, 5220004, 3220001, 6220000, 8220000, 5220002, 5220002, 8220002, 5220001, 7220002, 8220003, 2220000, 7220001, 8510000, 8520000, 4220001, 8220008, 3220000, 7220000, 5220003, 5220003, 5220003, 6220001);
var x = new Array(560, 560, 645, 90, 208, 456, 474, -300, 200, 400, 0, 400, 0, 527, 138, 0, -626, 800, -300, -300, 0, 0, -4224);
var y = new Array(50, 50, 275, 119, 83, 278, 278, 180, 140, 540, 1125, 455, 33, -437, 138, 520, -604, 1280, 390, 1030, 1030, 1030, 776);
var mapObj;
var mobObj;
function init() {
scheduleNew();
}
function scheduleNew() {
setupTask = em.schedule("start", 0);
}
function cancelSchedule() {
if (setupTask != null)
setupTask.cancel(true);
}
function start() {
var time = (Math.floor(Math.random() * 10) + 10) * (60 * 1000);
for(var i = 0; i < towns.length; i++) {
mapObj = em.getChannelServer().getMapFactory().getMap(towns[i]);
mobObj = Packages.server.life.MapleLifeFactory.getMonster(spawns[i]);
if(mapObj.getMonsterById(spawns[i]) == null) {
mapObj.spawnMonsterOnGroundBelow(mobObj, new Packages.java.awt.Point(x[i],y[i]));
}
}
em.schedule("start", time);
}

View File

@@ -22,7 +22,7 @@ Feature list:
PQs:
* HPQ/KPQ/LPQ/LMPQ/OPQ/EllinPQ/PiratePQ/MagatiaPQ/HorntailPQ/AmoriaPQ/TreasurePQ.
* HPQ/KPQ/LPQ/LMPQ/OPQ/EllinPQ/PiratePQ/MagatiaPQ/HorntailPQ/AmoriaPQ/TreasurePQ/ElnathPQ.
* CWKPQ as Expedition-based event.
* Expeditions: Scarga/Horntail/Showa/Balrog/Zakum/Pinkbean.
* GuildPQ + Guild queue with multi-lobby systems available.
@@ -32,7 +32,7 @@ PQs:
Skills:
* Some skills behaving oddly have been patched, such as Venomous Star/Stab and Mystic Doors.
* Some skills behaving oddly have been patched, such as Steal, Venomous Star/Stab and Mystic Doors.
* Maker skill features properly developed.
* Server is using heuristics to calculate fee costs for the Maker (errors sums up to 8k mesos, reagent errors stacks up comformant with it's level).
* New skill: Chair Mastery (max lv 1) - Players having this passive skill can gain a significant boost of HP/MP recovery when sitting on a field/map chair.
@@ -44,18 +44,23 @@ Quests:
* Quest rewards according to jobs works properly.
* Reward selection and randomed reward works properly.
* Loads of quests have been patched.
* Meso requirement for starting/completing quests now must be met by the player.
* Lots of job questlines (rewarding skills) have been patched/implemented.
* Enchanced rewarding system: checks for stacking opportunities on the inventory before checking for new slots.
* Enhanced rewarding system: checks for stacking opportunities on the inventory before checking for new slots.
* Improved the quest expiration system, one of the tweaks making the clock UI disappear when completing/expiring quests.
* Reviewed Aran questline.
* Reviewed 4th job skill questlines as a whole.
* Complete overhaul on the 3rd job quiz (explorers), with all 40-question pool now made available.
Player Social Network:
* Guild and Alliance system fully functional.
* Implemented Marriage system from the ground-up (excluding character packet encoding parts that were already present, proper credits given throughout the source files).
* Beginners can create and join a "beginner-only" party (characters up to level 10).
* Enhanced synchronization on Player Shops and Hired Merchants. Transactions made are instantly informed to the owner.
* Game minirooms such as match cards and omok now has semi-functional password system.
* Item pickup cooldown on non-owned/non-partyowned items functional.
* Further improved the server's ranking system, to now display properly daily player ranking movement.
* Further improved the server's ranking system, now displaying properly daily player ranking movement.
* Automated support for Player NPCs and Hall of Fame.
Cash & Items:
@@ -66,12 +71,14 @@ Cash & Items:
* New scroll: antibanish. For use only in cases where bosses send a player back to town.
* Inventory system properly checks for item slot free space and ownership.
* Storage with "Arrange Items" feature functional.
* Spikes on shoes.
* Vega's spell.
* Owl of Minerva.
* Pet item ignore.
* New Year's card (New Year effect sometimes d/c's a player).
* Kite.
* Cash Shop Surprise.
* Maple Life.
Monsters, Maps & Reactors:
@@ -80,12 +87,18 @@ Monsters, Maps & Reactors:
* Monsterbook displays drop data info conformant with the underlying DB (needs custom wz). See more on the MobBookUpdate feature.
* Every skill/mastery book is now droppable by mobs.
* Mobs now can drop more than one of the same equipment (number of possible drops defined at droptime, uses the minimum/maximum quantity fields on DB).
* Improved map bounding checks for item drop points, assuring most of the items dropped will be available to pickup inside the accessible map area.
* Limited item count on maps, smartly expiring oldest registered items, preventing potential item flooding.
* Implemented Zombify disease status.
* Added Boss HP Bar for dozens of bosses (needs provided custom wz).
* If multiple bosses are on the same area, client will prioritize Boss HP bar of the target of the player.
* Boats, elevator and other travelling mechanics fully working.
* HP decreasing overtime on maps and mechanics to prevent them (consumables, equips) fully functional.
* Crimson Balrog boat approaching visual effect made functional.
* PQs, Taxis and other event-driven situations warps players at random spawnpoints, GMS-like.
* Some reactors (PQ bonus boxes) now sprays items on the map, instead of dropping everything at once.
* Some reactors (PQ bonus boxes) spraying items on the map, instead of dropping everything at once.
* Reactors pick items up smartly, checking for an option to pick up on many-items-nearby scenario.
* Updated many scripted portals not implementing SFX properly.
* Updated Crimsonwood, World Tour, Nihal Desert and Neo City, enabling quest completion and game progression in these areas.
* Giant Cake (anniversary-themed boss) drops Maple equipments, Maple scrolls, summoning bags and many more interesting items.
@@ -110,16 +123,20 @@ Server potentials:
* Enhanced auto-pot system: pet uses as many potions as necessary to reach the desired threshold.
* Enhanced buff system: smartly checks for the best available buff effects to be active on the player.
* Enhanced AP auto-assigner: exactly matches AP with the needed for the player's current level, surplus assigned to the primary attribute.
* Tweaked pet/mount hunger: calculations for fullness/tiredness takes active time of the subject into account.
* NPC crafters (equips, plates/jewels, etc) now won't take items freely if the requirement conditions are not properly met.
* Pet item pickup now gives preference to player attacks rather than forcing attack disables when automatically picking up.
* Channel capacity bar functional and world servers with max capacity checks.
* Disease status are now visible for other players, even when changing maps.
* Poison damage value are now visible for other players.
* Mastery book announcer displays droppers of needed books of a player, by reading underlying DB.
* Custom jail system (needs provided custom wz).
* Custom buyback system.
* Delete Character (requires ENABLE_PIC activated).
* Autosaver (periodically saves on DB current state of every player in-game).
* Both fixed and randomized versions of HP/MP growth rate available, regarding player job (enable one at ServerConstants). Placeholder for HP/MP washing feature.
* Reallocated mapobjectids utilization throughout the source, preventing issues such as "NPC disappearing mysteriously after some server time" from happening.
* Implemented old GMS statup mechanic for novices level 10 or below. Usage of the edited localhost is mandatory on this.
* Accounts can be created automatically when trying to login on an inexistent account -- credits to shavit.
* Usage of Bcrypt (up-to-date) as the main password hashing algorithm, replacing old SHA's -- credits to shavit.
@@ -157,6 +174,7 @@ Project:
* Fixed/added some missing packets for MoveEnvironment, summons and others.
* Uncovered many Send/Recv opcodes throughout the source.
* Reviewed many Java object aspects that needed concurrency protection.
* Usage of HikariCP to improve the DB connection management.
* Protected many flaws with login management system.
* Heavily reviewed future task management inside the project. Way less trivial schedules are spawned now, relieving task overload on the TimerManager.
* ThreadTracker: embedded auditing tool for run-time deadlock scanning throughout the server source (relies heavily on memory usage, designed only for debugging purposes).
@@ -174,5 +192,17 @@ Localhost:
* Removed caps for MATK, WDEF, MDEF, ACC and AVOID.
* Removed "AP excess" popup and "Admin/MWLB" action block, original credits to kevintjuh93.
* Removed "You've gained a level!" popup, original credits to PrinceReborn.
* Removed "Cannot enter MTS from this map." popup on maps that blocks transitions (such change channel, CS/MTS), rendering the buyback option now available for all maps.
* Removed a check for players wishing to create/join a party being novices under level 10.
* Set a new high cap for SPEED.
* Removed the AP assign block for novices.
* Removed a block that would show up when trying to apply an attack gem on equipments that aren't weapons.
Custom NPCs:
* Agent E: Accessory crafter.
* Donation Box: Instant-sell NPC.
* Ace of Hearts & Coco: C. scroll crafter.
* Spiegelmann: Instant-ore refiner NPC.
---------------------------

View File

@@ -10,18 +10,22 @@ Known issues:
- Passwords on minirooms are not encoded for players entering/logging into the map.
- Some criticals (e.g. from Aran skills) will not show up as crit for other players.
- Deadlocks may start appearing if the server stays online long enough with many players logged in.
- If there are multiple bosses that shows HPBar on the map, if a player hits more than one the HPBar may start flickering on the screen.
---------------------------
---------------------------
Missing features list:
- Miniroom tooltips (such as number of players in store/host awaiting game) not showing up properly.
- Change name/World transfer.
- Some pirate skills doesn't work for 3rd parties.
- Medal quests.
---------------------------
---------------------------
** Others **
- Marriage
- Family system
- MTS
---------------------------

View File

@@ -1,4 +1,5 @@
CUSTOM NPC SCRIPTS:
Spiegelmann -> 2042000
Coco -> 9000017
Agent E -> 9000036
@@ -842,7 +843,7 @@ Corrigido autoassigner para piratas somente preenchendo requisitos de gunslinger
Mobs agora podem dropar mais de um equip de mesmo tipo, sistema utiliza quantidades min/max na tabela de drops.
Nova ferramenta: MapleQuestItemCountFetcher. Localiza no Quest.wz possíveis locais onde um item deveria estar sendo tirado ao completar determinada quest, mas não o é (caso comum onde campo "count" não existe).
28 - 29 Março 2018,
28 - 30 Março 2018,
Adicionado itens de pirata nas lojas de NPC em Singapore.
Adicionado drop data para Flaming Racoon e Big Cloud Fox.
Adicionado ganho de EXP em várias quests da região de Zipangu.
@@ -850,6 +851,17 @@ Adicionado sistema de bonus para expedição de Showa, atingível se nenhum joga
Nova ferramenta: MapleBossHpBarFetcher. Localiza no Mob.wz ids de mobs que possuem um boss hp bar mas não são labelados como "boss".
Incrementado quiz de 3rd job, agora utilizando um pool de 40 perguntas com escolha arbitrária.
31 Março 2018,
Resolvido bug com diseases ao trocar de canais/entrar Cash Shop.
05 Março 2018,
Corrigido Holy Symbol atuando descomunalmente para um jogador.
Corrigido sistema tirando mesos do jogador que tenta expandir guild com capacidade máxima alcançada.
06 - 10 Março 2018,
Implementado todo o sistema de marriages (rings, relacionamentos, spouse chat, etc).
05 - 10 Abril 2018,
Corrigido diseases não sendo removidas corretamente no cliente quando tentando trocar de canal/entrar Cash Shop, permitindo-as ficar no jogador infinitamente.
Corrigido Holy Symbol atuando de forma inesperada no cenário com somente um jogador.
@@ -956,4 +968,46 @@ Adicionado flag que define novo requerimento de mobs para questline do Temple of
Corrigido pets permanentes expirando com o tempo.
Adicionado suporte para Cash Shop Surprise.
Revisado sistema de handlers que gerencia login no server.
Resolvido um problema com flag ultra three snails.
Resolvido um problema com flag ultra three snails.
21 Maio 2018,
Novo flag TRAVEL_RATE, que diminui linearmente valores de tempo de duração em scripts de viagens.
Ajustado refresh rate de alguns reatores de bosses.
Modificado stance para "pulo-direita" a ser mostrada pra outros jogadores quando jogador entra num mapa.
Corrigido mobs utilizando demais skills, quebrando a fluidez de movimento do mesmo.
Implementado sistema que permite PQ NPCs atuarem como no estilo GMS antigo, tentando registrar party na PQ imediatamente.
22 - 23 Maio 2018,
Implementado sistema de podio para PlayerNPCs.
Corrigido problemas de overflow em diversas seções do código-fonte.
Refatorado vários usos de NumberFormat com baixa expectativa de vida sendo criados no código-fonte.
Otimizado busca por dados de quests na DB ao carregar jogadores.
Otimizado método de salvar monster card do jogador na DB e quests.
Corrigido birthday não sendo lido corretamente do DB.
Corrigido mecânica de Scissors of Karma.
Corrigido Duey não importando as flag de itens na entrega.
24 - 25 Maio 2018,
Adicionado sistema custom de buyback.
Refatorado sistema de criação de personagens, passando a dar suporte para o cash item Maple Life.
Corrigido sistema de automatização de pnpcs com algumas avarias.
28 - 31 Maio 2018,
Edição de localhost: removido bloqueio de acesso ao MTS em mapas que bloqueiam transição (change channel, cash shop, town scrolls), permitindo opção de buyback.
Edição de localhost: removido bloqueio de criação/entrada em party para jogadores novatos com level menor que 10.
Edição de localhost: removido cap para Speed.
Corrigido marriage ring sendo destruído indevidamente ao usar certos pergaminhos. Somente pode ser retirado do inventário divorciando.
Edição de localhost: removido bloqueio de uso de AP para jogadores novatos.
Adicionado server flag que permite mecânica de statup para jogadores novatos com level menor que 11. Necessário uso do localhost editado.
01 - 04 Maio 2018,
Corrigido NPC de recrutamento para CafePQ não atuando corretamente com a flag que permite estilo do old-GMS PQ NPCs.
Corrigido mensagem de anúncio de Strategy Time para todas as guilds que estiverem se registrando quando a fila está vazia (mesmo que outra guild já esteja nessa etapa).
Edição de localhost: removido bloqueio de uso de gemas para WATK/MATK em equipamentos que não são weapons.
Retirado possível exploit com Maker skill, não utilizando proteção a acesso concorrente em suas operações.
Modificado sistema de EXP de mounts de forma a favorecer usar Revitalizer quando o mount estiver com 30+ de tiredness, adicionado proteção a acesso concorrente.
Retirado aspecto aleatório de ganho de closeness em pets ao usar o Pet Food, adicionado proteção a acesso concorrente.
Corrigido script da Arwen não retirando itens ao gerar certos itens.
Corrigido script de viagem para Florina levando jogadores a Lith Harbor mesmo quando entrando por outras regiões.
Corrigido Stance, Berserk, Ninja Storm, Concentrate, Mage skills and other 4th job skills questlines.
Novo release: Light.