PtokaX forum

PtokaX => Support => Topic started by: -PT-B2S on 11 September, 2005, 22:01:54

Title: Ptokax sugestion (to PPK)
Post by: -PT-B2S on 11 September, 2005, 22:01:54
Hello. I'm doing an "all in one" multilanguage script, and to make it "multilanguage", i have to do a bit things... one of them, is to translate all the commands. Of course there are some ptokax inbuild commands and i find to way to translate some of them, cause the lua language do it easily. There is one command (temporary OP) that the LUA language don't have a support...

To translate this command, i have to do this

-Example:
 -if cmd == !op then
 -return 1
 -Add the victim nick and profile to a table
 -reg victim as profile OP (my script uses own profiles, and doesn't use a profile called Operator that its necessary to this command)
 -send the victim MyInfo to the hub like it connects again. (to start beeing OP)
 -Add a funcion user disconected that, if nick  disconected is in the table, it will return to the last profile he had.


Its a bit difficult and complicated, so i sugest that PPK do a way to do this command by a simple LUA command.

Is there a way?

Thanks    
Title: Hello again
Post by: -PT-B2S on 13 September, 2005, 11:46:37
Yeah, that will be fine too Mutor.

Props