Announcement

Collapse
No announcement yet.

Mark/Recall limitations

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mark/Recall limitations

    Hey, sorry, this is probably very basic but I have basically no knowledge of C++ or RunUO scripting in general.

    I'm setting up a little shard for myself and some friends/family to play on and we're perfectly happy with the base product, all I need/want to do is to remove the limitation on where you can/can't mark - for example, I can't seem to mark in the dungeon or a lot of the wild (area outside Fire Dungeon for example). How do I remove this?

    If it's possible to enable [where on a player account as well that'd be super handy to know.

    Thanks a heap.

    e: Mark as in the spell.

  • #2
    Did you look or search for Recall.cs script? I'm sure you can make changes there?
    RunUO - Ultima Online Emulator - www.runuo.net

    Comment


    • #3
      public override bool CheckCast()
      {
      if (Factions.Sigil.ExistsOn(this.Caster))
      {
      this.Caster.SendLocalizedMessage(1061632); // You can't do that while carrying the sigil.
      return false;
      }
      else if (this.Caster.Criminal)
      {
      this.Caster.SendLocalizedMessage(1005561, "", 0x22); // Thou'rt a criminal and cannot escape so easily.
      return false;
      }
      else if (SpellHelper.CheckCombat(this.Caster))
      {
      this.Caster.SendLocalizedMessage(1005564, "", 0x22); // Wouldst thou flee during the heat of battle??
      return false;
      }
      else if (Server.Misc.WeightOverloading.IsOverloaded(this.C aster))
      {
      this.Caster.SendLocalizedMessage(502359, "", 0x22); // Thou art too encumbered to move.
      return false;
      RunUO - Ultima Online Emulator - www.runuo.net

      Comment


      • #4
        Prevent recall/gate/mark from-to certain places
        Discussion in 'Script Support' started by bestuo, Oct 12, 2016

        https://www.servuo.com/threads/preve...n-places.5513/
        RunUO - Ultima Online Emulator - www.runuo.net

        Comment


        • #5
          You can try using spellhelper. Look at travetype and recallfrom.
          In there have it check for a region and return false. That way you also cover other spell systems you may have on your shard
          RunUO - Ultima Online Emulator - www.runuo.net

          Comment


          • #6
            Use Custom Region in a Box. You can setup a Region and then limit what spells can be used or manually setup the region.

            download: Region Editor for RunUO SVN
            http://www.runuo.com/community/threa...vn-663.468210/

            Outline your region, and set the region type to EventRegion

            This region type will override "GateTravel, Recall, Mark, SacredJourney, Teleport"
            Owner - UO Central

            Comment


            • #7
              How to disable mark/recall/gate spells in towns on a runuo server?

              Answer:

              Scripts/Regions/TownRegion.cs

              public override bool OnBeginSpellCast( Mobile from, ISpell s )
              {
              if ( from.AccessLevel == AccessLevel.Player && !s.OnCastInTown( this ))
              from.SendLocalizedMessage( 502629 ); // You cannot cast spells here.

              return ( from.AccessLevel > AccessLevel.Player );
              }

              Scripts/Spells/(SPELL SCRIPT).cs

              override the OnCastInTown() method
              return true = allow town cast
              return false = disallow town cast
              UO Evolution "The Game Has Evolved"

              http://www.uoevolution.com
              http://www.uoevolution.com/forum
              http://www.uoevolution.com/wiki

              Comment


              • #8
                Originally posted by admin View Post
                Did you look or search for Recall.cs script? I'm sure you can make changes there?
                Yeah, looked in Recall and Mark script, as well as the SpellHelper one. Can currently cast recall out of those areas, but still can't recall to (or even cast Mark).

                Is there ingame commands I can use to override the sector settings for these? I'd rather do that if possible, I have no idea with RunUO scripting. I just have no idea what I'm looking at.

                Comment

                Working...
                X