[SVN] Scroll of Transcendence
Missing feature. something else for players to do, especially if skill gain ever gets "nerfed".
- Works by killing creatures at any champ spawn.
- This does not include the replica rewards, as the two systems are completely different, and were only introduced at the same time.
- This does not work with luck.
- Every champ spawn has a chance of dropping a prize into your pack; SoT's, but in fel, you could end up with a PS 105, 50/50 chance.
- Fel champ spawns drop .6 to 1.0 (+skill) SoT's, they can be for any skill.
- Tram spawns drop .1 to .5 (+skill) SoT's.
- Will not raise skill above caps
- Will not raise skill caps
- Possible skills are all skills.
- Rate is about 1 in 200-400, im pretty sure anyway, so people aren't GM-ing all skills whenever they feel like it all the time, even though the gains could be for any skill (begging)
Also needed is the ScrollofTranscendence.cs which is attached to this post.
It goes in \Items\Special\Special Scrolls, and the extension/file-format needs to be changed from .txt to .cs
Other notes: the attaced ScrollofTranscendence.txt(cs) file was posted/scripted by Callandor2k.
side not to him: Thanks for pointing out the reason certain things were in the file.
The patch is for leveling the spawn, you kill creatures spawned by a champ spawn, you get a chance of gaining a scroll.
Missing feature. something else for players to do, especially if skill gain ever gets "nerfed".
- http://update.uo.com/design_512.html
- Non-Felucca facets Champ Spawns will now give special rewards for working the spawns
- Working the Ilshenar spawns gives Transcendence scrolls but not 105 powerscrolls
- Two types of rewards can be obtained while leveling the spawn: Scrolls of Transcendence (SoT) and 105 Powerscrolls (PS).
- http://vboards.stratics.com/showthread.php?t=114865The skill on the Scroll of Transcendence is randomly selected. The number of points per scroll will range from 0.1 to 0.5 in Trammel rulesets, and from 0.6 to 1.0 in Felucca. There is no timer on using these scrolls.
The Scroll of Transcendence are totally independent of the boss. Whenever you work the spawn you get a chance at receiving a 105 or a Scroll of Transcendence scroll. In Trammel, you will only get the Scroll of Transcendence, in Felucca you will get one or the other.
- Works by killing creatures at any champ spawn.
- This does not include the replica rewards, as the two systems are completely different, and were only introduced at the same time.
- This does not work with luck.
- Every champ spawn has a chance of dropping a prize into your pack; SoT's, but in fel, you could end up with a PS 105, 50/50 chance.
- Fel champ spawns drop .6 to 1.0 (+skill) SoT's, they can be for any skill.
- Tram spawns drop .1 to .5 (+skill) SoT's.
- Will not raise skill above caps
- Will not raise skill caps
- Possible skills are all skills.
- Rate is about 1 in 200-400, im pretty sure anyway, so people aren't GM-ing all skills whenever they feel like it all the time, even though the gains could be for any skill (begging)
Also needed is the ScrollofTranscendence.cs which is attached to this post.
It goes in \Items\Special\Special Scrolls, and the extension/file-format needs to be changed from .txt to .cs
Code:
Index: CannedEvil/ChampionSpawn.cs
===================================================================
--- CannedEvil/ChampionSpawn.cs (revision 319)
+++ CannedEvil/ChampionSpawn.cs (working copy)
@@ -383,6 +383,51 @@
Start();
}
+ private ScrollofTranscendence CreateRandomTramSoT()
+ {
+ int level;
+ double random = Utility.RandomDouble();
+
+ if (0.2 >= random)
+ level = 5;
+ else if(0.4 >= random)
+ level = 4;
+ else if(0.6 >= random)
+ level = 3;
+ else if(0.8 >= random)
+ level = 2;
+ else
+ level = 1;
+
+ return ScrollofTranscendence.CreateRandom( level, level );
+
+ }
+
+ private ScrollofTranscendence CreateRandomFelSoT()
+ {
+ int level;
+ double random = Utility.RandomDouble();
+
+ if (0.2 >= random)
+ level = 10;
+ else if(0.4 >= random)
+ level = 9;
+ else if(0.6 >= random)
+ level = 8;
+ else if(0.8 >= random)
+ level = 7;
+ else
+ level = 6;
+
+ return ScrollofTranscendence.CreateRandom( level, level );
+
+ }
+
+ private PowerScroll CreateRandomFelPS()
+ {
+ return PowerScroll.CreateRandomNoCraft( 5, 5 );
+ }
+
public void OnSlice()
{
if( !m_Active || Deleted )
@@ -427,10 +472,37 @@
if( killer is BaseCreature )
killer = ((BaseCreature)killer).GetMaster();
+ if ( Core.ML && Map != Map.Felucca && Map != Map.Malas && killer is PlayerMobile && 0.0055 > Utility.RandomDouble() )
+ {
+ killer.SendLocalizedMessage( 1094936 ); // You have received a Scroll of Transcendence!
+ ScrollofTranscendence SoTT = CreateRandomTramSoT();
+ killer.AddToBackpack( SoTT );
+ }
+
+ if ( Core.ML && Map == Map.Felucca && killer is PlayerMobile && 0.0055 > Utility.RandomDouble() )
+ {
+ double chance = Utility.RandomDouble();
+
+ if (0.5 >= chance)
+ {
+ killer.SendLocalizedMessage( 1094936 ); // You have received a Scroll of Transcendence!
+ ScrollofTranscendence SoTF = CreateRandomFelSoT();
+ killer.AddToBackpack( SoTF );
+ }
+ else if (0.5 < chance)
+ {
+ killer.SendLocalizedMessage( 1049524 ); // You have received a scroll of power!
+ PowerScroll PS = CreateRandomFelPS();
+ killer.AddToBackpack( PS );
+ }
+ }
+
if( killer is PlayerMobile )
+
{
+
int mobSubLevel = GetSubLevelFor( m ) + 1;
-
+
if( mobSubLevel >= 0 )
{
bool gainedPath = false;
@@ -473,7 +545,8 @@
Respawn();
}
}
-
+
+
public void AdvanceLevel()
{
m_ExpireTime = DateTime.Now + m_ExpireDelay;
Other notes: the attaced ScrollofTranscendence.txt(cs) file was posted/scripted by Callandor2k.
side not to him: Thanks for pointing out the reason certain things were in the file.
The patch is for leveling the spawn, you kill creatures spawned by a champ spawn, you get a chance of gaining a scroll.