Quote (WEAPON_X)
the application kept saying i had the wrong security code
Sometimes happens. Ucoz bug, can't do anything with that.
In JASS_vmMain, you can catch GAME_CLIENT_COMMAND and detect, when player says "!meditate". There you must set intercept flag to true and use JASS_RET_IGNORED.
Then, you must catch G_ARGV and G_ARGC. Mod will call them. But, your intercepted G_ARGV and G_ARGC must simulate "meditate" instead of "say !meditate":
Code
C_DLLEXPORT int JASS_syscall( ... ){
if(intercept_flag){
if (cmd == G_ARGC){
JASS_RET_SUPERCEDE (1);// just one parameter;
}
if (cmd == G_ARGV){
if (arg0 == 0){
strcpy_s((char*)arg1, arg2,"meditate");
JASS_RET_SUPERCEDE ( 1 );
}else{//normally this not happens
(char*)arg1=0;
JASS_RET_SUPERCEDE ( 1 );
}
...somehow alike. Then, you should in JASS_vmMain_Post set intercept_flag back to false. This is usual way of simulating cmds.
But, not all the commands are sends to mod, so they couldn't be simulated that way. If I'm right, the "meditate" is one of them. But, you can try to set meditation taunt event directly instead of using cmd (EV_TAUNT in currentState->event and TAUNT_MEDITATE in currentState->eventParm)