RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

animated wishing well

animated wishing well

As ask for in the script support section :)

This wishing well should work with most versions of RunUo but only tested with svn 162

also i am not sure if any custom art was used, but i do not belive so, but it is mostly to show how to get animations to appear in a wishing well and to show how to take the gold coin from their pack when they do
and how the "owner" can get the gold from it (or staff to empty it)

just add it to your custom scripts and add it in how ever you want

to use it, just double click it anyplace on the water :)

it is a great learning tool, if nothing else



edit - the animated water part is custom, will have to change that itemid to something else then - sorry

edited again - add in a rar file that has the animated water for those that want it
 

Attachments

  • RoseBrickWishingWellAddon.cs
    6.1 KB · Views: 169
  • water squirt.rar
    44.1 KB · Views: 147

milva

Sorceror
Thanks for posting- love that custom water!! Could of used that for some of the fountains I have made :p
 
I have edited the 1st post to include the graphics for those that wish to add the animated water tiles from there (the pooring water)
you still have to add them into your art, tiledata and animationdata files
 

milva

Sorceror
Thank You so much Lord_Greywolf- we have added some custom art and clothes, hair etc. I can have some fun with this custom water!:p Of course the wishing well is great also!
 

Macil

Sorceror
What segments of code need to be copied to add the functionality of this script into the standard fountain graphics that come with the game? I love your custom well but I'm having trouble finding a place large enough on my server to place it in some areas, so I'd like to use both styles.
 
the on componentese section
but the animation would be wrong, because statndard fountains do not have just a "water" sections, they are combined with the stone, etc

you could di it for and component used (remove id check) and not play the animation, and just have it take the money, etc

other stuff should be fairly obvious (like name, display and such)
 

Macil

Sorceror
Lord_Greywolf;840240 said:
the on componentese section
but the animation would be wrong, because statndard fountains do not have just a "water" sections, they are combined with the stone, etc

you could di it for and component used (remove id check) and not play the animation, and just have it take the money, etc

other stuff should be fairly obvious (like name, display and such)

Couldn't I just copy it straight from this section on the StoneFountainAddon.cs script, and overwrite it?

This part:
Code:
	          {3224, -2, -4, 0}, {65, -2, -2, 0}, {3204, 1, 4, 0}
			, {1303, 3, 2, 0}, {3203, -1, 4, 0}, {6041, -1, -1, 0}
			, {6042, 1, 0, 0}, {6039, 2, 1, 0}, {6040, 2, -1, 0}
			, {6041, 2, 2, 0}, {6042, 0, -1, 0}, {6040, 1, 2, 0}
			, {6042, 0, -2, 0}, {67, 2, -1, 0}, {6040, -3, 1, 0}
			, {6039, -1, -3, 0}, {6041, 2, 0, 0}, {6040, 0, 2, 0}
			, {3334, -1, 1, 3}, {63, -4, -1, 0}, {6041, -1, 2, 0}
			, {6039, 1, -3, 0}, {3210, 1, -4, 1}, {6041, 2, -2, 0}
			, {6041, -1, 0, 0}, {3204, 4, 3, 0}, {6039, 1, 1, 0}
			, {67, 2, -3, 0}, {1303, 3, -2, 0}, {66, -3, 1, 0}
			, {3338, 1, -3, 1}, {6041, -1, -2, 0}, {6039, 0, 0, 0}
			, {6040, 1, -2, 0}, {3224, 3, 4, 0}, {3210, -3, 2, 0}
			, {3210, 4, -3, 0}, {3203, 3, 4, 0}, {1303, 3, -1, 0}
			, {1303, 3, 1, 0}, {1303, 4, 1, 0}, {3203, 2, -4, 0}
			, {3203, 0, 4, 0}, {3203, 1, 4, 0}, {3203, 1, -4, 0}
			, {3203, 3, -4, 0}, {3272, -4, -3, 0}, {3203, 3, -3, 0}
			, {3339, -1, 1, 1}, {3203, -3, -2, 0}, {3203, -2, -2, 0}
			, {3203, -2, -3, 0}, {3203, -3, 2, 0}, {3203, -2, 2, 0}
			, {3203, 2, 4, 0}, {3203, 4, -2, 0}, {3203, -2, -4, 0}
			, {1303, 4, -1, 0}, {3336, 0, -3, 1}, {81, -4, 0, 10}
			, {81, -2, -2, 5}, {3203, 4, 2, 0}, {3203, 0, -4, 0}
			, {1303, 4, 0, 0}, {81, -2, 2, 5}, {6040, 0, -3, 0}
			, {1303, 3, 0, 0}, {3272, -4, 2, 0}, {65, 2, 3, 0}
			, {67, 2, 1, 0}, {6040, -1, 1, 0}, {67, 2, 2, 0}
			, {6039, -1, 3, 0}, {66, -3, -2, 0}, {6039, 1, 3, 0}
			, {68, -2, -4, 0}, {66, -2, 1, 0}, {66, 1, 3, 0}
			, {66, 0, 3, 0}, {66, -1, 3, 0}, {6042, 2, -3, 0}
			, {6039, 2, 3, 0}, {3224, -2, 4, 0}, {3203, 3, 3, 0}
			, {3224, 3, -4, 0}, {67, -2, -3, 0}, {66, 2, -4, 0}
			, {67, -2, 2, 0}, {66, -1, -4, 0}, {13427, 0, 1, 0}
			, {63, -4, 0, 0}, {6040, -2, 1, 0}, {66, 1, -4, 0}
			, {3203, -2, 4, 0}, {3203, -1, -4, 0}, {67, 2, -2, 0}
			, {67, -2, 3, 0}, {3203, -2, 3, 0}, {6039, 0, 3, 0}
			, {66, 0, -4, 0}, {67, 2, 0, 0}, {63, -4, 1, 0}
			, {13425, 1, -1, 0}, {64, -4, -2, 0}
		};

To this:
Code:
	        AddComponent( new AddonComponent( itemID++ ), -2, +1, 0 );
			AddComponent( new AddonComponent( itemID++ ), -1, +1, 0 );
			AddComponent( new AddonComponent( itemID++ ), +0, +1, 0 );
			AddComponent( new AddonComponent( itemID++ ), +1, +1, 0 );

			AddComponent( new AddonComponent( itemID++ ), +1, +0, 0 );
			AddComponent( new AddonComponent( itemID++ ), +1, -1, 0 );
			AddComponent( new AddonComponent( itemID++ ), +1, -2, 0 );

			AddComponent( new AddonComponent( itemID++ ), +0, -2, 0 );
			AddComponent( new AddonComponent( itemID++ ), +0, -1, 0 );
			AddComponent( new AddonComponent( itemID++ ), +0, +0, 0 );

			AddComponent( new AddonComponent( itemID++ ), -1, +0, 0 );
			AddComponent( new AddonComponent( itemID++ ), -2, +0, 0 );

			AddComponent( new AddonComponent( itemID++ ), -2, -1, 0 );
			AddComponent( new AddonComponent( itemID++ ), -1, -1, 0 );

			AddComponent( new AddonComponent( itemID++ ), -1, -2, 0 );
			AddComponent( new AddonComponent( ++itemID ), -2, -2, 0 );

And I'm going to assume initially you're going to say no for reasons I don't understand because I'm not programmer, lol. But I'm guessing no because I tried it and I get lots of errors, heh.
 
this was made with the add on generator latest version, slightly modified for clean up purposes lol

if you where to copy those and it it to work, would look just like mine then and be just as big

the part that does the "wishing" is in the on component used part
it checks to see if some one "double clicks" it (that it the addon version of ondoubleclicked)

that is the part you need to convert over for your use
 
Top