|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Newbie
Join Date: Feb 2004
Location: Richmond, VA
Age: 30
Posts: 68
|
I have a shard thats been up for about 6 months and lately people are quiting because they dont like the powerscrolls. Its a PreAOS shard and I thought it would be neat to add powerscrolls and now everybody suggest taking them out. Is there anyway or a command to set everybodies skill caps back to 100 so I dont have to go into each character by hand and do it? I know how to stop people from getting new powerscrolls but how can i remove the current ones and skills from players that have them. Or am I looking at just having to do a shard wipe?
|
|
|
|
|
|
#2 (permalink) | |
|
Not a lurker
Join Date: Jan 2004
Location: Kentucky
Age: 33
Posts: 1,213
|
Quote:
If you want to delete all in game scrolls try [global delete where PowerScroll .
__________________
Ilshenar ChampionSpawn Generator OSI Clone World Spawn files for MegaSpawner. Current spawn files available: Malas Ilshenar |
|
|
|
|
|
|
#3 (permalink) | |
|
Join Date: May 2004
Age: 28
Posts: 14
|
Quote:
|
|
|
|
|
|
|
#4 (permalink) |
|
Find this
Code:
public void GivePowerScrolls()
{
if ( Map != Map.Felucca )
return;
ArrayList toGive = new ArrayList();
ArrayList list = Aggressors;
for ( int i = 0; i < list.Count; ++i )
{
AggressorInfo info = (AggressorInfo)list[i];
if ( info.Attacker.Player && info.Attacker.Alive && (DateTime.Now - info.LastCombatTime) < TimeSpan.FromSeconds( 30.0 ) && !toGive.Contains( info.Attacker ) )
toGive.Add( info.Attacker );
}
list = Aggressed;
for ( int i = 0; i < list.Count; ++i )
{
AggressorInfo info = (AggressorInfo)list[i];
if ( info.Defender.Player && info.Defender.Alive && (DateTime.Now - info.LastCombatTime) < TimeSpan.FromSeconds( 30.0 ) && !toGive.Contains( info.Defender ) )
toGive.Add( info.Defender );
}
if ( toGive.Count == 0 )
return;
// Randomize
for ( int i = 0; i < toGive.Count; ++i )
{
int rand = Utility.Random( toGive.Count );
object hold = toGive[i];
toGive[i] = toGive[rand];
toGive[rand] = hold;
}
for ( int i = 0; i < 6; ++i )
{
int level;
double random = Utility.RandomDouble();
if ( 0.1 >= random )
level = 20;
else if ( 0.4 >= random )
level = 15;
else
level = 10;
Mobile m = (Mobile)toGive[i % toGive.Count];
PowerScroll ps = PowerScroll.CreateRandomNoCraft( level, level );
m.SendLocalizedMessage( 1049524 ); // You have received a scroll of power!
m.AddToBackpack( ps );
if ( m is PlayerMobile )
{
PlayerMobile pm = (PlayerMobile)m;
for ( int j = 0; j < pm.JusticeProtectors.Count; ++j )
{
Mobile prot = (Mobile)pm.JusticeProtectors[j];
if ( prot.Map != m.Map || prot.Kills >= 5 || prot.Criminal )
continue;
int chance = 0;
switch ( VirtueHelper.GetLevel( prot, VirtueName.Justice ) )
{
case VirtueLevel.Seeker: chance = 60; break;
case VirtueLevel.Follower: chance = 80; break;
case VirtueLevel.Knight: chance = 100; break;
}
if ( chance > Utility.Random( 100 ) )
{
prot.SendLocalizedMessage( 1049368 ); // You have been rewarded for your dedication to Justice!
prot.AddToBackpack( new PowerScroll( ps.Skill, ps.Value ) );
}
}
}
}
}
Code:
public void GivePowerScrolls()
{
return true;
}
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|