Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 05-20-2006, 10:47 PM   #1 (permalink)
Forum Novice
 
Join Date: Oct 2003
Location: Istanbul
Age: 23
Posts: 103
Send a message via MSN to Gordack
Default Mypets Command [My First Script]

Description: Teleports all pets of a player to his location. [Default: In 30 Seconds]
AccessLevel: Player
Usage: [Mypets
Installation
: Drop "Mypets.cs" file into your custom script folder.
Why I coded: I think most people are looking for this script.

Things to Edit:

Open AnimalTrainer.cs:
Code:
-----[ FIND ]-----
public void BeginStable( Mobile from )
        {

-----[ AFTER, ADD ]-----
if ( from.Frozen )                         
            return;
-----[ FIND ]-----
public override bool HandlesOnSpeech( Mobile from )
        {

-----[ AFTER, ADD ]-----
if ( from.Frozen )
     return false;


Open BaseMount.cs
Code:
-----[ FIND ]-----
public override void OnDoubleClick( Mobile from )
        {

-----[ AFTER, ADD ]-----
if ( from.Frozen )                         
return;
Attached Files
File Type: zip Mypets.zip (1.7 KB, 83 views)
__________________
If you really want something in this life, you have to work for it. Now, quiet! they're about to announce the lottery numbers.

Last edited by Gordack; 05-20-2006 at 11:58 PM.
Gordack is offline  
Old 05-21-2006, 01:48 AM   #2 (permalink)
Account Terminated
 
Join Date: May 2006
Location: Arena 51
Posts: 136
Send a message via MSN to *C*O*B*
Thumbs up Nice Script

Hey Good Job for your first script
Keep up the Work
*C*O*B* is offline  
Old 05-21-2006, 06:46 AM   #3 (permalink)
Forum Expert
 
Liacs's Avatar
 
Join Date: Mar 2004
Location: Belgium / Germany
Age: 31
Posts: 1,036
Send a message via MSN to Liacs
Default

Nice idea!

Thanks for sharing!

Liacs
__________________
;)My C# Bookshelf (carpented by Soultaker);)

BTW: Please ask questions in the adequat forum and not on a private message! Otherwise nobody can learn from it!
Liacs is offline  
Old 05-21-2006, 10:16 AM   #4 (permalink)
Forum Novice
 
Join Date: Oct 2003
Location: Istanbul
Age: 23
Posts: 103
Send a message via MSN to Gordack
Default

Quote:
Originally Posted by *C*O*B*
Hey Good Job for your first script
Keep up the Work

Quote:
Originally Posted by Liacs
Nice idea!

Thanks for sharing!

Liacs


Thank you all.
__________________
If you really want something in this life, you have to work for it. Now, quiet! they're about to announce the lottery numbers.
Gordack is offline  
Old 05-21-2006, 11:24 PM   #5 (permalink)
1
Account Terminated
 
1's Avatar
 
Join Date: Apr 2003
Posts: 41
Default

Good script but you can already do this if your staff its called [getfollowers you could have just changed a few things in it alot less work
1 is offline  
Old 05-22-2006, 01:28 AM   #6 (permalink)
Forum Expert
 
Join Date: Sep 2005
Location: UK
Age: 29
Posts: 781
Default

Thanks for the post. ive updated you info a little if thats ok. thanks
Code:
This Script is coded by Gordack.

Installation: Drop "Mypets.cs" file into your custom script folder.

Things to edit:

AnimalTrainer.cs: - RunUO 1.0\Scripts\Mobiles\Vendors\NPC

-----[ FIND ]-----
public void BeginStable( Mobile from )
        {

-----[ AFTER, ADD ]-----
if ( from.Frozen )                        
                 return;

-----[ FIND ]-----
public override bool HandlesOnSpeech( Mobile from )
        {

-----[ AFTER, ADD ]-----
if ( from.Frozen )
                    return false;



BaseMount.cs - RunUO 1.0\Scripts\Mobiles\Animals\Mounts

-----[ FIND ]-----
public override void OnDoubleClick( Mobile from )
        {

-----[ AFTER, ADD ]-----

    if ( from.Frozen )                        
    return;
--------------------------

also i added this part and i think i did it wrong. thanks again for any help

Code:
		public override bool HandlesOnSpeech( Mobile from )
		{
                if ( from.Frozen )
                                 return false;

			return true;
		}

		public override void OnSpeech( SpeechEventArgs e )
__________________
*+ MW Admin Naturescorpse +*
WonderlandADnc is offline  
Old 05-22-2006, 09:00 AM   #7 (permalink)
Forum Novice
 
Join Date: Oct 2003
Location: Istanbul
Age: 23
Posts: 103
Send a message via MSN to Gordack
Default

Quote:
Originally Posted by WonderlandADnc
Thanks for the post. ive updated you info a little if thats ok. thanks
[code]


also i added this part and i think i did it wrong. thanks again for any help

Code:
        public override bool HandlesOnSpeech( Mobile from )
        {
                if ( from.Frozen )
                                 return false;

            return true;
        }

        public override void OnSpeech( SpeechEventArgs e )
Exactly, this is true. If the player is frozen, it will return false but if not return true. What you did in this part is true. Try it.
__________________
If you really want something in this life, you have to work for it. Now, quiet! they're about to announce the lottery numbers.

Last edited by Gordack; 05-22-2006 at 09:03 AM.
Gordack is offline  
 

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