daat99 said:If you think about any improvments please let me know
.
That's something that will require this simple script to be transformed into a script package.mark01970 said:Well, you asked if we thought about any improvements to let you know.
How about making the [claim script automatically pull gold and gems off of a corpse? ..or better still, make it customizable so it will automatically pull whatever the admin sets in a config file.
I've been trying to come up with this on my own, but am still learning and can not track down the variables that are used for target corpse items.
Thanks,
Mark
I'm sorry, but I disagree. It would be quite simple to do this.daat99 said:That's something that will require this simple script to be transformed into a script package.
Care to share your knowledge please?Joeku said:I'm sorry, but I disagree. It would be quite simple to do this.
...
Type[] types = new Type[n]{ Type1, Type2, Typen };
...
...
ArrayList list = new ArrayList( Corpse.Items.Count );
foreach( Item i in Corpse.Items )
{
if( Config.Types.Contains( i.GetType() ) )
list.Add( i );
}
for( int i = 0; i < list.Count; i++ )
from.Backpack.AddItem( i );
...
Hmm, that's interesting.A_Li_N said:Config:
Code:... Type[] types = new Type[n]{ Type1, Type2, Typen }; ...
Claim:
Code:... foreach( Item i in Corpse.Items ) { if( Config.Types.Contains( i.GetType() ) ) from.Backpack.AddItem( i ); } ...
Or something to that extent
Shouldn't be extremely hard...Find where it calculates the amount of reward and put a skill check in there for the Forensics skill.chocomog said:Fantastic script. I was thinking and wondering how hard would it be to make this work with the forensic skill? If they had higher forensic they would get a increase in the reward.
You probably placed it in the wrong directory.paulusmaximus said:i put it in scripts\customs
load the shard up
try [claim
says its not a valid command
tomm_60421 said:What about making it so you dont have to target the corpse you can just [claim and it will pick up any of you kills within a 3-5 tile radius or something like that....personaly I think that would be awsome then
IPooledEnumerable eable = from.Map.GetItemsInRange(from.Location, 3);
ArrayList Other = new ArrayList();
foreach (Item check in eable)
{
if (check != null)
{
if (check is Corpse)
{
Other.Add(check);
}
}
}
eable.Free();
foreach (Item check in Other)
{
Corpse c = (Corpse)check;
if ((c.Owner is PlayerMobile)) { from.SendMessage("Hey, don't try to trick me, EVER!!!"); return; }
else
That'll require a bit of a rewrite to the script (which I don't realy have time to do atm).tomm_60421 said:What about making it so you dont have to target the corpse you can just [claim and it will pick up any of you kills within a 3-5 tile radius or something like that....personaly I think that would be awsome then