Moving To Discord:

Hello everyone, due to bugs with the forum software that I do not have time to care about, I am going to be shutting down these forums and moving my discussions to Discord instead. I will eventually keep releases here on the site but the forums will be removed sooner or later. I encourage people to join my personal Discord if you have questions, if you are looking for any of my projects, etc.

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.
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
Site Admin
Posts: 449
Joined: Sun Jan 04, 2015 11:23 pm

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

Need a great web host? Check out:

Donations can be made via Paypal:
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~

Who is online

Users browsing this forum: No registered users and 2 guests