fodev.net
FOnline Development => General Discussion => Topic started by: Abaddon Raptus on November 21, 2012, 08:05:16 am
-
How can I register or login character from client code? Any functions? No description for same functions in manual and nobody reply me on russian forum, mabe here someone now answers on this questions? :)
For example: I called in script some bool function to register character: register("192.168.0.1", "Newbie","12345pass"); and wuala new character registered and as result a have "true"(or "false" if register failed)!
I call some bool func to login: login("192.168.0.1", "Newbie", "12345pass"); and client login on character with name Newbie with pass: 12345pass.
-
That's not possible, for now. Both, login and register calls are not exposed to scripts, but attached to hardcoded screens buttons. When mentioned screens will be created in scripts (what is planned for all CLIENT_SCREEN_*), proper functions will be added as well.
-
What about time? "Coming soon" or "When will be done"?) Is that task in progress?
-
Currently i'm waiting for AngelScript to be updated in engine - i need some of AS features/fixes which are present in newer versions. So yes, it's in progress - i'm aiming in merging TLA and 2238 gui (there are some differences in how GUIElement works in both versions) when it comes to basic functionality, and add some (if not all) elements which was present in GUImod (by kuna). Other than that, gui code needs general refreshing - i want to use few AS features which wasn't present in the time when first version was made (for example, using funcdef (http://angelcode.com/angelscript/sdk/docs/manual/doc_datatypes_funcptr.html) for callbacks, instead of interfaces).
...but time... well, it's safer to use "when it's done", no idea how much it may take, and what problems i encounter :)
-
For example: I called in script some bool function to register character: register("192.168.0.1", "Newbie","12345pass"); and wuala new character registered and as result a have "true"(or "false" if register failed)
Hm maybe only chance to create char by just generating char file in save/clients.
-
Not possible, there is encrypted files. In old revisions chars save in not encrypted files, but using old revision - not decision, coz there many bugs and bad optimization.