|
You last visited: Today at 16:52
Advertisement
Instances
Discussion on Instances within the CO2 Programming forum part of the Conquer Online 2 category.
06/30/2020, 05:20
|
#1
|
elite*gold: 0
Join Date: May 2020
Posts: 8
Received Thanks: 2
|
Instances
I was wondering how I would go about in making an instanced area. Such as player housing, 1 vs 1 arenas, team fights, etc...
I'm currently using the Redux 5065 source as a learning course.
I tried to use the following, but for some reason it's not saving into the Database(Yes, I already added the table):
Code:
_client.HouseMapID = 1098;
Code:
public ushort HouseMapID
{
get { return Character.HouseMapID; }
set { Character.HouseMapID = value; }
}
Code:
public virtual ushort HouseMapID { get; set; }
I'm able to create the house and upgrade it, but if I log off, it will not save, even if I force save it. Also, if I put it on the database, it still shows up as no house exists.
Another issue is that other players can go inside the map(house) that you are in if they also make/upgrade their house. This is what I currently made from an example I was given:
Code:
case 1:
{
var House = ServerDatabase.Context.Maps.GetById(_client.HouseMapID);
if (House != null)
{
_client.ChangeMap(_client.UID, House.SpawnID, House.SpawnX, House.SpawnY);
}
break;
}
|
|
|
06/30/2020, 21:39
|
#2
|
elite*gold: 0
Join Date: Jul 2011
Posts: 96
Received Thanks: 76
|
If your database isn't saving that means something is wrong with your database/nhibernate/code.
Did this few months ago so don't remember every detail but bare with me.
First things first. You need to make a HouseAdmin NPC. Iirc, first tier house mapid is 1098. This npc should create a "new map" with ID of 1098 and UID of whatever is free and SpawnID of 1002. You can name maps like House1, House2 etc. or "{Player}House"
Also you need a new column in database for character, something like "HouseMapId" with the value of integer and default value of 0. This row will hold UID of the map that's specially created for this character (will be set to the UID of created map and you will check if player has a home like _client.HouseMapUID > 0). So when you want to visit the home, you can call it like _client.ChangeMap(_client.HouseMapUID).
Upgraded house map ID is 1099. To upgrade, you need to call _client.HouseMapUID, get map and change ID column of the entry.
If you still need help, I can also post few snippets to get you started.
|
|
|
07/04/2020, 18:27
|
#3
|
elite*gold: 0
Join Date: May 2020
Posts: 8
Received Thanks: 2
|
Quote:
Originally Posted by Latyos
If you still need help, I can also post few snippets to get you started.
|
Sorry but nothing that you told me helped one bit. You told me to do exactly what I had already done and I posted that I already did. Take a look at the spoilers and read a little bit of the post.
Also, I did some research. It has to do with dynamic maps, which I believe the source does not currently support, so I will have to learn how to add it in.
If someone could help me with dynamic maps on the 5065 Redux source it’d be great. If not, this thread should die.
|
|
|
 |
Similar Threads
|
Skip instances on Mustafar
08/16/2006 - General Gaming Discussion - 4 Replies
On mustafar, enter the HK instance (you will need a lava vehicle of some sort) turn in any direction, and drive off of a lava fall. Having done so, you will find yourself in a large expanse of flatness on default mustafar texture. Using this you can find any instance, including other HK and Droid Factory, Droid Army, ect, even Obi-wan's third trial! as of right now however the only one you can get in is HK and the other instances of such. The planetary map shows Dathomir, i have waypointed the...
|
Connect with 2 WoW Instances on 1 Account
07/12/2006 - WoW Exploits, Hacks, Tools & Macros - 6 Replies
If you share an account with a friend, you can use this to play at the same time as he does
Friends of mine who did find out about this trick were sharing an account, und used it from v. 1.7.X till the end of v. 1.8.X . I never tried it out, but I saw them as they were doing it.
What you have to do is connect both exactly at the same time, and hope you both don't get disconnected. If one is kicked back, try again. They told me that it works sometime after 2 tries, but that it sometimes...
|
Get into Instances at a low level
05/17/2006 - WoW Exploits, Hacks, Tools & Macros - 1 Replies
need a 20+ mage
what u do is go to the high lvl instance and blink into the entrance work as of 1.8
|
Ride a Vehicle in Special Instances
05/02/2006 - General Gaming Discussion - 0 Replies
This may be common knowledge for some but i just learned it. When entering in one of the instances on Kashyyyk, have your vehicle out, click on the door to enter, then hop on your vehicle before you go in. you will be able to ride your barc, swoop, av-21, etc. in all special instances. I have tried it out and it works so I hope it helps.
This usually works when there's a bit of lag. You'll have to work it a few times to get it down. Once you get attacked by a spawn in the...
|
All times are GMT +1. The time now is 16:52.
|
|