|
||
|
|||||||
| Custom Script Releases This forum is where you can release your custom scripts for other users to use. Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#26 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
An easy way to take care of all of those sorts of issues is to only allow challenges to be made in town regions. Make this change in xmlpoints.cs around line 1360 Code:
public static bool AllowChallengeGump(Mobile from, Mobile target)
{
if (from == null || target == null) return false;
if (!from.Region.IsPartOf(typeof(Regions.TownRegion)) || !target.Region.IsPartOf(typeof(Regions.TownRegion)))
{
from.SendMessage("You must be in a town to issue a challenge");
return false;
}
if (from.Region.IsPartOf(typeof(Regions.Jail)) || target.Region.IsPartOf(typeof(Regions.Jail)))
{
from.SendLocalizedMessage(1042632); // You'll need a better jailbreak plan then that!
return false;
}
return true;
}
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum Last edited by ArteGordon; 07-23-2006 at 11:39 AM. |
|
|
|
|
|
|
#29 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
The person to place the gauntlet is the organizer. They are responsible for placing the bases from the teams gump that opens up after you have assigned players to their teams. All the various challenge games work in the same way. The gauntlet is the game controller.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
|
#31 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
If you want to make the change in your current version, this is the fix around line 2300 in the OnKilled method in xmlpoints.cs Code:
// take points from the killed, either a fixed amount or scaled by the difference with the points of the killer
// if the killer has fewer points than the killed then lose more
XmlPoints xp = XmlAttach.FindAttachment(killer, typeof(XmlPoints)) as XmlPoints;
if(xp != null)
{
killerpoints = xp.Points;
// add to the recently killed list
xp.KillList.Add(new KillEntry(killed, DateTime.Now));
}
Code:
// add to the recently killed list //KillList.Add(new KillEntry(killed, DateTime.Now));
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
|
#32 (permalink) | |
|
Forum Novice
Join Date: Mar 2006
Location: South Florida (Originally Tulsa)
Age: 25
Posts: 105
|
Quote:
[bowtoarte
__________________
"Don't forget your towel!" -Phenika UO- Owner/Developer Phenika UO - "Home of UO Plus" Alpha Testing on UOGateway - phenika.zapto.org:2593 Forums - Contact us. |
|
|
|
|
|
|
#34 (permalink) | |
|
Forum Novice
Join Date: Mar 2004
Location: Wisconsin
Age: 45
Posts: 791
|
Excellent as always
Our players love the system. I love the system AND it is a great way to learn more on coding and scripting things the right way. Quick Question: Is there a time period that players are grey after a duel? Just want to be sure that is as intended and we did not miss something. Many Thanks, Arte ! Koluch
__________________
Quote:
|
|
|
|
|
|
|
#35 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
Are the players orange to each other during the duel? If not, then check the notoriety.cs mods.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
|
#36 (permalink) |
|
Newbie
Join Date: Jul 2006
Posts: 43
|
I got this error:
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Customs/XML/XML Spawner 1/XmlSpawner2.cs:
CS0029: Line 9376: Cannot implicitly convert type 'System.Collections.ArrayL
ist' to 'System.Collections.Generic.List<Server.Tile>'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
|
|
|
|
|
|
#37 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
it means that you are running RunUO 2.0 RC1 instead of the most recent SVN and you just need to uncomment this line at the beginning of xmlspawner2.cs
//#define RUNUO2RC1 so that it looks like #define RUNUO2RC1
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
#39 (permalink) |
|
Forum Novice
|
I found a bug. After duel on game region after some player is died its opponent can loot his corpse during a few seconds. This is the func from your game region:
Code:
public override bool CheckAccessibility(Item item, Mobile from)
{
if (item is Corpse)
{
// dont allow other players to loot corpses while a challenge game is present
if ((ChallengeGame != null) && !ChallengeGame.Deleted && (from != null) && !(((Corpse)item).Owner is BaseCreature) &&
(((Corpse)item).Owner != from) && (from.AccessLevel == AccessLevel.Player))
{
XmlPoints.SendText(from, 100105); // "You are not allowed to open that here."
return false;
}
}
return base.CheckAccessibility(item, from);
}
|
|
|
|
|
|
#41 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
http://runuo.com/forums/showthread.php?t=70748 There are other installation steps that you will need to follow as well in order for this system to work.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
|
#43 (permalink) | ||
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
from xmlpoints.txt Quote:
(edit) the way a player would use this would be to issue a command like [pointslanguage spanish and from then on all text would be in spanish. This only has to be done once and it will keep that setting for that player. You can issue the command as many times as you like, any time you like, to change it to something else.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum Last edited by ArteGordon; 09-22-2006 at 09:16 AM. |
||
|
|
|
|
|
#47 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
Code:
CommandSystem.Register( "PointsLanguage", AccessLevel.Player, new CommandEventHandler( Language_OnCommand ) ); CommandSystem.Register( "Challenge", AccessLevel.Player, new CommandEventHandler( Challenge_OnCommand ) ); CommandSystem.Register( "LMSChallenge", AccessLevel.Player, new CommandEventHandler( LMSChallenge_OnCommand ) ); CommandSystem.Register( "TeamLMSChallenge", AccessLevel.Player, new CommandEventHandler( TeamLMSChallenge_OnCommand ) ); CommandSystem.Register( "Deathmatch", AccessLevel.Player, new CommandEventHandler( Deathmatch_OnCommand ) ); CommandSystem.Register( "TeamDeathmatch", AccessLevel.Player, new CommandEventHandler( TeamDeathmatch_OnCommand ) ); CommandSystem.Register( "DeathBall", AccessLevel.Player, new CommandEventHandler( DeathBall_OnCommand ) ); CommandSystem.Register( "KingOfTheHill", AccessLevel.Player, new CommandEventHandler( KingOfTheHill_OnCommand ) ); CommandSystem.Register( "TeamDeathBall", AccessLevel.Player, new CommandEventHandler( TeamDeathBall_OnCommand ) ); CommandSystem.Register( "TeamKotH", AccessLevel.Player, new CommandEventHandler( TeamKotH_OnCommand ) ); CommandSystem.Register( "CTFChallenge", AccessLevel.Player, new CommandEventHandler( CTFChallenge_OnCommand ) ); CommandSystem.Register( "SystemBroadcastKills", AccessLevel.GameMaster, new CommandEventHandler( SystemBroadcastKills_OnCommand ) ); CommandSystem.Register( "SeeKills", AccessLevel.Player, new CommandEventHandler( SeeKills_OnCommand ) ); CommandSystem.Register( "BroadcastKills", AccessLevel.Player, new CommandEventHandler( BroadcastKills_OnCommand ) ); CommandSystem.Register( "CheckPoints", AccessLevel.Player, new CommandEventHandler( CheckPoints_OnCommand ) ); CommandSystem.Register( "TopPlayers", AccessLevel.Player, new CommandEventHandler( TopPlayers_OnCommand ) ); CommandSystem.Register( "AddAllPoints", AccessLevel.Administrator, new CommandEventHandler( AddAllPoints_OnCommand ) ); CommandSystem.Register( "RemoveAllPoints", AccessLevel.Administrator, new CommandEventHandler( RemoveAllPoints_OnCommand ) ); CommandSystem.Register( "LeaderboardSave", AccessLevel.Administrator, new CommandEventHandler( LeaderboardSave_OnCommand ) ); Code:
// add the challenge button
AddLabel(x1 + 30, 190, 55, a.Text(200229)); // "Challenge"
AddButton(x1, 190, 0xFAB, 0xFAD, 400, GumpButtonType.Reply, 0);
if (from.AccessLevel >= AccessLevel.GameMaster)
{
// add the last man standing challenge button
AddLabel(x2 + 30, 190, 55, a.Text(200230)); // "LMS"
AddButton(x2, 190, 0xFAB, 0xFAD, 401, GumpButtonType.Reply, 0);
// add the deathmatch challenge button
AddLabel(x3 + 30, 190, 55, a.Text(200231)); // "Deathmatch"
AddButton(x3, 190, 0xFAB, 0xFAD, 403, GumpButtonType.Reply, 0);
// add the kingofthehill challenge button
AddLabel(x1 + 30, 215, 55, a.Text(200232)); // "KotH"
AddButton(x1, 215, 0xFAB, 0xFAD, 404, GumpButtonType.Reply, 0);
// add the deathball challenge button
AddLabel(x2 + 30, 215, 55, a.Text(200233)); // "DeathBall"
AddButton(x2, 215, 0xFAB, 0xFAD, 405, GumpButtonType.Reply, 0);
// add the teamlms challenge button
AddLabel(x3 + 30, 215, 55, a.Text(200234)); // "Team LMS"
AddButton(x3, 215, 0xFAB, 0xFAD, 406, GumpButtonType.Reply, 0);
// add the team deathmatch challenge button
AddLabel(x1 + 30, 240, 55, a.Text(200235)); // "Team DMatch"
AddButton(x1, 240, 0xFAB, 0xFAD, 407, GumpButtonType.Reply, 0);
// add the team deathball challenge button
AddLabel(x2 + 30, 240, 55, a.Text(200236)); // "Team DBall"
AddButton(x2, 240, 0xFAB, 0xFAD, 408, GumpButtonType.Reply, 0);
// add the team KotH challenge button
AddLabel(x3 + 30, 240, 55, a.Text(200237)); // "Team KotH"
AddButton(x3, 240, 0xFAB, 0xFAD, 409, GumpButtonType.Reply, 0);
// add the CTF challenge button
AddLabel(x1 + 30, 265, 55, a.Text(200238)); // "CTF"
AddButton(x1, 265, 0xFAB, 0xFAD, 410, GumpButtonType.Reply, 0);
}
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
|
#48 (permalink) | |
|
Master of the Internet
|
Quote:
![]()
__________________
go fish |
|
|
|
|