Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CdMs are not automatically sent to the server #34

Open
dominiquelee opened this issue Sep 20, 2017 · 1 comment
Open

CdMs are not automatically sent to the server #34

dominiquelee opened this issue Sep 20, 2017 · 1 comment

Comments

@dominiquelee
Copy link

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

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

Searching for module MH_Play_Actions_Competences_Play_a_CompetenceResult by URL /mountyhall/MH_Play/Actions/Competences/Play_a_CompetenceResult.php KMHC.user.js:34:9
Unable to find the module MH_Play_Actions_Competences_Play_a_CompetenceResult 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).

@dominiquelee dominiquelee changed the title CdM are not automatically sent to the server CdMs are not automatically sent to the server Sep 20, 2017
@d-faure
Copy link
Collaborator

d-faure commented Sep 20, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants