|
||
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#26 (permalink) |
|
Forum Novice
Join Date: Jun 2004
Age: 49
Posts: 808
|
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); Code:
public static void CheckRegenerate() Code:
Generate(); If you want to report only players, you can modify this line Code:
if (cm == null) continue; Code:
if (cm == null || cm.AccessLevel != AccessLevel.Player) continue; ![]()
__________________
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 |
|
|
|
|
|
#30 (permalink) | ||
|
Forum Novice
Join Date: Jun 2007
Posts: 367
|
Quote:
Quote:
__________________
|
||
|
|
|
|
|
#33 (permalink) | |
|
Forum Novice
Join Date: Jun 2007
Posts: 367
|
Quote:
hehe now i understand why you want character names ![]()
__________________
|
|
|
|
|
|
|
#34 (permalink) |
|
Forum Novice
Join Date: Jun 2004
Age: 49
Posts: 808
|
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 Code:
GetCharName(ai.acct) 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";
}
__________________
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 |
|
|
|
|
|
#35 (permalink) |
|
Forum Expert
|
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!
|
|
|
|
|
|
#36 (permalink) |
|
Forum Novice
Join Date: Jun 2004
Age: 49
Posts: 808
|
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 |
|
|
|
|
|
#38 (permalink) |
|
Forum Novice
Join Date: Jun 2004
Age: 49
Posts: 808
|
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 |
|
|
|
|
|
#39 (permalink) |
|
Forum Expert
|
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. |
|
|
|
|
|
#41 (permalink) |
|
Forum Novice
|
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
__________________
iris2.de | crankgaming.blogspot.com |
|
|
|
|
|
#43 (permalink) | |
|
Forum Novice
Join Date: Mar 2006
Posts: 243
|
Quote:
I'm also having the same error. Can anyone tell me how to fix this please? Thank you in advanced Jingz |
|
|
|
|
|
|
#46 (permalink) |
|
Forum Novice
Join Date: Jun 2004
Age: 49
Posts: 808
|
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. |
|
|
|
|
|
#47 (permalink) |
|
Forum Novice
|
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 |
|
|
|
|
|
#48 (permalink) | |
|
Forum Novice
Join Date: Jun 2004
Age: 49
Posts: 808
|
Quote:
__________________
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 |
|
|
|
|
|
|
#49 (permalink) |
|
Forum Novice
Join Date: Nov 2007
Location: Deep in the forests of Whispering Pines
Posts: 255
|
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|