Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 07-03-2008, 05:01 PM   #1 (permalink)
Forum Expert
 
Join Date: May 2004
Age: 28
Posts: 281
Default Looting all not 1 need help

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 is there a Scripts for domes like it show all the codes and all that easy to read and do.......

or can someone show me the code how it is to make that work that will help too

anyway ty
Rob24 is offline   Reply With Quote
Old 07-03-2008, 10:05 PM   #2 (permalink)
Master of the Internet
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,011
Send a message via Yahoo to Lord_Greywolf
Default

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 ..... :)
Lord_Greywolf is online now   Reply With Quote
Old 07-03-2008, 10:28 PM   #3 (permalink)
Forum Expert
 
Join Date: May 2004
Age: 28
Posts: 281
Default

Quote:
Originally Posted by Lord_Greywolf View Post
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
ok sorry for that but I really dont understand that tool at all I have read it and tryed it and nothing is working on that tool and I where trying to get help and all I get is a tool now if that is all I am going to get is a tool then ok....


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
Rob24 is offline   Reply With Quote
Old 07-04-2008, 01:58 AM   #4 (permalink)
Forum Expert
 
Soteric's Avatar
 
Join Date: Aug 2006
Location: Russia, Rostov-on-Don
Posts: 458
Send a message via ICQ to Soteric
Default

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.
Soteric is offline   Reply With Quote
Old 07-06-2008, 04:09 PM   #5 (permalink)
Forum Expert
 
Join Date: May 2004
Age: 28
Posts: 281
Default

ok i think I understand a lil i did a code and I need info of this see if I did it right or not


Code:
public override on kill loot corpses {get { return true; } }


let me know ty
Rob24 is offline   Reply With Quote
Old 07-07-2008, 01:49 AM   #6 (permalink)
Forum Expert
 
Soteric's Avatar
 
Join Date: Aug 2006
Location: Russia, Rostov-on-Don
Posts: 458
Send a message via ICQ to Soteric
Default

Keep learning. The line you wrote isn't a C# code at all
Soteric is offline   Reply With Quote
Old 07-08-2008, 01:01 PM   #7 (permalink)
Forum Expert
 
Join Date: May 2004
Age: 28
Posts: 281
Default

Quote:
Originally Posted by Soteric View Post
Keep learning. The line you wrote isn't a C# code at all
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
Rob24 is offline   Reply With Quote
Old 07-08-2008, 01:46 PM   #8 (permalink)
Master of the Internet
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,011
Send a message via Yahoo to Lord_Greywolf
Default

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 ..... :)
Lord_Greywolf is online now   Reply With Quote
Old 07-09-2008, 12:16 PM   #9 (permalink)
Forum Expert
 
Join Date: May 2004
Age: 28
Posts: 281
Default

Quote:
Originally Posted by Lord_Greywolf View Post
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


well I did this public override OnKillLootCorpses {get { return true; } }

all i did it play with it but ty for helping :-)
Rob24 is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5