Nuggzy submitted a new resource:

Hardcore Mode - Arcade style, set number of lives, auto-res, skill loss

Hardcore Mode is an arcade style system. It adds a limited number of lives. Once a player hits zero he can no longer be resurrected.

Features:
  1. Limited lives.
  2. Auto resurrect timer - scales with death count.
  3. Skill loss debuff.
  4. HP/M/S returns from resurrection adjusted by death count.
  5. Xtra life token.
  6. Ability to ban the account after death for RP servers that require a story line before making a new character.
  7. Kick/Delete players with 0 lives. **WARNING** **WARNING** read below.
  8. All settings are easily modified at the top of playermobile.cs
**using the kick/delete function can leave you open to exploits during the giveaways. Make sure all your gift givers do an age check on the character before giving gifts.

Read more about this resource...
 
Last edited:
for easyer install you can put a installer file like

under line "public override blah blah blah"


add that:

<piece of code>

??

Thanks for all the work!
 
for easyer install you can put a installer file like

under line "public override blah blah blah"


add that:

<piece of code>

??

Thanks for all the work!

Version 2 will hopefully be totally plug-n-play and will give the option on player creation to play a toon hardcore or normal.
 
When I get done updating version 1 and convert it. If you use winmerge it takes about a minute to install so it's not a major rush to me to make it plug-n-play.
 
@Nuggzy
Does this system allow for players to decide to use it or not when they create a new character? Or this this "always on" after it gets installed?
 
i have this problem:
Code:
+ Custom / mobiles / PlayerMobile.cs:
    CS1518: Line 3530: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3536: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3549: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3557: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3558: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3559: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3561: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3563: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3565: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3577: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3594: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1022: Line 3596: a type definition namespace or expected,
or the end of file
    CS0116: 3598 Line: A namespace can not be directly Member
bros as fields or methods
    CS1518: Line 3598: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1022: Line 3636: a type definition namespace or expected,
or the end of file
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.


and i attach my playermobile :S
 

Attachments

  • PlayerMobile.cs
    171.5 KB · Views: 5
@Nuggzy
Does this system allow for players to decide to use it or not when they create a new character? Or this this "always on" after it gets installed?

character is not deleted so I think you guess you wait the std time defined by char creation before creating a new char

I mean: if you dont unban the character, the player probably will.
If you have max characters set to 1 in the account, you have to delete it before creating a new one.
 
i have this problem:
Code:
+ Custom / mobiles / PlayerMobile.cs:
    CS1518: Line 3530: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3536: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3549: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3557: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3558: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3559: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3561: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3563: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3565: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3577: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1518: Line 3594: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1022: Line 3596: a type definition namespace or expected,
or the end of file
    CS0116: 3598 Line: A namespace can not be directly Member
bros as fields or methods
    CS1518: Line 3598: a class, delegate, an enumeration, is expecting a
interface or struct
    CS1022: Line 3636: a type definition namespace or expected,
or the end of file
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


and i attach my playermobile :S

Try that one, you missed a couple imports. Your playermobile has been modified a ton o.0.
 

Attachments

  • pall-PlayerMobile.cs
    173 KB · Views: 7
mm i try the system now, for deaths, and whe i lost my last live, my accound are baned but my player can run and move aaround like a ghost, it's possible when the screen saying game over, colse the client?

and i see a problem, they can continue using the dead player when i unban the account, like a ghost but they can use it.

its possible delete the player and in the next player give the skillball with they 60% of the las player skills?
 
I suggest you to simple the way putting the char in jail or in a place where he cant move, then you place here advanced player gate platyer has to cross and http://www.runuo.com/community/threads/2-0-lokais-advanced-player-gate.69526/

and you set the gate to remove some skills / stats to the player

He wants them banned and kicked off not in jail. And since you obviously don't understand due to language barriers I will try to explain this as plainly as I can.

A DEAD PLAYER HAS ZERO STATS AND ZERO SKILLS AND ZERO LIVES, THERE IS ABSOLUTELY NOTHING TO REMOVE.

Your game is over, you don't have and never will have any stats or skills.

Yes Pall, all of that is possible I just honestly don't see a problem with them running around as a ghost so I haven't put that in the system. What can a person do as a ghost that would hurt any part of the game other then maybe a little RP? You have no backpack, can't open your bank, can't talk to npc's, can't even talk to players unless they have spirit speak. I might add those features but they aren't high on the list.
The skillball will take a custom skillball which will take a lot of work. The way the system is now it gives a skillball to all new toons. I think the first toon should get one in a system like this. who wants to spend days training up only to die.
 
That's exaclty what I was trying to avoid to have practically player deleted and complexing up the system.
Yours is the system btw. Feel free to do as you wish.
 
That's exaclty what I was trying to avoid to have practically player deleted and complexing up the system.
Yours is the system btw. Feel free to do as you wish.

Nothing is deleted, I leave that up to you or the player, as I said in my last post I see no point so I probably never will implement it or at least until there is nothing else to add. A ghost has zero power in the game and because of that doesn't need to be managed by my system. That is precisely why I added the little play on arcade games if you run around and try to get res'd, to make people laugh when they try. Your game is over, insert another quarter.

If anything I will be adding a quest to the system that you have to do as a ghost to earn an extra life and be able to come back from the dead.
 
Last edited:
Nuggzy updated Hardcore Mode Arcade Life System with a new update entry:

UO Hardcore - Arcade style life system

V 1.2
  1. Added location checks to allow free resurrection near body. Movement is calculated by X * Y from death location. With a setting of 3 a player can move 1 step in X and 3 in Y. If he moves 2 in both he will lose an extra life.
  2. Added mode selection gates. All new players are moved to jail cell number 4 in Trammel to select a gate. These gates allow you to select between hardcore or normal modes. Once selected they are moved back to New Haven. (Note: any player that hasn't...

Read the rest of this update entry...
 
@Nuggzy
Does this system allow for players to decide to use it or not when they create a new character? Or this this "always on" after it gets installed?

Version 1.2 now allows user selection depending on how you set up the starting area. If you want both options add both gates, if you want hardcore only just add that gate.
 
If anything I will be adding a quest to the system that you have to do as a ghost to earn an extra life and be able to come back from the dead.

Nice idea but i am just ok with some "forced rest" .. Make ppl having a few hour with stat loss sounds enough for me. A nice implementation is a stand alone self config vers.
 
Mod to kick and delete player after lives hit zero.

Add this to the top of PlayerMobile.cs
Code:
        private bool NHMKickPlayer = true; //Kick player when they are out of lives.
        private bool NHMDeletePlayer = true; //Delete player when they are out of lives.

At the bottom of the Resurrect section change it to the following.
Code:
                else if ((NHMLifeCount == 0) && (NHMResOk == true))
                {
                    this.PlaySound(0x1AE);
                    acct.SetTag("HardcoreLifeCount~" + this.Name, "-1");
                    this.Emote(NHMZeroLivesMsg);
                    if (NHMBanAccount == true)
                    {
                        this.Emote(NHMBanMsg);
                        acct.Banned = true;
                    }
                    if (NHMKickPlayer)  //Kick player
                        Timer.DelayCall(TimeSpan.FromSeconds(5.0), new TimerStateCallback(Disconnect), this);  //Kick player
                    if (NHMDeletePlayer) //Delete player
                        Timer.DelayCall(TimeSpan.FromSeconds(10), NHMDeleteToon); //Delete player
                }
                else
                {
                    this.PlaySound(0x1AE);
                    this.Emote(NHMZeroLivesMsg + " Please insert 25 cents");
                }

After the resurrect section add
Code:
        private void NHMDeleteToon()
        {
            this.Delete();
        }
 
Nuggzy updated Hardcore Mode Arcade Life System with a new update entry:

Hardcore Mode Arcade Life System

V 1.3
  1. Added Kick/Delete functions once a toon is out of lives.
  2. Changed gate colors to avoid players thinking it's Tram/Fel.
  3. Added sounds to the gates.
  4. Updated the Gate Information book.
  5. Added/removed access level checks where needed.
V 1.2
  1. Added location checks to allow free resurrection near body. Movement is calculated by X * Y from death location. With a setting of 3 a player can move 1 step in X and 3 in Y. If he moves 2 in both he will lose an...

Read the rest of this update entry...
 
Nuggzy updated Hardcore Mode Arcade Life System with a new update entry:

Hardcore Mode Arcade Life System

V 1.3
  1. Added Kick/Delete functions once a toon is out of lives.
  2. Changed gate colors to avoid players thinking it's Tram/Fel.
  3. Added sounds to the gates.
  4. Updated the Gate Information book.
  5. Added/removed access level checks where needed.
V 1.2
  1. Added location checks to allow free resurrection near body. Movement is calculated by X * Y from death location. With a setting of 3 a player can move 1 step in X and 3 in Y. If he moves 2 in both he will lose an...

Read the rest of this update entry...
 
in the hardcore system, any can see your lifes and when go to resurrect, it's possible only this view for the own character? no for all the players near?
 
in the hardcore system, any can see your lifes and when go to resurrect, it's possible only this view for the own character? no for all the players near?

change all instances of
Code:
this.Emote(

from.Emote(

To
Code:
this.SendMessage(

from.SendMessage(

That will make it send a message instead of an emote. I used emote because there is less chance to miss it. As far as the player tooltip showing the life I will have to look at that and see what I can do.
 
**WARNING** If you use the delete function you can open up yourself to exploits during gift giveaways. Make sure all your giveaways are checking the character age or doing a hardcore check. That's why there is a 7 day wait before you can delete a toon, so you can't make toon after toon grabbing gifts.
 
Last edited:
**WARNING** If you use the delete function you can open up yourself to exploits during gift giveaways. Make sure all your giveaways are checking the character age or doing a hardcore check. That's why there is a 7 day wait before you can delete a toon, so you can make toon after toon grabbing gifts.

One way to tackle this would be to add an account tag and check against this

set the tag:
Code:
Account.SetTag( "RewardRecieved", "true" );

read the tag:
Code:
var rewarded = Account.GetTag( "RewardRecieved" );

if (rewarded != "true" )
{
	//do stuff
}

That would allow one reward per account.
 
One way to tackle this would be to add an account tag and check against this

set the tag:
Code:
Account.SetTag( "RewardRecieved", "true" );

read the tag:
Code:
var rewarded = Account.GetTag( "RewardRecieved" );

if (rewarded != "true" )
{
	//do stuff
}

That would allow one reward per account.

Most gifts are per toon not one per account, this wouldn't work for those. The only way it would work would be to use an integer and increment it until they reach the number of toons they have on their account. Also some people might repeat the same gifts yearly, they would have to change the tag name every year.
 
My apologies, i don't say nothing its working, my fault! works perfect
works perfect!
 
Last edited:
no no jno, sorry i check it again and works. My apologies, i don't say nothing its working, my fault! works perfect
works perfect!
 
Back