bestuo
Initiate
I have customregions in a box but some dungeons are very big, and im not able to cover everytile to prevernt recall or mark.
I added a check from doom, it ONLY WORKS if recalls are from book, recalls from runebook still work, so how can i prevent players to recall from book and recall book to certain places? whats the easiest way to do.
Ive seen checktravel method in spellhelper.cs but im confused.
If i modify this method: would i make it?:
I dont want players go to felucca to malas/ilshenar/ using recall/mark/gatetravel
Thanks
I added a check from doom, it ONLY WORKS if recalls are from book, recalls from runebook still work, so how can i prevent players to recall from book and recall book to certain places? whats the easiest way to do.
Ive seen checktravel method in spellhelper.cs but im confused.
Code:
public void Target( RecallRune rune )
{
if ( !Caster.CanSee( rune ) )
{
Caster.SendLocalizedMessage( 500237 ); // Target can not be seen.
}
else if ( !SpellHelper.CheckTravel( Caster, TravelCheckType.Mark ) )
{
//Caster.SendAsciiMessage("ros");
}
else if ( SpellHelper.CheckMulti( Caster.Location, Caster.Map, !Core.AOS ) )
{
Caster.SendLocalizedMessage( 501942 ); // That location is blocked.
}
else if ( !rune.IsChildOf( Caster.Backpack ) )
{
Caster.LocalOverheadMessage( MessageType.Regular, 0x3B2, 1062422 ); // You must have this rune in your backpack in order to mark it.
}
else if ( CheckSequence() )
{
if (Caster.Region is Regions.HouseRegion || (Caster.Region is Regions.CustomRegion && ((Regions.CustomRegion)Caster.Region).Controller.IsRestrictedSpell(this)))
Caster.SendAsciiMessage("No puedes Marcar runa aquii.");
////////////////////////////////////no recall doom
if(Caster.Region.Name == "Doom")
Caster.SendAsciiMessage("No puedes castear eso aqui!");
///////////////////////////////////////////////// recall doom
else if (Caster.Region is Regions.GreenAcres && Caster.AccessLevel == AccessLevel.Player)
Caster.SendAsciiMessage("Plebeyo!");
else
{
rune.Mark(Caster);
Caster.PlaySound(Sound);
}
FinishSequence();
}
}
If i modify this method: would i make it?:
Code:
private static readonly bool[,] m_Rules = new bool[,]
{
/*T2A(Fel) Ilshenar Wind(Tram), Wind(Fel), Dungeons(Fel), Solen(Tram), Solen(Fel), CrystalCave(Malas), Gauntlet(Malas), Gauntlet(Ferry), Stronghold, ChampionSpawn, Dungeons(Tokuno[Malas]), LampRoom(Doom), GuardianRoom(Doom), Heartwood */
/* Recall From */ { true, true, true, true, true, true, true, false, false, false, true, true, true, false, false, false },
/* Recall To */ { true, false, false, true, true, false, true, false, false, false, false, false, false, false, false, false },
/* Gate From */ { true, false, false, true, true, false, true, false, false, false, false, false, false, false, false, false },
/* Gate To */ { true, false, false, true, true, false, true, false, false, false, false, false, false, false, false, false },
/* Mark In */ { true, false, false, true, true, false, true, false, false, false, false, false, false, false, false, false },
/* Tele From */ { true, true, true, true, true, true, true, false, true, true, false, true, true, true, true, false },
/* Tele To */ { true, true, true, true, true, true, true, false, true, false, false, true, true, true, true, false },
};
I dont want players go to felucca to malas/ilshenar/ using recall/mark/gatetravel
Thanks
Last edited: