|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Novice
Join Date: Jul 2004
Location: IL, USA
Posts: 581
|
This script is a small gump with 15 buttons for driving a boat.
12 directional buttons, stop button, anchor up and down. The script was written to also be a minor gold sink. Each time a player pushes a button, it comsumes 2 GP from their backpack. With no gold in backpack, a message is displayed and the gump closes. Drop script into custom folder. [add tillerbell or place on a vendor. Double click the bell in backpack to bring up gump. The gump stays up until you right click the gump. Hope you enjoy it. Any questions or comments are welcome. Note: This does not work on older versions of RunUO. This was created on version 1.0.0 |
|
|
|
|
#4 (permalink) |
|
Forum Novice
Join Date: Jul 2004
Location: IL, USA
Posts: 581
|
Edit the amount of gold to be consumed on this line. Change from 2 to some other amount.
if ( pack != null && pack.ConsumeTotal( typeof( Gold ), 2 ) ) If you want no gold required, change the line to look like this if ( pack != null ) // && pack.ConsumeTotal( typeof( Gold ), 2 ) ) I did not consider making it so just the owner of the boat can use it because many ppl have more than 1 person on the boat and they all give commands to the tillerman. Even if the tillerbell would only work for the owner, anyone can still give the tillerman commands by typing them. |
|
|
|
|
#9 (permalink) |
|
Newbie
|
Hello,
I was hoping to try your Script for the Tiller Bell. I have added it twice to my shard and have gotten these errors twice: - Error: Scripts\Added Customs\TillerBell.cs: CS0117: (line 98, column 20) 'Ser ver.Multis.BaseBoat' does not contain a definition for 'FindBoatAt' - Error: Scripts\Added Customs\TillerBell.cs: CS0117: (line 150, column 6) 'Ser ver.Multis.BaseBoat' does not contain a definition for 'StartTurn' - Error: Scripts\Added Customs\TillerBell.cs: CS0117: (line 156, column 6) 'Ser ver.Multis.BaseBoat' does not contain a definition for 'StartTurn' Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again. I am just learning a bit about scripting, and some things confuse me still. I would appreciate it if you could help me with this. Thank you Peg/PaggyLee |
|
|
|
|
#11 (permalink) | |
|
Forum Novice
Join Date: Aug 2004
Location: Alba
Age: 38
Posts: 185
|
Quote:
http://runuo.com/forum/showthread.php?t=56751 BTW very nice looking 2 scripts i will try them as soon as i sort out my test server lol |
|
|
|
|
|
#15 (permalink) |
|
Forum Novice
Join Date: Jul 2004
Location: IL, USA
Posts: 581
|
The 2 scripts I have submitted are stand alone. FindBoat.cs is not required for TillerBell.cs to work. But this is what I found. There is no reference to FindBoatAt method in older RunUO version. It appears that FindBoatAt method was added in version 1.0.0 to support Serpent Pillar. So you need to upgrade to the most recient version of the server for the TillerBell to work. Sorry. But thanks for pointing that out to me. I will edit the post to say for Version 1.0.0.
|
|
|
|
|
#17 (permalink) | |
|
Forum Novice
Join Date: Aug 2004
Location: Alba
Age: 38
Posts: 185
|
Quote:
|
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|