Full Version : Change a lot of things
xmlspawner >>XMLPoints Discussion >>Change a lot of things
<< Prev | Next >>
Rash- 08-01-2006
hello.i liked this system really but i want to change it a little.
i wanna do when a player hits the [challenge and asks another player to duel with him,and another player acceps i wanna to teleport them to a custom arena which i made,systom won't ask them like here,luna,jhelom automatically my arena!
and i want to do it for all challenge games.i will make arenas and the system send them to the arenas.and i wanna do if arena isn't empty they cant start another game
i want to close all gumps,systems about pointing,credits noone will gain credits or points.
how can i do them?
ArteGordon- 08-01-2006
you can specify the duel locations in XmlPoints.cs

QUOTE
public static DuelLocationEntry[] DuelLocations = new DuelLocationEntry[] { new DuelLocationEntry("Jhelom Fighting Pit", 1398, 3742, -21, Map.Felucca, 14), new DuelLocationEntry("Luna Grand Arena", 940, 637, -90, Map.Malas, 4), };

To remove the option to duel at the current location, just comment out these lines in xmlpoints.cs around line 2950

CODE
AddLabel( 55, y, texthue, String.Format(GetText(from, 200661)) ); // "Duel here" AddRadio( 20, y, 9721, 9724, false, 1 );

By default, no points are given out during challenge games. That is controlled by the AllowPoints property in basechallengegame.cs that can overriden for individual games.
If you dont want to give out points for challenge duels you can make this change in xmlpoints.cs around line 2240

QUOTE
// if this was a challenge duel then clear agression if(killed == m_Challenger || killer == m_Challenger || AreInSameGame(killer, killed)) { awardpoints = false;

There is no system for automatically teleporting players to arenas for challenge games so that is something that you would have to add yourself.
Rash- 08-02-2006
hmm ok.can i do something like this; if someone is in arena so noone can use [challenge
and i want to make an arena for ctf,koh and other games can i do it?
ArteGordon- 08-02-2006

QUOTE (Rash @ August 02, 2006 07:20 am)
hmm ok.can i do something like this; if someone is in arena so noone can use [challenge and i want to make an arena for ctf,koh and other games can i do it?

[challenge already checks to see if the arena is occupied.
You can make arenas for the challenge games by placing a ChallengeRegion in them using the ChallengeRegionStone and then configure the games so that they can only be started in those arenas by setting this flag to true in each game (e.g. in CTF.cs)

CODE
public static bool OnlyInChallengeGameRegion = false; // if this is true, then the game can only be set up in a challenge game region