|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Join Date: Jul 2004
Age: 17
Posts: 39
|
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?
|
|
|
|
|
|
#5 (permalink) |
|
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. |
|
|
|
|
|
|
#7 (permalink) |
|
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.
|
|
|
|
|
|
|
#9 (permalink) |
|
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. |
|
|
|
|
|
|
#12 (permalink) |
|
Join Date: Jul 2004
Age: 17
Posts: 39
|
lets see. It looks like this because I use a custom playermobile
Code:
Ancient
}
public class CustomPlayerMobile : PlayerMobile
{
private class CustomPlayerMobile : BaseMount
#region Vampires
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|