Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 08-15-2004, 11:51 PM   #1 (permalink)
 
Join Date: Jul 2004
Age: 17
Posts: 39
Default BaseMount

Is it possible to add the veriable in basemount.cs to the playermobile? I want to be able to change my bodymod or whatever and be able to have players mount me. I want to use it as a joke. Can it be done? and if so how?
joshma2 is offline   Reply With Quote
Old 08-15-2004, 11:54 PM   #2 (permalink)
 
Join Date: Mar 2004
Location: Treasure Island, FL
Age: 38
Posts: 548
Send a message via ICQ to Talrol Send a message via MSN to Talrol
Default

you may want to take a look at the ridable drake/bear scripts and see what they did...it is possible however you must edit and offer for download another file (I think it's called verdata.mul)
Talrol is offline   Reply With Quote
Old 08-16-2004, 12:12 AM   #3 (permalink)
 
Join Date: Jul 2004
Age: 17
Posts: 39
Default

why would I new another verdata? I ment I could change my character into a horse and go from there. A horse already has the riding animation.
joshma2 is offline   Reply With Quote
Old 08-16-2004, 01:21 AM   #4 (permalink)
 
Join Date: Jul 2004
Age: 17
Posts: 39
Default

ok im clue less. I tried to do this but I failed. Heh. Can I get a bit more help with doing the script part of it?
joshma2 is offline   Reply With Quote
Old 08-16-2004, 01:36 AM   #5 (permalink)
 
Join Date: Mar 2004
Location: Treasure Island, FL
Age: 38
Posts: 548
Send a message via ICQ to Talrol Send a message via MSN to Talrol
Default

if I'm not mistaken (and I very well could be in this case) in order to do this you'd have to make your character a base mount...you can't just change the graphic of your character and it become that. So basically you'd have to make your PlayerMobile a BaseMount or create a new class that's BaseMount and PlayerMobile through multiple inheritance, it's possible, but extremely complicated to explain in simple terms, and beings how this isn't something I would personally care for on my shard, not something that I'm personally willing to spend time actually trying to script. If you would like to give it a shot and then show us what you come up with, then I'm sure you will get a wealth of help as what you are attempting should be possible.

On a side note that I just considered, you may need to create a new mount class based off base mount as once a base mount is mounted it more or less becomes part of the player mobile until it's unmounted. Either way it should be possible, but will most definately not be easy.
Talrol is offline   Reply With Quote
Old 08-16-2004, 01:43 AM   #6 (permalink)
 
Join Date: Jul 2004
Age: 17
Posts: 39
Default

Im just trying to get the veriable in my playermobile or somehow add it to my possess script. wouldend adding the veriable to the playermobile be easier then adding the entire basemount?
joshma2 is offline   Reply With Quote
Old 08-16-2004, 02:18 AM   #7 (permalink)
 
Join Date: Mar 2004
Location: Treasure Island, FL
Age: 38
Posts: 548
Send a message via ICQ to Talrol Send a message via MSN to Talrol
Default

it's more than just a variable in this case...you'll need to make yourself mountable which means casting your playermobile as a base mount as well as a mobile, if I'm not mistaken if you just change the playermobile class to inherite basemount it will inherite the mobile class as well...I'm not currently looking at the runuo docs to verify this however.
Talrol is offline   Reply With Quote
Old 08-16-2004, 02:21 AM   #8 (permalink)
 
Join Date: Jul 2004
Age: 17
Posts: 39
Default

how can I set my PM to inherite the basemount? I use a customplayermobile as well.
joshma2 is offline   Reply With Quote
Old 08-16-2004, 02:35 AM   #9 (permalink)
 
Join Date: Mar 2004
Location: Treasure Island, FL
Age: 38
Posts: 548
Send a message via ICQ to Talrol Send a message via MSN to Talrol
Default

This is getting into me actually doing the coding for you, and as I stated I am not willing to do this. If you do not understand inheritance or multiple inheritance then I highly recommend you read some of the tutorials on oop programming particularly those pertaining to C#. Once you have done so and make an attempt at this and then require help I will more than happy to look at the code YOU write and help you modify it to work.

I don't mean to sound like an ass here, but I really am not willing to write requested scripts and this post is bordering on you requesting someone else to write the script for you.
Talrol is offline   Reply With Quote
Old 08-16-2004, 03:42 AM   #10 (permalink)
 
Join Date: Jul 2004
Age: 17
Posts: 39
Default

I under stand inheritance but I dont under stand multiple inheritance. I tried but I got a error trying.
joshma2 is offline   Reply With Quote
Old 08-16-2004, 06:49 AM   #11 (permalink)
 
Join Date: Mar 2004
Location: Treasure Island, FL
Age: 38
Posts: 548
Send a message via ICQ to Talrol Send a message via MSN to Talrol
Default

Show us what you tried and post all errors you received. That's the only way we can see what you're trying to do with it.
Talrol is offline   Reply With Quote
Old 08-16-2004, 07:35 AM   #12 (permalink)
 
Join Date: Jul 2004
Age: 17
Posts: 39
Default

lets see. It looks like this because I use a custom playermobile


Code:
 Ancient
        }

	public class CustomPlayerMobile : PlayerMobile
{

	private class CustomPlayerMobile : BaseMount
	

		#region Vampires
I tried different variations of this but none worked. My C# book says nothing about this so im lost.

Errors are

Error: Scripts\Mobiles\CustomPlayerMobile.cs CS1514 (Line 57, column 46) { Expected
Error: Scripts\Mobiles\CustomPlayerMobile.cs CS1513 (Line 839 , column 2) } expected
Error: Scripts\Mobiles\CustomPlayerMobile.cs CS0542 (Line 57, column 16) 'CustomPlayerMobile': member names cannon be the same as their enclosing type

Line 57 =
private class CustomPlayerMobile : BaseMount

Line 839 = } (End of the script)

There.
joshma2 is offline   Reply With Quote
Reply

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