Hello again I am in need of a bit of help with this I'm trying to get the rainbow steed to have a backpack like the pack mule does. I did try a few things and welp it didn't go to well for me any help would be great. Merry Christmas to all
thats what I posted above I have a pack mule just not sure how to get the backpack on the rainbow horse mount in the script.you can look over this script, it's for a "horse" that has a pack.
Yes trying to keep the rez dbbl click of the rainbow I tried a few diff things but still no good LOL and I want to thank you for your help in this.Just change the ID's on the packmule, or are you trying to keep the double click function of the rainbow steed?
That would be AWSOME and thanks. Yea I tried a few diff routs lol hit a brick wall with it.ah yeah, would have to loop it into the context menu, haven't played with those yet. I should have some time this weekend I can play with it if you haven't gotten an answer by then
not looking for the hue changing part of it Just looking for the rainbow mounts to have a backpack like the pack mule.You could have it constantly changing hues... IDK how but it probably easy. You can do it with the [hue command so no reason why a script can't cause it to change hue constantly. maybe some Russian can do it for you. .
Container pack = Backpack;
if (pack != null)
pack.Delete();
pack = new StrongBackpack();
pack.Movable = false;
AddItem(pack);
I did that and it don't work loloh. hmmm. im not sure but... ok...
Under mintameskill
C#:Container pack = Backpack; if (pack != null) pack.Delete(); pack = new StrongBackpack(); pack.Movable = false; AddItem(pack);
might not compile but i got to go to sleep
I'm on PUB 54 serveUO and normaly I can figure things out but this is tricky lolWhat error u got ill figure it out when i wake up
using System;
using Server.Mobiles;
namespace Server.Mobiles
using System;
using System.Collections.Generic;
using Server.ContextMenus;
using Server.Items;
namespace Server.Mobiles
using System;
using Server.Mobiles;
using System.Collections.Generic;
using Server.ContextMenus;
using Server.Items;
namespace Server.Mobiles
#region Pack Animal Methods
public override bool OnBeforeDeath()
{
if (!base.OnBeforeDeath())
return false;
PackAnimal.CombineBackpacks(this);
return true;
}
public override DeathMoveResult GetInventoryMoveResultFor(Item item)
{
return DeathMoveResult.MoveToCorpse;
}
public override bool IsSnoop(Mobile from)
{
if (PackAnimal.CheckAccess(this, from))
return false;
return base.IsSnoop(from);
}
public override bool OnDragDrop(Mobile from, Item item)
{
if (CheckFeed(from, item))
return true;
if (PackAnimal.CheckAccess(this, from))
{
AddToBackpack(item);
return true;
}
return base.OnDragDrop(from, item);
}
public override bool CheckNonlocalDrop(Mobile from, Item item, Item target)
{
return PackAnimal.CheckAccess(this, from);
}
public override bool CheckNonlocalLift(Mobile from, Item item)
{
return PackAnimal.CheckAccess(this, from);
}
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
base.GetContextMenuEntries(from, list);
PackAnimal.GetContextMenuEntries(this, from, list);
}
#endregion
wow Im lost I am not that good at this lol. Maybe ship me the one you did that way I can see it more better in the differnts? Err ok I tried that and it did not work here is the script I did and still no backpackOk so that error means its missing a namespace... at the top of the script it has a bunch of "using" this and that. You need to put in the right one into the script so that the code will compile.
SO this is the rainbow savage ridgeback...
And this is the default Beetle where i got that code so its got the namespaces at the top u need...C#:using System; using Server.Mobiles; namespace Server.Mobiles
As you can see the beetle is using more namespaces so you need to add them to the rainbow mount to make it work... so at the top of the rainbow mount replace it like this...C#:using System; using System.Collections.Generic; using Server.ContextMenus; using Server.Items; namespace Server.Mobiles
It compiled no problem for me after that.C#:using System; using Server.Mobiles; using System.Collections.Generic; using Server.ContextMenus; using Server.Items; namespace Server.Mobiles
So what you want to do is add all of the code from beetle.cs. I did this and it still wasnt working but this is what you must do for it to behave correctly. its not hard takes little time with notepad ++ and the find feature and compare feature. Most imporatant is to add this code in its entirety... Copied from beetle.cs...
C#:#region Pack Animal Methods public override bool OnBeforeDeath() { if (!base.OnBeforeDeath()) return false; PackAnimal.CombineBackpacks(this); return true; } public override DeathMoveResult GetInventoryMoveResultFor(Item item) { return DeathMoveResult.MoveToCorpse; } public override bool IsSnoop(Mobile from) { if (PackAnimal.CheckAccess(this, from)) return false; return base.IsSnoop(from); } public override bool OnDragDrop(Mobile from, Item item) { if (CheckFeed(from, item)) return true; if (PackAnimal.CheckAccess(this, from)) { AddToBackpack(item); return true; } return base.OnDragDrop(from, item); } public override bool CheckNonlocalDrop(Mobile from, Item item, Item target) { return PackAnimal.CheckAccess(this, from); } public override bool CheckNonlocalLift(Mobile from, Item item) { return PackAnimal.CheckAccess(this, from); } public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list) { base.GetContextMenuEntries(from, list); PackAnimal.GetContextMenuEntries(this, from, list); } #endregion
After I did that I enabled the backpack in the context menu... Dont forget to copy all of the code over into the right spots and then also the namespaces at the top for that specific error message you got...
We use essential cookies to make this site work, and optional cookies to enhance your experience.