Registration Code (Part 1): w%kQ6
Registration Code (Part 2): b<#$1[*(cw~
In order to register on this forum, you must use the codes above. Combine them into one code (copy paste).

Calling Hookcore Functions

Topics regarding the online game Nostale.
Post Reply
Silica
Posts: 5
Joined: Sun Jul 16, 2017 3:17 pm

Calling Hookcore Functions

Post by Silica » Sun Jul 16, 2017 3:51 pm

Hope someone is still reading here :p

I'm having trouble using the HookCore functions in a lua script, I can't seem to figure out how to call Interfaces outside of the core.

e.g. I would like to execute the Clear comnand from the IConsole interface.

Clear(); -> error (Why do recv- and Sendpacket work tho)
Console:Clear(); -> nil value
IConsole:Clear; -> non static

after HookCore;GetConsole(); or Hookcore.GetConsole.Clear(); gave no results either I gave up :/
User avatar
atom0s
Site Admin
Posts: 414
Joined: Sun Jan 04, 2015 11:23 pm
Location: 127.0.0.1
Contact:

Re: Calling Hookcore Functions

Post by atom0s » Sun Jul 16, 2017 11:11 pm

You should be obtaining the console via:

Code: Select all

local con = HookCore:GetConsole();
Or to directly call Clear you can do:

Code: Select all

HookCore:GetConsole():Clear();
Derp~
Need a great web host? Check out: AnHonestHost.com


Donations can be made via Paypal:
https://www.paypal.me/atom0s
Silica
Posts: 5
Joined: Sun Jul 16, 2017 3:17 pm

Re: Calling Hookcore Functions

Post by Silica » Mon Jul 17, 2017 2:38 am

Thanks! :)

Pretty sure I've tried using "HookCore:GetConsole();" before, trying to print it for any result wasnt such a good Idea though~
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests