|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
|
Description:
Global replace is a command for administrators to replace all the items in the world of one type, to another. For example, say I would like to replace every longsword in the world with a broadsword. This command can do such. It will also detect stackable items, and also to see if the item is equipped to the person, so it will replace the item exactly where it was found. Disclaimer: This script is not recommended for large servers with lots of items. If a monster has loot, it will replace its loot with whatever. Remember, please use this at your own discression, it will replace every item. Usage: Go in game and type [GlobalReplace <itemtoreplace> <itemtotakeplace> Ex.- [globalreplace longsword broadsword Installation: Just drop it somewhere into your scripts folder. Special Thanks: KillerBeeZ for the idea. |
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Location: Germany (american though)
Age: 33
Posts: 957
|
Will this also handle "dumb" requests like
[globalreplace longsword goldeningot ? as the goldeningot not an equippable item, would it drop into the backpack, and what would it do to NPC vendors? just wondering ![]() **edit** forgot to say, Thank you for the contribution |
|
|
|
|
#3 (permalink) |
|
Forum Novice
Join Date: Apr 2003
Age: 32
Posts: 248
|
in the "cloning" code part, I suggest you to add after
Code:
Item o = (Item)f; Example: Code:
Item o = (Item)f; o.Name=item.Name; o.Hue=item.Hue; o.Movable=item.Movable; o.ItemID=item.ItemID; |
|
|
|
|
#4 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Location: Germany (american though)
Age: 33
Posts: 957
|
eventually, LootType would also be a good prop to copy to the new item.
**Edit** You could also use this to intentionlly remove unwanted things.. i.e. if someone claims that someone is running around with a blessed broadsword, and you are certain there should be NO blessed broadswords in game, you could intentionally modify the script to take care of that. [globalreplace broadsword broadsword (and in the script) o.LootType = LootType.Regular and voila, you have 0 blessed broadswords on the server. Last edited by Jarrod; 12-08-2005 at 12:50 PM. |
|
|
|
|
#5 (permalink) | |
|
Forum Expert
|
Quote:
It will just put them in the backpack. Hmm well I saw that this guy (I think his name is tobyjub) has a Global Interface command, this script and his would make a great combination together. Might be cool to combine themLast edited by milt; 12-08-2005 at 02:54 PM. |
|
|
|
|
|
#6 (permalink) |
|
Forum Expert
Join Date: Jan 2004
Location: England
Age: 20
Posts: 442
|
Hi milt, the name's tobyjug
![]() Yeh i saw a request in my thread about adding a find and replace feature to my global interface and no sooner had I read that then I saw this post, this looks like a nice addition good job. I think that this and my global interface could be quite a powerful combo to sort out all the Items in the world. But not running my own shard or working on one I just thought it would be interesting and did not know if it would be very useful. Had some good feedback though so I'm happy. |
|
|
|
|
#7 (permalink) |
|
Forum Expert
|
If you would like, we could add this to yours. It wouldn't be hard at all. I've yet to try out your system, because I do not have UO where I am. But from what it sounds like, you can search for items. When you search, does it bring up a list of the items and locations? It would be neat if we could add a button there to replace those items, and an input bar to type in the name of the object to replace it with. Hey man, if you are interested, let me know and we can do this
![]() |
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|