jswale / KFE

Karlaaki MH Connector
0 stars 2 forks source link

CdMs are not automatically sent to the server #34

Open dominiquelee opened 7 years ago

dominiquelee commented 7 years ago

CdMs are handled in var MH_Play_ActionsCompetences_Play_aCompetence16b = $.inherit(Page, { // Résultat de CdM

However, it seems like the page name used by MH has changed:

Searching for module MH_Play_ActionsCompetences_Play_aCompetenceResult by URL /mountyhall/MH_Play/Actions/Competences/Play_a_CompetenceResult.php KMHC.user.js:34:9 Unable to find the module MH_Play_ActionsCompetences_Play_aCompetenceResult for URL /mountyhall/MH_Play/Actions/Competences/Play_a_CompetenceResult.php

I don't know much about modules, but maybe we just need to rename the 3 modules we have that start with "MH_Play_Actions_Competences_Play_a_Competence" (or merge the 3 functions).

d-faure commented 7 years ago

Plus précisément, sur une CDM sur Banshee [Récente] (5914632) située en X=88|Y=20|N=-77

requête POST sur l'URL: http://games.mountyhall.com/mountyhall/MH_Play/Actions/Competences/Play_a_CompetenceResult.php

avec les paramêtres suivants:

x | 47
-- | --
y | 8
as_Action | ACTION+!!
ai_IDTarget | ME_5914632
ai_PositionX | 88
ai_PositionY | 20
ai_PositionN | -77
ai_IdComp | 16
ai_IdLogin | [2]
0 | <troll_id>
1 | <troll_id>
as_CodePage | [2]
0 | SRH8VEC1DH
1 | SRH8VEC1DH
ai_IdAction | 116

NB: Le camouflage semble passer par le même URL POST (paramêtres non capturés)

=> Il faut coder un handler qui analyse le contenu de la page et appelle le handler d'origine en fonction du contexte