RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

OSI Plant Growing (Updated 12/20)

Status
Not open for further replies.

Classic

Sorceror
.

i think it is:
[code:1]

using System;
using Server.Items;

namespace Server.Mobiles
{
[CorpseName( "a plant corpse" )]
public class Bogling : BaseCreature
{
[Constructable]
public Bogling() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a bogling";
Body = 779;
BaseSoundID = 422;

SetStr( 96, 120 );
SetDex( 91, 115 );
SetInt( 21, 45 );

SetHits( 58, 72 );

SetDamage( 5, 7 );

SetDamageType( ResistanceType.Physical, 100 );

SetResistance( ResistanceType.Physical, 20, 25 );
SetResistance( ResistanceType.Fire, 10, 20 );
SetResistance( ResistanceType.Cold, 15, 25 );
SetResistance( ResistanceType.Poison, 15, 25 );
SetResistance( ResistanceType.Energy, 15, 25 );

SetSkill( SkillName.MagicResist, 75.1, 100.0 );
SetSkill( SkillName.Tactics, 55.1, 80.0 );
SetSkill( SkillName.Wrestling, 55.1, 75.0 );

Fame = 450;
Karma = -450;

VirtualArmor = 28;

PackGold( 25, 50 );
PackItem( new Log( 4 ) );
////////////////////////////////////////
/////PackItem( YellowSeed( 3) );//
///////////////////////////////////////

}

public override int Hides{ get{ return 6; } }
public override int Meat{ get{ return 1; } }
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }

public Bogling( Serial serial ) : base( serial )
{
}

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
[/code:1]

like this?
 

shazam

Wanderer
i noticed a difference between this and on OSI

on osi the max seeds to harvest for example 0/8 would stay as 8 until you actually remove a seed so if you didnt remove seeds it would go up from 0/8 to 8/8 and goes down along with those remaining to be picked for example if you had 4 seeds ready to pick out of eight total it would be 4/8 and when picked it would be 0/4.
whereas on this script currently the max seeds to pick goes down each growth cycle instead of when picked althoughi haven't checked with the resources yet i believe it does the same thing.

as im not that good with scripting i wasnt sure where this part of the code would need to be moved to to make it work as on OSI
 

Subsilly

Wanderer
Dead Twigs

I left the seeds on the plants (had not plucked them). Once all 8 were grown, at the next growth cycle, the plant itself was replaced by a 'Dead Twigs' image instead. So the plant and seeds are now gone. Its happened on plants grown from plain and yellow seeds (so far-will know tomorrow if the red and blue are also affected).

Is this normal? If not, any idea how to correct? All plants were 'vibrant' and cared for up til they 'morphed' into the dead twigs.
 
Status
Not open for further replies.
Top