|
||
|
|||||||
| New Join Forum So your new to RunUO and looking to work with people that are new, this is the place. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Newbie
Join Date: Nov 2005
Age: 21
Posts: 94
|
Code:
using System;
using Server.Items;
namespace Server.Items
{
public class RegStone : Item
{
[Constructable]
public RegStone() : base( 0xED4 )
{
Movable = false;
Hue = 0x2D1;
Name = "a reagent stone";
}
public override void OnDoubleClick( Mobile from )
{
BagOfReagents regBag = new BagOfReagents( 50 );
if ( !from.AddToBackpack( regBag ) )
regBag.Delete();
}
public RegStone( 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();
}
}
}
|
|
|
|
|
|
#4 (permalink) |
|
Forum Expert
Join Date: Feb 2004
Age: 27
Posts: 2,047
|
This is an example of an artifact stone from my shard.
Code:
//Zyronic---125kTokens
Item[] Token = from.Backpack.FindItemsByType( typeof( Token ) );
if ( from.Backpack.ConsumeTotal( typeof( Token ), 125000 ) )
{
ZyronicClaw ZyronicClaw = new ZyronicClaw();
from.AddToBackpack( ZyronicClaw );
from.SendMessage( "125k tokens have been removed from your pack." );
}
else
{
from.SendMessage( "You do not have enough reward tokens for that." );
}
break;
![]() |
|
|
|
|
|
#6 (permalink) |
|
GM Hider
Join Date: Oct 2003
Age: 29
Posts: 187
|
You could also use Raelis' Vendor Stones
Setting start locations of the non-AOS/SE classes. These allow you to put any item up for sale and choose which currency you want on the fly. You can even sell arties for apples for that matter. I believe this stone will do exactly what you're trying to do. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|