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
 

Attachments

  • PackMule.cs
    4 KB · Views: 5
  • RainbowSteed.cs
    6.2 KB · Views: 6
Just change the ID's on the packmule, or are you trying to keep the double click function of the rainbow steed?
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.
 
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
 
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. .
 
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
That would be AWSOME :) and thanks. Yea I tried a few diff routs lol hit a brick wall with it.
Post automatically merged:

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. .
not looking for the hue changing part of it Just looking for the rainbow mounts to have a backpack like the pack mule.
 
oh. 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
 
What error u got ill figure it out when i wake up
I'm on PUB 54 serveUO and normaly I can figure things out but this is tricky lol
Errors:
+ Custom/RAINBOW EDITED/RainbowPackMule.cs:
CS0246: Line 73: The type or namespace name 'Container' could not be found (
are you missing a using directive or an assembly reference?)
CS0246: Line 78: The type or namespace name 'StrongBackpack' could not be fo
und (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

Attachments

  • RainbowPackMule.cs
    6.4 KB · Views: 0
Ok 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...
C#:
using System;
using Server.Mobiles;

namespace Server.Mobiles
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 System.Collections.Generic;
using Server.ContextMenus;
using Server.Items;

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 Server.Mobiles;
using System.Collections.Generic;
using Server.ContextMenus;
using Server.Items;

namespace Server.Mobiles
It compiled no problem for me after that.

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...
 
Ok 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...
C#:
using System;
using Server.Mobiles;

namespace Server.Mobiles
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 System.Collections.Generic;
using Server.ContextMenus;
using Server.Items;

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 Server.Mobiles;
using System.Collections.Generic;
using Server.ContextMenus;
using Server.Items;

namespace Server.Mobiles
It compiled no problem for me after that.

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...
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 backpack :(
Post automatically merged:

I got it :) ty ty ty so so so much :)
 

Attachments

  • RainbowPackMule.cs
    6.5 KB · Views: 4
Last edited:
Back