|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
ConnectUO Creator
Join Date: Jan 2004
Age: 28
Posts: 4,952
|
Ok, very simple, every wanna check what a player has in his stable. Well I have, yet never knew the command for it( or if one existed ). Anyway I recently saw a post on one of the forums of someone wondering how to do this, so i through this together. I am not going to support this with further update. It is what it is and will not be improved on cause frankly I don't have time. I wil l however try to fix crash related bugs if they occur.
Update 1.01 -Fixed a crash bug. Installation: The installation is very simple. 1. Unzip the package, and extract it to somewhere in your Scripts folder. 2. Reboot server. 3. Type [viewstabled and click on a target. Known Bugs: None at the moment. Things to know: There are a few flaws that will happen from using this command. It does not pay attention to the follower count on the specified player( this was done on purpose but you need to know it ). If you open the gump and click on one of the pets it will be sent to the player that owns it, thus upping the count of followers they have so be aware of this. Hope you like it.
__________________
Jeff Boulanger ConnectUO - Creator/Core Developer Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO Last edited by Jeff; 02-02-2006 at 11:58 AM. |
|
|
|
|
#2 (permalink) |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
Code:
public override void OnResponse( NetState sender, RelayInfo info )
{
int index = info.ButtonID - 1;
BaseCreature pet = ( BaseCreature )m_List[index];
pet.SetControlMaster( m_Targeted );
if( pet.Summoned )
pet.SummonMaster = m_Targeted;
pet.ControlTarget = m_Targeted;
pet.ControlOrder = OrderType.Follow;
pet.MoveToWorld( m_Targeted.Location, m_Targeted.Map );
pet.IsStabled = false;
m_Targeted.Stabled.Remove( pet );
}
Code:
if( m_Targeted.Followers + pet.ControlSlots > m_Targeted.FollowersMax )
{
m_Targeted.SendMessage("You cannot un-stable this pet, because you don't have enough control slots to do so!");
return;
}
|
|
|
|
|
#3 (permalink) | |
|
ConnectUO Creator
Join Date: Jan 2004
Age: 28
Posts: 4,952
|
Quote:
thanks for the reply tho.
__________________
Jeff Boulanger ConnectUO - Creator/Core Developer Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO |
|
|
|
|
|
#5 (permalink) | |
|
ConnectUO Creator
Join Date: Jan 2004
Age: 28
Posts: 4,952
|
Quote:
__________________
Jeff Boulanger ConnectUO - Creator/Core Developer Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO |
|
|
|
|
|
#6 (permalink) |
|
Forum Novice
Join Date: Feb 2005
Location: Upstate NY Ithaca
Age: 39
Posts: 146
|
First Time I tried using this it crashed the server. It crashes right when you right click the gump to close it.
Heres the crash report in debug mode. Code:
Server Crash Report =================== Operating System: Microsoft Windows NT 5.1.2600.0 .NET Framework: 1.1.4322.2032 Time: 2/1/2006 6:29:54 AM Mobiles: 20921 Items: 371802 Clients: - Count: 2 Exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.ArrayList.get_Item(Int32 index) at Server.StableHelper.StabledGump.OnResponse(NetState sender, RelayInfo info) in c:\Program Files\RUNUO\RunUO Software Team\RunUO 1.0\Scripts\Custom\ALL New Stuff\StableHelper\StableHelper.cs:line 98 at Server.Network.PacketHandlers.DisplayGumpResponse(NetState state, PacketReader pvSrc) at Server.Network.MessagePump.HandleReceive(NetState ns) at Server.Network.MessagePump.Slice() at Server.Core.Main(String[] args) |
|
|
|
|
#7 (permalink) | |
|
ConnectUO Creator
Join Date: Jan 2004
Age: 28
Posts: 4,952
|
Quote:
__________________
Jeff Boulanger ConnectUO - Creator/Core Developer Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO |
|
|
|
|
|
#8 (permalink) |
|
Forum Newbie
Join Date: Dec 2005
Age: 45
Posts: 63
|
thanks for another good script but i do have a question for you sorious i dont know what time you have but im working on a quest and have hit a snag and was woundering if you could help me with it contact me by email and ill explain it all if you have the time thanks
|
|
|
|
|
#9 (permalink) | |
|
Forum Expert
|
Quote:
__________________
The blood that flows through me is not my own. The blood is from the past, not my own. The blood that leads my life is not my own. The blood is my strength, I'm not alone. |
|
|
|
|
|
#10 (permalink) | |
|
ConnectUO Creator
Join Date: Jan 2004
Age: 28
Posts: 4,952
|
Quote:
__________________
Jeff Boulanger ConnectUO - Creator/Core Developer Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO |
|
|
|
|
|
#11 (permalink) |
|
Forum Novice
Join Date: Feb 2005
Location: Upstate NY Ithaca
Age: 39
Posts: 146
|
might be a good idea to update the script in the first post.
__________________
http://www.hardradio.com Ever been in the mens bathroom and looked over to see if the guy next you has a bigger post count than you? |
|
|
|
|
#12 (permalink) | |
|
ConnectUO Creator
Join Date: Jan 2004
Age: 28
Posts: 4,952
|
Quote:
![]()
__________________
Jeff Boulanger ConnectUO - Creator/Core Developer Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO |
|
|
|
|
|
#13 (permalink) | |
|
Forum Novice
Join Date: Feb 2005
Location: Upstate NY Ithaca
Age: 39
Posts: 146
|
Quote:
__________________
http://www.hardradio.com Ever been in the mens bathroom and looked over to see if the guy next you has a bigger post count than you? |
|
|
|
|
|
#14 (permalink) |
|
Forum Expert
|
The way it is fixed is quite complicated in vain.
Simply do Code:
if( info.ButtonID == 0 )
return;
int index = info.ButtonID - 1;
// rest of the code...
__________________
The blood that flows through me is not my own. The blood is from the past, not my own. The blood that leads my life is not my own. The blood is my strength, I'm not alone. |
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|