Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

MangoRP - Generic Roleplay Emulator

Status
Not open for further replies.
Experienced Elementalist
Joined
Mar 18, 2007
Messages
211
Reaction score
223
Hiya,

Finally got a break off from life. I'm not on my development laptop however hopefully I'll get it released within this week. Features are complete but I'm testing and simplifying code where I can.

I took advice based on your user import and haven't changed versions. However I've changed packets accordingly, so your not missing out on anything. You can also thank @Leon for helping with packet orientated stuff and helping with a few other things.

I'm not sure what to put here in terms of screenshots? So here's me doing random operations throughout the game.

Francis Joseph - MangoRP - Generic Roleplay Emulator - RaGEZONE Forums

Francis Joseph - MangoRP - Generic Roleplay Emulator - RaGEZONE Forums

Francis Joseph - MangoRP - Generic Roleplay Emulator - RaGEZONE Forums

Francis Joseph - MangoRP - Generic Roleplay Emulator - RaGEZONE Forums

I'll update this thread tonight with a list of features integrated and the command list.
As for the code, its pretty wonderful. So if you have any requests for snippets then just ask.

Are there any other features that anyone would like me to add? so long as they're not large features then they can be programmed.


p.s SWF editing will not occur until I've finished my testing period.



Roleplay configuration and settings can be altered in the RoleplayStaticSettings.cs.
I know its not exactly noob friendly but the reason I'm making this emulator is to try get more people involved with coding.

Other then that, this emulator noob friendly.
Timers can be added and I've left guidelines behind for the user to follow.
I shall also be writing a small documentation to make it easier to find where things are.

Francis Joseph - MangoRP - Generic Roleplay Emulator - RaGEZONE Forums

Francis Joseph - MangoRP - Generic Roleplay Emulator - RaGEZONE Forums
 
Initiate Mage
Joined
May 3, 2015
Messages
1
Reaction score
0
Hey Francis
The development seems to be going good.
Just wanted a quick answer if you could As we all know Mango emulator
had missing features like cfh system and mod tools etc...
Do you think you will be adding those? or will you be making it open source
where others can code that?
 
Experienced Elementalist
Joined
Mar 18, 2007
Messages
211
Reaction score
223
100% Open source.

In response to your cfh system and mod tools questions,

Francis Joseph - MangoRP - Generic Roleplay Emulator - RaGEZONE Forums


I've set all permissions in place for what ranks can access what.
So all you have to do is mark yourself with a rank in the `users` table.
 
Newbie Spellweaver
Joined
Sep 8, 2009
Messages
8
Reaction score
0
Will the one way gate system be implemented? In a way that only working users can go through a certain gate, alive users through one, people that aren't jailed/dead through another etc?
 
Experienced Elementalist
Joined
Mar 18, 2007
Messages
211
Reaction score
223
Will the one way gate system be implemented? In a way that only working users can go through a certain gate, alive users through one, people that aren't jailed/dead through another etc?

Already implemented.

Just a quick update, the 'Roleplayer Lifestyles' system has been removed.
It didn't really wow me and seemed pointless to have included so its now gone.
This was intended so that users could retrieve some sort of powerup upon signing up.



Added an automatic time conversion static method.
It's based on multiplication, percentage and division.

Returns a string based on the ticks given and interval given.
This makes a chance since most roleplaying servers simply go by the tick and don't have the actual time in the format of (M:S).

Right now, I'm doing the default spawn points and then arrows!


Francis Joseph - MangoRP - Generic Roleplay Emulator - RaGEZONE Forums

Francis Joseph - MangoRP - Generic Roleplay Emulator - RaGEZONE Forums




Sorry got distracted. However spawn points are now finished for hospital, jail, public locations, etc.

Example hospital scenario.
Once you are locked onto a bed, you can not move until your time is up.
If a bed currently has a user on, then it will search for another spot free.
If EVERY bed has a user on, then it will begin overlapping users so for obvious reasons.

Francis Joseph - MangoRP - Generic Roleplay Emulator - RaGEZONE Forums




Time to relax and stop programming.
Should be finished in around two days if I keep it up at this pace.

Would you guys prefer arrows or checkpoints similar to GTA?

Example


Feeling to have a go at pixel art again.
Let me know.
 
Newbie Spellweaver
Joined
Sep 8, 2009
Messages
8
Reaction score
0
Arrows, much more recognisable for an RP :)



Also, if there isn't already would you be able to implement an energy system? Example, 100 energy, each hit/shot takes 5 energy, get more energy by sleeping/using drinks machines :) Thanks
 
Junior Spellweaver
Joined
Jan 7, 2014
Messages
191
Reaction score
2
Arrows, much more recognisable for an RP :)



Also, if there isn't already would you be able to implement an energy system? Example, 100 energy, each hit/shot takes 5 energy, get more energy by sleeping/using drinks machines :) Thanks
Checkpoints. Or maybe both?
 
Experienced Elementalist
Joined
Mar 18, 2007
Messages
211
Reaction score
223
Today I've thought about the architecture and how resources could be saved.

Every roleplaying emulator I've encountered, normally saves their timer data in the database.
This is not necessary whatsoever and can be avoided.

For jail inmates, there is a JailManager class, which contains a collection of all active roleplayers whom are in jail.
Upon loading, there data is checked to see if its contained within the jailed inmates collection.
If so, then their timer definition is set against the instance within the jailed inmates collection.

The same applicable method is applied to the hospital.
How would this work for individuals who use the 'rob' command and need a cooldown, you may ask? simple.

The same protocol for the jailed system although this time it goes against the wanted manager. When a user robs another user, they are placed on the wanted list.

This means there is NO need whatsoever to save timer definitions into the database.
It's simply a waste when the roleplayer's timer data could be cached and saved if need be.

I've also notice that Mango uses unnecessary resources where it doesn't need to use them.
This in terms of creating collections where they don't need to be created and the disposal processes.

It's the little things that count.
 
Experienced Elementalist
Joined
Mar 18, 2007
Messages
211
Reaction score
223
Couldn't sleep so went ahead and implemented a few things.

- Bank robberies can be started by going to the bank vault.
Each robbery takes around ten minutes, without leaving the vault.
If you are arrested, hospitalized or leave the vault, the process is cancelled.

- Wanted system similar to GTA has been implemented.
The wanted enum value goes up depending on a random probability.


On a side note, here's a lovely list of all the commands currently programmed.

Code:
            Register("clearbounties", new ClearBountiesCmd());
            Register("placebounty", new PlaceBountyCmd());
            Register("viewbl", new ViewBountiesCmd());


            Register("demote", new CorpDemoteCmd());
            Register("fire", new CorpFireCmd());
            Register("hire", new CorpHireCmd());
            Register("promote", new CorpPromoteCmd());
            Register("viewworkers", new CorpViewWorkers());
            Register("superdemote", new SuperDemoteCmd());
            Register("superfire", new SuperFireCmd());
            Register("superhire", new SuperHireCmd());
            Register("superpromote", new SuperPromoteCmd());
            Register("superviewworkers", new SuperViewWorkersCmd());


            Register("addwanted", new AddWantedCmd());
            Register("arrestcmd", new ArrestCmd());
            Register("releaseall", new ReleaseAllCmd());
            Register("release", new ReleaseCmd());
            Register("stun", new StunCmd());
            Register("unstun", new UnstunCmd());
            Register("viewprisoners", new ViewPrisonersCmd());
            Register("viewwl", new ViewWantedCmd());


            Register("bail", new BailCmd());
            Register("balance", new BalanceCmd());
            Register("deposit", new DepositCmd());
            Register("hit", new HitCmd());
            Register("offer", new OfferCmd());
            Register("quitwork", new QuitWorkCmd());
            Register("rob", new RobCmd());
            Register("shoot", new ShootCmd());
            Register("stab", new StabCmd());
            Register("startwork", new StartWorkCmd());
            Register("stopwork", new StopWorkCmd());
            Register("taxi", new TaxiCmd());
            Register("text", new TextCmd());
            Register("withdraw", new WithdrawCmd());
            Register("startrobbery", new StartRobberyCmd());


            Register("givearmour", new GiveArmourCmd());
            Register("giveenergy", new GiveEnergyCmd());
            Register("givehealth", new GiveHealthCmd());
            Register("kill", new KillCmd());



- Hunger and Energy timers are now completely implemented.
- You can get something to eat from a snack machine or a restaurant.
- You can get something to drink from a drinks machine or a restaurant.


Francis Joseph - MangoRP - Generic Roleplay Emulator - RaGEZONE Forums


I realize the animation for the handitem doesn't appear and I'll fix the issue in the morning.
 
Joined
Feb 22, 2012
Messages
2,103
Reaction score
1,271
An idea would be to you add some kind of integration of money, wanted level, etc with HTML, and get informations from emulator in real time...

If I'm right Mango Emu have an command to run, right? You could tweak a little bit of this command incase your current user effect is a car, for you to be able to move faster in this case, and not just go around with the same speed as a normal user would do...

And an hability to buy perks in catalogue would be cool aswell
 
Experienced Elementalist
Joined
Mar 18, 2007
Messages
211
Reaction score
223
An idea would be to you add some kind of integration of money, wanted level, etc with HTML, and get informations from emulator in real time...

If I'm right Mango Emu have an command to run, right? You could tweak a little bit of this command incase your current user effect is a car, for you to be able to move faster in this case, and not just go around with the same speed as a normal user would do...

And an hability to buy perks in catalogue would be cool aswell

I have considered this since using NodeJS and SocketIO but then I didn't want to give the community too much since it was generic, haha.

As for cars, I have considered this. I'll implement a car manager today so users can purchase cars or what not.

The catalogue perks idea sounds cool too! I have a good look at that later.
 
Experienced Elementalist
Joined
Mar 18, 2007
Messages
211
Reaction score
223
- Vehicle Management is now complete.
- Vehicles can have adjustable maximum speed, maximum fuel and price.
- Credit to Droppy for his nice idea.


I'm almost finished with the emulator and in the final stages of reviewing!
After reviewing, I just have the swf editing to do and I shall be done.

Francis Joseph - MangoRP - Generic Roleplay Emulator - RaGEZONE Forums
 
Last edited:
Status
Not open for further replies.
Back
Top