Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

Custom Script Releases This forum is where you can release your custom scripts for other users to use.

Please note: By releasing your scripts here you are submitting them to the public and as such agree to publish them under the GPL licensing terms. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO.

Reply
 
Thread Tools Display Modes
Old 05-11-2007, 10:15 PM   #26 (permalink)
Forum Novice
 
Join Date: Jul 2006
Age: 30
Posts: 746
Default

Not sure why but when I use my player I am still able to paint buildings in luna using sandstone paint . And this is after updating with your latest post.
oiii88 is offline   Reply With Quote
Old 05-11-2007, 11:24 PM   #27 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by Hotshot
can you add here what you changed and where.. so i can copy and paste
I added this near the beginning of the OnTarget method:

PHP Code:
 
BaseHouse house 
Multis.BaseHouse.FindHouseAt(target);
if (
house == null || from != house.Owner || from.AccessLevel AccessLevel.GameMaster)
{
from.SendMessage("That is not part of your house!");
return;

Quote:
Originally Posted by purplemouse91
UHOH tested this and came back to it an hour later and the walls turned back to its original color...
There must be a decay value on the PaintedItem I didn't notice....

Quote:
Originally Posted by oiii88
Not sure why but when I use my player I am still able to paint buildings in luna using sandstone paint . And this is after updating with your latest post.
That does not make any sense, unless someone can see what I missed in that code above...
Lokai is offline   Reply With Quote
Old 05-11-2007, 11:28 PM   #28 (permalink)
Forum Novice
 
Join Date: Jul 2006
Age: 30
Posts: 746
Default

Its odd you mentioned your addition because I looked at what I had downloaded and it did not have that line in it . I will edit mine accordingly. Guess I deleted the wrong file.
oiii88 is offline   Reply With Quote
Old 05-11-2007, 11:49 PM   #29 (permalink)
Forum Novice
 
Join Date: Jul 2006
Age: 30
Posts: 746
Default

OK I replaced the script with the one you have posted now and I got this error.

Errors:
+ Customs/House Paint System/PaintCan.cs:
CS0103: Line 140: The name 'target' does not exist in the current context
oiii88 is offline   Reply With Quote
Old 05-12-2007, 03:17 AM   #30 (permalink)
Forum Novice
 
Rosey1's Avatar
 
Join Date: Oct 2005
Location: Oklahoma
Age: 33
Posts: 896
Send a message via ICQ to Rosey1 Send a message via AIM to Rosey1 Send a message via MSN to Rosey1 Send a message via Yahoo to Rosey1
Default

This looks great Lokai! I can't wait to try it!
Rosey1 is offline   Reply With Quote
Old 05-12-2007, 03:37 AM   #31 (permalink)
Forum Novice
 
kirax2's Avatar
 
Join Date: Jul 2004
Age: 33
Posts: 179
Default Awesome!

Wow...I didn't think this could be done. I'm really impressed! When I eventually get my shard up and running, I think this will be an awesome addition. Thank you!

-kirax2
kirax2 is offline   Reply With Quote
Old 05-12-2007, 03:53 AM   #32 (permalink)
Forum Novice
 
Rosey1's Avatar
 
Join Date: Oct 2005
Location: Oklahoma
Age: 33
Posts: 896
Send a message via ICQ to Rosey1 Send a message via AIM to Rosey1 Send a message via MSN to Rosey1 Send a message via Yahoo to Rosey1
Default

I got that same target compile error btw : (
Rosey1 is offline   Reply With Quote
Old 05-12-2007, 08:14 AM   #33 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by oiii88 View Post
OK I replaced the script with the one you have posted now and I got this error.

Errors:
+ Customs/House Paint System/PaintCan.cs:
CS0103: Line 140: The name 'target' does not exist in the current context
Sorry, I must have made a last second copy/paste before posting. That should read 'targeted', not 'target'. Change the line 140 to say:

BaseHouse house = Multis.BaseHouse.FindHouseAt(targeted);
Lokai is offline   Reply With Quote
Old 05-12-2007, 08:16 AM   #34 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by kirax2 View Post
Wow...I didn't think this could be done. I'm really impressed! When I eventually get my shard up and running, I think this will be an awesome addition. Thank you!

-kirax2
Folks, here is the person that started this whole thing...

So, blame her if your shard is all whacked out pretty! hehe.
Lokai is offline   Reply With Quote
Old 05-12-2007, 11:05 AM   #35 (permalink)
Forum Novice
 
dagan1545's Avatar
 
Join Date: Jan 2006
Posts: 100
Default great script

Nice script!!
But i did have a problem with line 30 in the paintcan.cs /theres no return.
Other then that everything looks great.
dagan1545 is offline   Reply With Quote
Old 05-12-2007, 11:25 AM   #36 (permalink)
Forum Novice
 
Hotshot's Avatar
 
Join Date: Jan 2006
Posts: 221
Default

K, on the Target issue... How bout adding a contract deed that will let people who obtain these deeds, sell there services ? Kool Idea i think... maybe create a creature for these, almost like Fletcher tools. Maybe a Furious House painter, make him red and randomly drop House Tubs/Paint cans. also... is the brick problem solved, Other paint tub dont dye/paint it. maybe script a tub that has.. brick
Nice script again.... ++karma
__________________
You Can Make a Good Living working for someone else, you can make a fortune working for yourself.
Hotshot is offline   Reply With Quote
Old 05-12-2007, 11:40 AM   #37 (permalink)
Forum Novice
 
Hotshot's Avatar
 
Join Date: Jan 2006
Posts: 221
Default

Errors:
+ Custom Scripts/Painting Houses/House Paint System/PaintCan.cs:
CS1502: Line 140: The best overloaded method match for 'Server.Multis.BaseHo
use.FindHouseAt(Server.Mobile)' has some invalid arguments
CS1503: Line 140: Argument '1': cannot convert from 'object' to 'Server.Mobi
le'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
__________________
You Can Make a Good Living working for someone else, you can make a fortune working for yourself.
Hotshot is offline   Reply With Quote
Old 05-12-2007, 12:56 PM   #38 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by Hotshot View Post
K, on the Target issue... How bout adding a contract deed that will let people who obtain these deeds, sell there services ? Kool Idea i think... maybe create a creature for these, almost like Fletcher tools. Maybe a Furious House painter, make him red and randomly drop House Tubs/Paint cans. also... is the brick problem solved, Other paint tub dont dye/paint it. maybe script a tub that has.. brick
Nice script again.... ++karma
"Other House Paint" is for Paper, Bamboo, Rattan, and Hides.

Brick should be covered under Stone, not sure. What are the ItemID's of some of the Brick items?
Lokai is offline   Reply With Quote
Old 05-12-2007, 01:00 PM   #39 (permalink)
Master of the Internet
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 12,114
Send a message via Yahoo to Lord_Greywolf
Default

nice script and great idea

only thing is for people that have a decent player base (20+ regular players) and you allow more than 1 house per player
the number of items can add up a lot
and if a persom just paints the out side edge (or interisor of outside) of a custom 18x18 3 story that is alone is 144 items, could total closr to 1000 on a well build home (and if this does work on a castle - whoa - big numbers)
this will add to the lag of the house, and of the area too
ans of course save times & shard item count
besides having to wipe the stuff once the house is gone

so be carefull on it, if your players start to complain of lag, etc
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 05-12-2007, 01:15 PM   #40 (permalink)
Newbie
 
Erikdalam's Avatar
 
Join Date: Jun 2006
Location: MA
Age: 23
Posts: 71
Send a message via MSN to Erikdalam
Default

nice job,Thank
Erikdalam is offline   Reply With Quote
Old 05-12-2007, 06:45 PM   #41 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Sorry about this guys. Everything was working, until I tried to fix the problem with players being able to paint all over the world instead of their houses.

I have withdrawn the download until I can fix several issues with crashes and odd behavior.
Lokai is offline   Reply With Quote
Old 05-14-2007, 09:46 AM   #42 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

ORIGINAL POST UPDATED AND NEW DOWNLOAD POSTED:

5/14/2007:

- Fixed many errors including null exceptions.
- Made it so Painted walls are movable (but you still can't move them)
- Painted walls are locked down when created.
- Users must Release the old paint in order to repaint it.
- Hopefully this will decrease Item-lag.
- Fixed targeting issues.
- Players may now paint from just outside their house, but must still target a house they own.
- GMs can still paint anywhere.
- Fixed bug allowing players to paint all over town.

KNOWN ISSUES:

- When users log in, their Client may load the Locked-down painted items before the regular house walls. This causes the paint to disappear. Not sure if the Lockdown feature will fix this. If anyone has an idea on setting a priority level or something so that the Painted walls display last, let me know.
- Painted Walls look movable. This is NOT a bug. Think of it like this: if you don't SEAL the paint job, it will wear off (ie, Decay.) Users must Secure them to prevent them from fading. (An added bonus is that this may reduce excessive painting, since it lowers the total Lockdowns available.)
Lokai is offline   Reply With Quote
Old 05-14-2007, 11:27 AM   #43 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

FIX for Painted Walls staying after House is destroyed:


In BaseHouse.cs, add Lokai's House Paints Region as below:
PHP Code:
   if ( m_LockDowns != null )
   {
    for ( 
int i 0m_LockDowns.Count; ++)
    {
     
Item item = (Item)m_LockDowns[i];
     if ( 
item != null )
     {
      
item.IsLockedDown false;
      
item.IsSecure false;
      
item.Movable true;
      
item.SetLastMoved();
      
#region Lokai's House Paints
      
if (item is PaintedItem)
       
item.Delete();
      
#endregion
     

Lokai is offline   Reply With Quote
Old 05-14-2007, 04:34 PM   #44 (permalink)
Forum Novice
 
Macil's Avatar
 
Join Date: Oct 2003
Location: Harper Woods, Michigan
Age: 23
Posts: 972
Send a message via ICQ to Macil Send a message via AIM to Macil
Default

Quote:
Originally Posted by Lokai View Post
FIX for Painted Walls staying after House is destroyed:


In BaseHouse.cs, add Lokai's House Paints Region as below:
PHP Code:
   if ( m_LockDowns != null )
   {
    for ( 
int i 0m_LockDowns.Count; ++)
    {
     
Item item = (Item)m_LockDowns[i];
     if ( 
item != null )
     {
      
item.IsLockedDown false;
      
item.IsSecure false;
      
item.Movable true;
      
item.SetLastMoved();
      
#region Lokai's House Paints
      
if (item is PaintedItem)
       
item.Delete();
      
#endregion
     

Uh? Its still leaving the walls and stuff. =(
Macil is offline   Reply With Quote
Old 05-14-2007, 05:50 PM   #45 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by Macil View Post
Uh? Its still leaving the walls and stuff. =(

GMs will leave walls, players will not.
Lokai is offline   Reply With Quote
Old 05-14-2007, 09:35 PM   #46 (permalink)
Forum Novice
 
Macil's Avatar
 
Join Date: Oct 2003
Location: Harper Woods, Michigan
Age: 23
Posts: 972
Send a message via ICQ to Macil Send a message via AIM to Macil
Default

Quote:
Originally Posted by Lokai View Post
GMs will leave walls, players will not.
PAH! Details!

Everything's all good here now. Karma time.
Macil is offline   Reply With Quote
Old 05-14-2007, 10:04 PM   #47 (permalink)
Forum Novice
 
Join Date: Jul 2005
Posts: 132
Default

Quote:
Originally Posted by Lokai View Post
FIX for Painted Walls staying after House is destroyed:


In BaseHouse.cs, add Lokai's House Paints Region as below:
PHP Code:
   if ( m_LockDowns != null )
   {
    for ( 
int i 0m_LockDowns.Count; ++)
    {
     
Item item = (Item)m_LockDowns[i];
     if ( 
item != null )
     {
      
item.IsLockedDown false;
      
item.IsSecure false;
      
item.Movable true;
      
item.SetLastMoved();
      
#region Lokai's House Paints
      
if (item is PaintedItem)
       
item.Delete();
      
#endregion
     

Were exactly do we place this...
purplemouse91 is offline   Reply With Quote
Old 05-14-2007, 10:10 PM   #48 (permalink)
Newbie
 
Join Date: Jan 2004
Location: Denver, Colorado
Age: 60
Posts: 25
Send a message via ICQ to paggylee Send a message via Yahoo to paggylee
Default The adding to the basehouse.cs script

Hi,

I added the lines you said to to my basehouse.cs script.. got and error.. I am not exactly sure where I need to put this in on the cs script.. I can send you my basehouse.cs script if you desire, and the error I am getting on it is..

Error:

RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Added Customs/Loose Scripts/BaseHouse.cs:
CS1014: Line 2776: A get or set accessor expected
CS1513: Line 2774: } expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


Thank you for you help
Kyss/Peg
paggylee is offline   Reply With Quote
Old 05-14-2007, 10:30 PM   #49 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by purplemouse91 View Post
Were exactly do we place this...
Below this:

PHP Code:
item.SetLastMoved(); 
place this:

PHP Code:
      #region Lokai's House Paints 
      
if (item is PaintedItem
       
item.Delete(); 
      
#endregion 
Lokai is offline   Reply With Quote
Old 05-14-2007, 10:31 PM   #50 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by paggylee View Post
Hi,

I added the lines you said to to my basehouse.cs script.. got and error.. I am not exactly sure where I need to put this in on the cs script.. I can send you my basehouse.cs script if you desire, and the error I am getting on it is..

Error:

RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Added Customs/Loose Scripts/BaseHouse.cs:
CS1014: Line 2776: A get or set accessor expected
CS1513: Line 2774: } expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


Thank you for you help
Kyss/Peg
you only add this part:

PHP Code:
      #region Lokai's House Paints 
      
if (item is PaintedItem
       
item.Delete(); 
      
#endregion 
Lokai 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 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5