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 07-12-2007, 02:27 PM   #26 (permalink)
CEO
Forum Novice
 
CEO's Avatar
 
Join Date: Jun 2004
Age: 49
Posts: 808
Default

Did you check houses owned by that account? Could be there...

To have it auto generate with reports, in reports.cs add this line:

Code:
PlayerWealth.PlayerWealth_OnCommand(null);
in
Code:
public static void CheckRegenerate()
before or after the
Code:
Generate();
line.

If you want to report only players, you can modify this line
Code:
	if (cm == null)
			continue;
to

Code:
if (cm == null || cm.AccessLevel != AccessLevel.Player)
		continue;
I purposely left it to report Staff accounts, so we can keep tabs on checks. We have one guy with a 100mil check that he forgot about.
__________________
If you PM me and ask me to write scripts for you I will add you to my ignore list.
Please don't add me to your friends list, I have enough friends. Thx
CEO is offline   Reply With Quote
Old 07-12-2007, 04:34 PM   #27 (permalink)
Forum Novice
 
nadious's Avatar
 
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 527
Default

Thank you SO much! I appreciate the help greatly!
nadious is offline   Reply With Quote
Old 07-17-2007, 04:15 PM   #28 (permalink)
Forum Novice
 
nadious's Avatar
 
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 527
Default

Tried what you suggested... here's what I get:

Code:
Errors:
 + Engines/Reports/Reports.cs:
    CS0103: Line 41: The name 'PlayerWealth' does not exist in the current conte
xt
nadious is offline   Reply With Quote
Old 07-18-2007, 04:18 AM   #29 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 25
Posts: 1,805
Send a message via MSN to Pyro-Tech
Default

anyway for this to do characters instead of accounts? some people may not appreciate their account name being on display.

good script...ill use it either way
__________________

Pyro-Tech is offline   Reply With Quote
Old 07-18-2007, 04:25 AM   #30 (permalink)
Forum Novice
 
Join Date: Jun 2007
Posts: 367
Default

Quote:
Originally Posted by Pyro-Tech View Post
anyway for this to do characters instead of accounts? some people may not appreciate their account name being on display.

good script...ill use it either way
Im not sure about the answer to your question but what do you mean by....

Quote:
some people may not appreciate their account name being on display.
Either way the Owner of the shard can know their account name since its his shard...Once you do [playerwealth it makes the HTML file in the RunUO Folder which the owner would have access to and him only and since he can get into the [Admin panel he could know the account names anyway.....Or did i understand you wrong???
__________________

Shard Name: MurDeR Go RounD
Shard IP: Murdergoround.servegame.com
The Ultimate PvP Deed
Flats is offline   Reply With Quote
Old 07-18-2007, 07:22 AM   #31 (permalink)
Forum Novice
 
nadious's Avatar
 
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 527
Default

I think he's saying that players don't want other players (not the admin) to know what their account login name is.
nadious is offline   Reply With Quote
Old 07-18-2007, 01:29 PM   #32 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 25
Posts: 1,805
Send a message via MSN to Pyro-Tech
Default

yeah...i was thinking of using this by once a week/month running the numbers and posting on the website or something....i know it's great and helpful as-is to help admins with their shards so...

sorry about the misunderstanding
__________________

Pyro-Tech is offline   Reply With Quote
Old 07-18-2007, 01:52 PM   #33 (permalink)
Forum Novice
 
Join Date: Jun 2007
Posts: 367
Default

Quote:
Originally Posted by Pyro-Tech View Post
yeah...i was thinking of using this by once a week/month running the numbers and posting on the website or something....i know it's great and helpful as-is to help admins with their shards so...

sorry about the misunderstanding
Hehe No Misunderstanding At All I should of figured you were going to be posting it on a website i was just being curious hehe now i understand why you want character names
__________________

Shard Name: MurDeR Go RounD
Shard IP: Murdergoround.servegame.com
The Ultimate PvP Deed
Flats is offline   Reply With Quote
Old 07-20-2007, 01:55 PM   #34 (permalink)
CEO
Forum Novice
 
CEO's Avatar
 
Join Date: Jun 2004
Age: 49
Posts: 808
Default

Rather then using the account name in the report, you could substitute the name of the character on the players 1st valid slot.

So on the line that writes out the chars account you'll see:

Code:
ai.acct.Username
change to:
Code:
GetCharName(ai.acct)
Then add this sub:

Code:
public static string GetCharName(Account acct)
{
  for (int i = 0; i < acct.Length; ++i) 
  {
    Mobile mob = acct[i];
    if (mob != null)
      return mob.Name;
  }
  return "Unknown";
}
Note: Not tested, but should be close enough...
__________________
If you PM me and ask me to write scripts for you I will add you to my ignore list.
Please don't add me to your friends list, I have enough friends. Thx
CEO is offline   Reply With Quote
Old 07-20-2007, 02:08 PM   #35 (permalink)
Forum Expert
 
Liacs's Avatar
 
Join Date: Mar 2004
Location: Belgium / Germany
Age: 32
Posts: 1,038
Send a message via MSN to Liacs
Default

and if there are more chars on the same account?
__________________
;)My C# Bookshelf (carpented by Soultaker);)

BTW: Please ask questions in the adequat forum and not on a private message! Otherwise nobody can learn from it!
Liacs is offline   Reply With Quote
Old 07-20-2007, 02:59 PM   #36 (permalink)
CEO
Forum Novice
 
CEO's Avatar
 
Join Date: Jun 2004
Age: 49
Posts: 808
Default

Quote:
Originally Posted by Liacs View Post
and if there are more chars on the same account?
All this does is find the first valid char and report the entire accounts wealth using that name. It doesn't report each individual char, it's always done the full account, the issue some had with making it public for people to view (and rightly so) was the account name on the report. So now the report will show one of the account's character name instead. That's all.
__________________
If you PM me and ask me to write scripts for you I will add you to my ignore list.
Please don't add me to your friends list, I have enough friends. Thx
CEO is offline   Reply With Quote
Old 07-20-2007, 09:57 PM   #37 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 25
Posts: 1,805
Send a message via MSN to Pyro-Tech
Default

it's a good fix....thank you.

May look into doing it for every character, but dunno how involved that would be
__________________

Pyro-Tech is offline   Reply With Quote
Old 07-20-2007, 10:38 PM   #38 (permalink)
CEO
Forum Novice
 
CEO's Avatar
 
Join Date: Jun 2004
Age: 49
Posts: 808
Default

Quote:
Originally Posted by Pyro-Tech View Post
it's a good fix....thank you.

May look into doing it for every character, but dunno how involved that would be
I think per char isn't much value, and you'd have to figure out housing wealth and who to apply to. An Account applies to the player behind the chars and is more of an indicator of player wealth then on a per char basis.
__________________
If you PM me and ask me to write scripts for you I will add you to my ignore list.
Please don't add me to your friends list, I have enough friends. Thx
CEO is offline   Reply With Quote
Old 07-21-2007, 07:29 PM   #39 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 25
Posts: 1,805
Send a message via MSN to Pyro-Tech
Default

i have 2 or 3 players who play different characters for the sake of roleplaying and don't want it known that the characters they play are actually the same player.

your right....it isn't too much stock right off...but it is something someone may find useful in some instances like mine.
__________________

Pyro-Tech is offline   Reply With Quote
Old 07-26-2007, 08:57 PM   #40 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 25
Posts: 1,805
Send a message via MSN to Pyro-Tech
Default

Ok, so im trying to apply the fix for character names....that last bit of code, does it matter where it goes??

EDIT: Never mind....i got it...i accidently pasted that within the middle of a line
__________________


Last edited by Pyro-Tech; 07-27-2007 at 01:39 AM.
Pyro-Tech is offline   Reply With Quote
Old 10-23-2007, 05:24 AM   #41 (permalink)
Forum Novice
 
SiENcE's Avatar
 
Join Date: Jul 2005
Location: Berlin (Germany)
Posts: 183
Send a message via ICQ to SiENcE Send a message via AIM to SiENcE Send a message via MSN to SiENcE
Default

Inspired from your Script i made a modded version of it for RunUO 1.0/SunUO 0.4.4.

Now, it automatically generates the report. I also added a Row for Account|Characternames.

i hope you like the changes.

best regards
SiENcE
Attached Files
File Type: cs playerwealth.cs (7.6 KB, 31 views)
__________________
iris2.de | crankgaming.blogspot.com
SiENcE is offline   Reply With Quote
Old 10-23-2007, 09:18 PM   #42 (permalink)
Forum Expert
 
ABTOP's Avatar
 
Join Date: Sep 2006
Location: Ukraine
Posts: 1,052
Default

That's COOL. Thx u!
ABTOP is offline   Reply With Quote
Old 10-24-2007, 03:22 AM   #43 (permalink)
Forum Novice
 
Join Date: Mar 2006
Posts: 243
Default

Quote:
Originally Posted by nadious View Post
Tried what you suggested... here's what I get:

Code:
Errors:
 + Engines/Reports/Reports.cs:
    CS0103: Line 41: The name 'PlayerWealth' does not exist in the current conte
xt
Hello,

I'm also having the same error. Can anyone tell me how to fix this please?
Thank you in advanced
Jingz
jingz2k2 is offline   Reply With Quote
Old 10-25-2007, 09:15 PM   #44 (permalink)
Forum Expert
 
ABTOP's Avatar
 
Join Date: Sep 2006
Location: Ukraine
Posts: 1,052
Default

Ok. thx for script

Last edited by ABTOP; 10-28-2007 at 01:44 AM.
ABTOP is offline   Reply With Quote
Old 10-27-2007, 08:45 PM   #45 (permalink)
Forum Expert
 
ABTOP's Avatar
 
Join Date: Sep 2006
Location: Ukraine
Posts: 1,052
Default

Ohh please sorry!!!!

Last edited by ABTOP; 10-28-2007 at 01:41 AM.
ABTOP is offline   Reply With Quote
Old 10-27-2007, 09:09 PM   #46 (permalink)
CEO
Forum Novice
 
CEO's Avatar
 
Join Date: Jun 2004
Age: 49
Posts: 808
Default

Please don't take offense, but could you please stop re-posting my stuff? It's great that you're moding it and all, but when you repost stuff with bugs or problems then I can't tell from PMs or other issues who is using what. There are 4 versions now in this thread. I only support the version I've released in the first post. People that use my stuff (here or on the EasyUO forums) know that I pride myself in releasing working easy-to-use stuff and I'd rather not have a thread full of moded versions. I also rather not have to read through what's essentially become a debugging thread for someone else's code!

BTW, houses are tied to accounts and personally I think it's rather meaningless to report on a character-by-character basis because wealth is easily moved around by owner of the account. If you want to Rewrite/write your own version (if you use my code give me credit please) feel free to do so and post in your own thread.

I realize the forum rules here are you post it, you allow anyone to re-use/re-write/etc, but I would hope there still is some etiquette/courtesy involved with active authors vs. those long gone. I'd rather not have to put all my stuff off site to avoid any mis-understanding as well. I license my software under CPL (CEO's Public License).

Thank you.
__________________
If you PM me and ask me to write scripts for you I will add you to my ignore list.
Please don't add me to your friends list, I have enough friends. Thx

Last edited by CEO; 10-27-2007 at 09:34 PM.
CEO is offline   Reply With Quote
Old 10-30-2007, 04:48 PM   #47 (permalink)
Forum Novice
 
SiENcE's Avatar
 
Join Date: Jul 2005
Location: Berlin (Germany)
Posts: 183
Send a message via ICQ to SiENcE Send a message via AIM to SiENcE Send a message via MSN to SiENcE
Default

Mh sory.

i just posted my version, because it's for runuo1/sunuo0.4.4 and completly incompatible with RunUO2. If i had posted only the changes, than it would make to much work for all...for this little script.

your license is my license. my changes are so small, that i have no copyright on it ;-).

regards
__________________
iris2.de | crankgaming.blogspot.com
SiENcE is offline   Reply With Quote
Old 10-30-2007, 05:27 PM   #48 (permalink)
CEO
Forum Novice
 
CEO's Avatar
 
Join Date: Jun 2004
Age: 49
Posts: 808
Default

Quote:
Originally Posted by SiENcE View Post
Mh sory.

i just posted my version, because it's for runuo1/sunuo0.4.4 and completly incompatible with RunUO2. If i had posted only the changes, than it would make to much work for all...for this little script.

your license is my license. my changes are so small, that i have no copyright on it ;-).

regards
Yeah, your post is fine, thanks!
__________________
If you PM me and ask me to write scripts for you I will add you to my ignore list.
Please don't add me to your friends list, I have enough friends. Thx
CEO is offline   Reply With Quote
Old 06-14-2008, 04:06 PM   #49 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Location: Deep in the forests of Whispering Pines
Posts: 255
Default

CEO, thank you for making such great scrpts for the RunUO community.

The RC1 zip file seems to have been corrupted, would you happen to have another copy, or an alternate download location?

Thanks,
GhostRiderGrey

NVM, found your instructions in post #22 and fixed the posted .cs file to work with RC1. Thank you again!!
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org

Last edited by GhostRiderGrey; 06-14-2008 at 04:26 PM. Reason: Fixed problem.
GhostRiderGrey is offline   Reply With Quote
Old 06-15-2008, 11:58 AM   #50 (permalink)
Forum Novice
 
Join Date: Dec 2006
Location: Southern Utah
Age: 30
Posts: 968
Send a message via Yahoo to greywolf79
Default

Cool script... I will be trying this out as soon as I can.

GreyWolf.
greywolf79 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