|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
Join Date: May 2004
Age: 28
Posts: 281
|
have a look at this
This is the Ratman Script I want this ratman to loot the full body then 1 time I want it to open the body and loot then full thing I don't know how to use any tools all I need is a code to make it loot all Code:
using System;
using System.Collections;
using Server.Misc;
using Server.Items;
using Server.Targeting;
namespace Server.Mobiles
{
[CorpseName( "a ratman's corpse" )]
public class Ratman : BaseCreature
{
public override InhumanSpeech SpeechType{ get{ return InhumanSpeech.Ratman; } }
[Constructable]
public Ratman() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = NameList.RandomName( "ratman" );
Body = 42;
BaseSoundID = 437;
SetStr( 96, 120 );
SetDex( 81, 100 );
SetInt( 36, 60 );
SetHits( 58, 72 );
SetDamage( 4, 5 );
SetDamageType( ResistanceType.Physical, 100 );
SetResistance( ResistanceType.Physical, 25, 30 );
SetResistance( ResistanceType.Fire, 10, 20 );
SetResistance( ResistanceType.Cold, 10, 20 );
SetResistance( ResistanceType.Poison, 10, 20 );
SetResistance( ResistanceType.Energy, 10, 20 );
SetSkill( SkillName.MagicResist, 35.1, 60.0 );
SetSkill( SkillName.Tactics, 50.1, 75.0 );
SetSkill( SkillName.Wrestling, 50.1, 75.0 );
Fame = 1500;
Karma = -1500;
VirtualArmor = 28;
}
public override void GenerateLoot()
{
AddLoot( LootPack.Meager );
// TODO: weapon, misc
}
public override bool CanRummageCorpses{ get{ return true; } }
public override int Hides{ get{ return 8; } }
public override HideType HideType{ get{ return HideType.Spined; } }
public Ratman( 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();
}
}
}
or can someone show me the code how it is to make that work that will help too anyway ty |
|
|
|
|
|
#2 (permalink) |
|
Master of the Internet
|
do not start an other post to talk about the same thing in a different one, that can get both posts locked really fast - it is just like bumping the other one
the tool i suggested you do not have to use - just makes it a hell of a lot easier to find the code you want we do not write the code for you, you need to try on your own 1st then we will help you finish it but you have to put some effort into it, not just post the distro script and requesting code/scripts to be writen for you is against the rules now using what ever youy want - windows search, inforapid, DOS - search through the monstewr sctipts and find ONTHINK or ONMOVE then you will find what the hell to do to start your project
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) |
|
|
|
|
|
#3 (permalink) | |
|
Forum Expert
Join Date: May 2004
Age: 28
Posts: 281
|
Quote:
I need help understanding this tool i am a newb of this tool so I need help on it then how can I put something on it and get what I want off of it? how can I make my own on this tool how can I get this code of loot all off of a body and so on...... can you help me understand this tool stap by stap |
|
|
|
|
|
|
#4 (permalink) |
|
Forum Expert
|
Look at method public virtual bool Rummage() in BaseCreature class. It calls when monster decide to loot anyone corpse. Try to understand how it works: how monster find a corpse, how it choose what to loot. Line by line, until the whole method would be clear for you. After that try to make changes and see the effect. If you completely can't understand how this method works (it's very simple method though), then you should learn some more about C# first: classes, fields, properties, methods call, arrays basic.
|
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
Join Date: May 2004
Age: 28
Posts: 281
|
anyway there.......
This code public override on kill loot corpses {get { return true; } } did work good......so ummm i dont know why you say its not a code at all ...anyway ty for trying to say more learning but ok ty tho |
|
|
|
|
|
#8 (permalink) |
|
Master of the Internet
|
i do not see how that can compile either
This code public override on kill loot corpses {get { return true; } } should be this (spaces removed) This code public override onkilllootcorpses {get { return true; } } to be able to compile
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) |
|
|
|
|
|
#9 (permalink) | |
|
Forum Expert
Join Date: May 2004
Age: 28
Posts: 281
|
Quote:
well I did this public override OnKillLootCorpses {get { return true; } } all i did it play with it but ty for helping :-) |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|