Ok then it's a big line of code lol
/script igf_events:OnEvent(nil, "CHAT_MSG_SYSTEM", "MyFunction()", "2", "3", "4")
Just wow, imagine with 3-4 parameters xD
Nvm, I'm typing something in the game and getting it in MM.
Now, I have to do some tweaks and if you got any ideas like previously, I'm happy to hear it!
How to make an xml file that doing nothing beside "capturing" previous command without "botting". For now I have an ugly this:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<waypoints>
<onLoad>
function MyFunction()
local time, moreToCome, name, msg = EventMonitorCheck("MyFunctionEvent", "4,1")
if time ~= nil then
cprintf(cli.yellow, msg .. "\n");
end
end
function startTest()
unregisterTimer("MyFunctionTimer");
printf("MyFunctionTimer started\n");
EventMonitorStart("MyFunctionEvent", "CHAT_MSG_SYSTEM");
registerTimer("MyFunctionTimer", 1000, MyFunction);
end
startTest();
yrest(30000000); -- This is ugly
</onLoad>
</waypoints>
But once we reach it, it might fuck up the whole thing. Moreover I have something strange I can't tell: When I opened the chatlog to type the command, I have "g" being typed other and other which is embarassing.
If I just let the chat input opened, it's typing "g" then prolly escape because it's closing the chat input.
Any idea?
We're getting closer and closer

Thanks a lot for your really handful help Bill
Oh Lisa just posted, Imma going to quote her
It's on
lisa wrote:
If you want to send info from 1 character to another then you will no doubt have to use whispers as yes the SendSystenChat is client side and the other character won't see it. If you are playing 1 character then sending whispers is pretty easy.
Monitoring whispers is very easy and you can check out the GMdetect for how it monitors whispers and then it monitors system chat aswell.
TBH, that was my first idea, but I don't like the fact it's sent on the server. But it seems you didn't get exactly the procedure.
I'm not trying to send directly to the other char.
It's more like
CharLegit > input "functions" in SystemChat > MM monitoring it > Function = execute this LUA script > updating the database
and
BotChar > every X time MM is launching a function to see what's new on database > get the new thing > execute the appropriate LUA scripts
By this way, you aren't "recorded" on RoM servers, then you're "fine"
lisa wrote:
Having said all that, are you going to be offering this service free to people?
I don't mind helping people but if you intend to take this project that we have created and then just add a few features and then try to charge people to use it then my help stops here.
Nah, I'm going to use your free resources and make people pay a LOT! :O
Seriously, of course Lisa, It will be free, I want to bring things I can bring like you did. I like your community and the time you're spending on developpement. I just want to be usefull since I have some knowledge.
I didn't wanted to talk about this project before because it's a HUGE task and didn't want to make people waiting.
Then don't worry, I'm not here for money. I'm playing RoM since 2-3 weeks waiting another MMO. I really liked the LUA part, I found your website and I start learning LUA.