Fame Ball
Hello-
I hashed out this script to replace a custom item on our previous shard.
Info is taken from a CrystalBall script and the [Claim script
When I say info I mean gathering info how to do what I want, learning process etc.
After creating the script and testing I searched the forum an found mention of a Ball of Reputaion but did not see an attached script, So here is mine.
As usuall [add fameball
Enjoy
TesterSam
Hello-
I hashed out this script to replace a custom item on our previous shard.
Info is taken from a CrystalBall script and the [Claim script
When I say info I mean gathering info how to do what I want, learning process etc.
After creating the script and testing I searched the forum an found mention of a Ball of Reputaion but did not see an attached script, So here is mine.
As usuall [add fameball
Code:
// By Testersam 1-31-05
// Info Borrowed from Claim Scrimpt
// And Crystal Ball By (Neon and Improved By Dddie)
using System;
using System.Collections;
using Server;
using Server.Network;
using Server.Items;
using Server.Targeting;
using Server.Mobiles;
using Server.Misc;
using Server.Factions;
namespace Server.Items
{
public class FameBall : Item
{
[Constructable]
public FameBall() : base( 0xE2E )
{
this.Name = "a Fame and Karma Ball";
this.Weight = 10;
this.Stackable = false;
this.LootType = LootType.Blessed;
this.Light = LightType.Circle150;
}
public override void OnDoubleClick( Mobile from )
{
if ( !from.InRange( this.GetWorldLocation(), 2 ) )
return;
int PCFame = 0;
int PCKarma = 0;
PCFame = from.Fame;
PCKarma = from.Karma;
from.PlaySound(40);
from.SendMessage( 69, "Fame: {00000}", PCFame );
from.SendMessage( 69, "Karma: {00000}", PCKarma );
}
public FameBall( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
Enjoy
TesterSam