Revolution Emulator [C#, R63B, Encryption Cracked, DAO, Fluent NHibernate, Lua Plugin, Mono]

Status
Not open for further replies.

iHarrison

Member
Mar 11, 2012
321
131
Looking into how we can expose an API (for the emulator) so people can develop their own code without having to touch the actual source of it (the emulator), through callback functions and whatnot!

I'd love an LUA plugin system, it's real easy to learn ^^.
 

Adil

DevBest CEO
May 28, 2011
1,278
716
Make it event-driven and dynamically load .dll files.
What, so like:
PHP:
public void OnPluginLoad(object sender, PluginEventArgs e)
{
    //Boilerplate
    e = new PluginEventArgs();
    e.LoadCompleted();
    e.Initiate();
}
 

Quackster

a devbest user says what
Aug 22, 2010
1,765
1,245
What, so like:
PHP:
public void OnPluginLoad(object sender, PluginEventArgs e)
{
    //Boilerplate
    e = new PluginEventArgs();
    e.LoadCompleted();
    e.Initiate();
}

No..

I suggest you have a look at Bukkit (even though it's Java).
 

Quackster

a devbest user says what
Aug 22, 2010
1,765
1,245
Do you mean events such as PlayerActionCompletedEvent or something? (that would handle an event every time a player completed a specified action, like a quest).
Yes, and the main method when called when the plugin is enabled will register those events.
 

Zak

Posting Freak
Mar 12, 2011
848
453
Cheers for the help Alexxxxxx!

Well, progress will be faster as i won't be working much at my temp job, since University is coming up!

I started a bit on Catalog, just need to do interactions for furni types/states like Pets, Groups etc.
 

Adil

DevBest CEO
May 28, 2011
1,278
716
Would you guys prefer a "built in" API which would be implemented in C#, or do you prefer a scripting API which would be 'safer' but more abstracted, which would allow you to write scripts in language x?
 

Leader

github.com/habbo-hotel
Aug 24, 2012
1,032
307
Would you guys prefer a "built in" API which would be implemented in C#, or do you prefer a scripting API which would be 'safer' but more abstracted, which would allow you to write scripts in language x?
I like the idea of a built in :)
 

Zak

Posting Freak
Mar 12, 2011
848
453
Built in. C# is pretty easy.

Any programming language can be easy if your just coding basics within it, if you see C#'s true power then you'll know how epic it is and is not as easy as it seems.
 
Status
Not open for further replies.

Users who are viewing this thread

Top