Resource icon

Invasion System 1.0

No permission to download

Ravenwolfe

Moderator
ServUO Developer
Sep 7, 2013
1,165
148
63
Texas
www.ultimaonlinephoenix.com
Shard Name
UO Phoenix
Can do. I have an update to post that uses spawn spots instead of random spawns anyway. That solves some issues with bad spawn spots.

The pink was actually a request by the shard I originally wrote it for, but I’ll change it in the update.
 

Tresdni

Rookie
Mar 10, 2013
96
38
18
36
I really hate to be "that guy", but how about a little credit to the one who wrote the system to begin with? I can appreciate people taking my ideas and making them even better (that's what this whole community is about), but c'mon man...I worked hard on that like four years ago, at least a little shout out would be appreciated.
 
  • Wow
Reactions: DPSGnome

Ravenwolfe

Moderator
ServUO Developer
Sep 7, 2013
1,165
148
63
Texas
www.ultimaonlinephoenix.com
Shard Name
UO Phoenix
I’m actually shocked you would say that. I’ve got a bunch of stuff that you worked on which is incredible work that if I was “that guy” I could have released and people would kill to have (your achievement system comes to mind). But I’ve always had great respect for you and you asked me to keep it private, so I did.

The only part of this system that even resembles your code is the spawning method, which I used as a reference to create this. Perhaps I should have said I used that as a reference but then I would need to give credit to 7+ books, codeacademy, stack overflow, my parents for giving birth to me, etc.

@Vorspire helped with me the Persistence as I mentioned. You did write a system long before me, which I have and used portions as reference but to claim that this is your system is complete crap and I’ll be glad to post your system for anyone to compare if you want me to prove it.

I can show you tons of posts where I have complimented your work and have given you credit for helping me on Skype in the past.

This work is mine, it’s the first big project I have completed that I was proud of and your petty accusation just ruined my enjoyment of the accomplishment.

Thanks.
 
  • Like
Reactions: DPSGnome

Aschnyder26

Squire
Jul 6, 2016
257
25
28
Atlanta, GA
www.kalvasflam.org
Shard Name
Kal Vas Flam
@Ravenwolfe Quick question, any idea why on RunUO the gump doest allow me to set a time for invasion? The field is blank and doesn't let me edit it so of course when I click 'Okay' the server crashes and complains that InvasionMainGump.cs:line 115 causes an error.
Code:
string time = info.GetTextEntry(5).Text;
                DateTime timeToStart;
invasion.png
 

Ravenwolfe

Moderator
ServUO Developer
Sep 7, 2013
1,165
148
63
Texas
www.ultimaonlinephoenix.com
Shard Name
UO Phoenix
Nothing off the top of my head, that field should have the current time in there and you should be able to edit it. I’ve tested with newer RunUO and it was fine (you have to add Persistence as mentioned in above posts). Are you using an older RunUO, like 2.3?
 

Ravenwolfe

Moderator
ServUO Developer
Sep 7, 2013
1,165
148
63
Texas
www.ultimaonlinephoenix.com
Shard Name
UO Phoenix
It probably has something to do with the change in the way timing is done in newer RunUO and ServUO. You can probably modify the script to not use UTC and likely fix the issue. I’m in Vegas until Saturday but I can look when I get home if you don’t have it solved by then.

I also did some improvements a while back to the times and spawns that I can send you. I never posted the updates because Vorspire released his system and it basically kicked mine in the nuts, lol.
 

Aschnyder26

Squire
Jul 6, 2016
257
25
28
Atlanta, GA
www.kalvasflam.org
Shard Name
Kal Vas Flam
It probably has something to do with the change in the way timing is done in newer RunUO and ServUO. You can probably modify the script to not use UTC and likely fix the issue. I’m in Vegas until Saturday but I can look when I get home if you don’t have it solved by then.

I also did some improvements a while back to the times and spawns that I can send you. I never posted the updates because Vorspire released his system and it basically kicked mine in the nuts, lol.
LOL ok well I tried to change Utc.Now to just Now in the scripts to see if that helped this morning. But I'll look deeper when I get home from work.
 

Aschnyder26

Squire
Jul 6, 2016
257
25
28
Atlanta, GA
www.kalvasflam.org
Shard Name
Kal Vas Flam
Yeah, not gonna be quite that simple. There are some date/time conversions in there that will need to be modified.
Ok I got it working! Thanks for the direction today. I probably did this the the most wrong way possible but it seems to be working now.

After I changed all the DateTime.UtcNow to DateTime.Now,(because my server core doesn't use it by default), I went inside InvasionMainGump.cs and I changed line 53 from:

Code:
AddTextEntry(514, 119, 168, 20, 23, 5, DateTime.UtcNow.ToString(), 22);
to this

Code:
AddTextEntry(514, 119, 168, 20, 23, 5, DateTime.Now.ToString());
I tested this out and set an undead invasion for Ocllo and it went off without a problem. The guards were disabled and all the dead things spawned. Most importantly the time was generated in the textbox and was editable. LOL

invasion2.png
 
Last edited:
  • Like
Reactions: Ravenwolfe

Aschnyder26

Squire
Jul 6, 2016
257
25
28
Atlanta, GA
www.kalvasflam.org
Shard Name
Kal Vas Flam
Why isn't Brit an option for the city invasion?
You can add it if you like. I added Britain to mine. in invasionsystem.cs add
Code:
                    case InvasionTowns.Britain:
                    {
                        Top = new Point3D(1429, 1539, 30);
                        Bottom = new Point3D(1626, 1768, 60);
                        MinSpawnZ = 1;
                        MaxSpawnZ = 60;
                        SpawnMap = Map.Felucca;
                        TownInvaded = "Britain";
                        break;
                    }
then make sure you register the new town entry in invasion settings.cs
Code:
    public enum InvasionTowns
    {
        Britain,
        BuccaneersDen,
        Cove,
        Delucia,
        Jhelom,
        Minoc,
        Moonglow,
        Nujel,
        Ocllo,
        Papua,
        SkaraBrae,
        Vesper,
        Yew
    }
 
Last edited:

Aschnyder26

Squire
Jul 6, 2016
257
25
28
Atlanta, GA
www.kalvasflam.org
Shard Name
Kal Vas Flam
No problem. Just keep in mind that in Britain there are many unreachable areas that monsters may spawn in like passageways. This may cause a problem during an invasion that a GM would have to address.
[doublepost=1538912677][/doublepost]@Ravenwolfe does your updated system have any kind of progress notification during an invasion?
 
  • Like
Reactions: Izex

Ravenwolfe

Moderator
ServUO Developer
Sep 7, 2013
1,165
148
63
Texas
www.ultimaonlinephoenix.com
Shard Name
UO Phoenix
I have not, but that should be easy to add. I've sent you the updated one if you don't mind testing it a bit.

If you say its working good, I'll release it here. In the meantime, I'll figure out a way to do a progress bar. I know I could do a nice one with supergumps but I'm trying not to make the system dependent on VitaNex.
 
  • Like
Reactions: Izex

oldman80

Citizen
Oct 4, 2018
6
1
3
I tried setting this up on my Shard but am having 0 luck. No errors though. When setting an invasion, nothing happens. I tried setting this up for 30 minutes in the future. Also, when calling the [ListInvasions, nothing happens either. Since I am getting no errors, I have no idea where to even start looking for issues. Anyone have any thoughts?

I am using the lasted version of ServUO from a couple of days ago.