Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 07-14-2004, 10:41 AM   #1 (permalink)
Newbie
 
Join Date: Mar 2004
Age: 20
Posts: 89
Send a message via ICQ to Raelis Send a message via AIM to Raelis Send a message via MSN to Raelis
Post The In-Game Editable Prize Stone

Summary:
Prize/Vendor Stone.


Description:
This is one of my lower scripts, but a lot of people seem to like it on the shard's I've given it to. It's basicly a stone that you can edit, in-game, to sell anything. You can change the currency the stone uses; tokens, gold, appels, katana, anything at all. There is a maximum of 40 prizes, but that should be enough considering you can add as many prize stones as you'd like and edit them.

And no, it's not going to be all through props that you'll have to edit everything. If you are a seer or above, there will be a button on the gump that is labeled "Edit", click that and there will pop up a similar gump where you can type in the (blue)items/creatures you want to be on the prize stone, (green)their item's description(name because not all item's have names that they use through the Name property, most of them are null), and the (red)price that you wish to set it to. When you type in the item to add the the prize stone, you'll have to type it in liek you are typing it in on a spawner. I also made it so that you could add creatures to the stone and when players buy the creatures, it appears where they stand and is under their control.

The colors I put in () are the colors of the tpying that is on the gump.
Blue is where you add the add name for the item/creature.
Green is where you add the name you want to show up on the buy gump.
Red is where you add the price for the item/creature.

As well, the admin of the shard I work for asked for it to be able so players can choose whether or not they want to bless the item they buy. So i added a check box for "Bless", "Bond", & "Hue(something extra I tosed in)". If you keep the price for Bond, Bless, and Hue, at 0 they will not appear on the gump for the players to check. But if you do set it to something higher that 0, it will appear, and have it's prize right beside it. And if a player checks it and doesn't have the money, it won't bond, bless, or hue the item/creature sold. The "Hue" check box brings up the normal hue picker.

I wasn't able to make a button for the gump to automaticly target and item and choose it for the currency, so you'll have to do that by using [props on the stone, and only Admins can set it.

As well, you will be able to set the stone's name through the Edit gump, at the very top of the gump. All the areas that are surounded by black lines are the areas in which can be edited.

Oh, I almost forgot, it comes with a "prize ball" as well. If you sell it, players can buy it and double click it and then they will be able to target any prize stone that they wish and then they will be able to open the prize stone gump through the ball.

Hmm, well that's basicly all I can think of to tell about the script.

Installation:
Just stick the script in your custom folder. Say "[add vendorstone" to add it to the shard. And "[add vendorball" to add the prize ball to the shard.

Please post any questions that you may have.


Raelis
Attached Files
File Type: zip VendorStone.zip (20.6 KB, 1125 views)
Raelis is offline   Reply With Quote
Old 07-14-2004, 12:31 PM   #2 (permalink)
Master of the Internet
 
DontdroptheSOAD's Avatar
 
Join Date: Apr 2003
Location: Glen Saint Mary, Florida
Age: 19
Posts: 6,834
Send a message via AIM to DontdroptheSOAD
Default

Excellent Script!! Ten thumbs up!! I love it you can add ANYTHING.
DontdroptheSOAD is offline   Reply With Quote
Old 07-14-2004, 12:40 PM   #3 (permalink)
Forum Novice
 
Join Date: Aug 2003
Age: 23
Posts: 768
Default

Quote:
Originally Posted by DontdroptheSOAD
Excellent Script!! Ten thumbs up!! I love it you can add ANYTHING.
Ten thumbs? Freak....
FLuXx() is offline   Reply With Quote
Old 07-14-2004, 02:19 PM   #4 (permalink)
Forum Novice
 
Join Date: Jun 2004
Location: Michigan
Age: 26
Posts: 195
Send a message via MSN to septor
Default

No joke.

I downloaded this script, I'm going to try it when I get home, it sounds elite.
septor is offline   Reply With Quote
Old 07-14-2004, 03:02 PM   #5 (permalink)
Forum Expert
 
Khaz's Avatar
 
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
Default

It is "elite." Very well done, Raelis, and thank you for submitting a prize stone that outshines all the others.
__________________
"Misfortune shows those who are not really friends." -Aristotle
"A multitude of words is no proof of a prudent mind." -Thales
Khaz is offline   Reply With Quote
Old 07-14-2004, 03:11 PM   #6 (permalink)
Master of the Internet
 
DontdroptheSOAD's Avatar
 
Join Date: Apr 2003
Location: Glen Saint Mary, Florida
Age: 19
Posts: 6,834
Send a message via AIM to DontdroptheSOAD
Default

I love the fact that you allow people to edit these scripts "ingame" its a very interesting styl e that i very much like ^_^. Tonight im gonna try to turn it into a vendor (probably to no avail)
DontdroptheSOAD is offline   Reply With Quote
Old 07-14-2004, 03:38 PM   #7 (permalink)
Newbie
 
Join Date: Mar 2004
Age: 20
Posts: 89
Send a message via ICQ to Raelis Send a message via AIM to Raelis Send a message via MSN to Raelis
Default

Heh, I'm glad you all like my script
Raelis is offline   Reply With Quote
Old 07-14-2004, 05:05 PM   #8 (permalink)
Forum Expert
 
Join Date: Jan 2004
Location: England
Age: 24
Posts: 404
Send a message via AIM to malgrimace
Default

Just one thing...what's with the lable that says "!SET THE STONES NAME" when you click it?
malgrimace is offline   Reply With Quote
Old 07-14-2004, 05:16 PM   #9 (permalink)
Forum Expert
 
flowerbudd's Avatar
 
Join Date: Jul 2003
Location: Missouri
Age: 31
Posts: 701
Send a message via ICQ to flowerbudd Send a message via AIM to flowerbudd Send a message via MSN to flowerbudd Send a message via Yahoo to flowerbudd
Default

yes i cannot get it to name on mouseover , and i cant tell what the vendor stone is for? Otherwise its perfect
__________________
Med-Surg Nurse, Full time Pittsburg State Univ Sophmore, and FT Mother to 5 kids
flowerbudd is offline   Reply With Quote
Old 07-14-2004, 05:28 PM   #10 (permalink)
Forum Expert
 
Join Date: Jan 2004
Location: England
Age: 24
Posts: 404
Send a message via AIM to malgrimace
Default

Right, I figured out the solution to my problem.

This is an amazing script mate - feel proud!
malgrimace is offline   Reply With Quote
Old 07-14-2004, 05:44 PM   #11 (permalink)
Master of the Internet
 
DontdroptheSOAD's Avatar
 
Join Date: Apr 2003
Location: Glen Saint Mary, Florida
Age: 19
Posts: 6,834
Send a message via AIM to DontdroptheSOAD
Default

Newbies Read:
You need to say [set name "insert name here"
DontdroptheSOAD is offline   Reply With Quote
Old 07-14-2004, 06:37 PM   #12 (permalink)
Bad Boy
 
Join Date: Jun 2003
Posts: 80
Default

Quote:
Newbies Read:
You need to say [set name "insert name here"
that Does not work!
Noobus is offline   Reply With Quote
Old 07-14-2004, 07:02 PM   #13 (permalink)
Master of the Internet
 
DontdroptheSOAD's Avatar
 
Join Date: Apr 2003
Location: Glen Saint Mary, Florida
Age: 19
Posts: 6,834
Send a message via AIM to DontdroptheSOAD
Default

hmm ur right sorry ^_^
Just go in the script and where it says "!set the stonesname!" change it to Vendor Sotne or w/e
DontdroptheSOAD is offline   Reply With Quote
Old 07-14-2004, 10:40 PM   #14 (permalink)
chrisjones
Guest
 
Posts: n/a
Default Very nice but....

Is there a way to have say ammounts...like for one to another like gold to tokens
If so can u tell me i tryd to get it to do conversion and tryd even bank checks but wont reggy its ammount?
  Reply With Quote
Old 07-14-2004, 10:43 PM   #15 (permalink)
Master of the Internet
 
DontdroptheSOAD's Avatar
 
Join Date: Apr 2003
Location: Glen Saint Mary, Florida
Age: 19
Posts: 6,834
Send a message via AIM to DontdroptheSOAD
Default

Lol... No

You are trying to make a currency converter it looks like. This is just a vendor. Try making Reebdog the blacksmith give you tokens back.
DontdroptheSOAD is offline   Reply With Quote
Old 07-15-2004, 12:30 AM   #16 (permalink)
Newbie
 
Join Date: Mar 2004
Age: 20
Posts: 89
Send a message via ICQ to Raelis Send a message via AIM to Raelis Send a message via MSN to Raelis
Default

Well, the "!STONE NAME GOES HERE!", u'll have to change the GumpName property it's in the "Edit" gump, at the very top, change that to w/e u want, then u'll have to [set movable true on the stone and move it, then [set movable false again and it will show the correct name, sry, i could have made it easier, gah, wth i'll go ahead and make it easier, just redownload it once i get it done
Raelis is offline   Reply With Quote
Old 07-15-2004, 12:35 AM   #17 (permalink)
Newbie
 
Join Date: Mar 2004
Age: 20
Posts: 89
Send a message via ICQ to Raelis Send a message via AIM to Raelis Send a message via MSN to Raelis
Default

K!! it's fixed,
Raelis is offline   Reply With Quote
Old 07-15-2004, 06:58 AM   #18 (permalink)
Donating Member
 
Join Date: Oct 2003
Location: oHIo
Age: 38
Posts: 65
Default awesome!

just what i was looking for! One quick question tho - i am trying to add a skill/stat ball, and it dosent seem to pass the number of charges to it. For example, i want to add a skillball 5 to it. i can [add skillball 5 and it makes one, but when i set the name to "skillball 5" it dosent work. is there a way to pass the charges variable to it, (5) or some trick, or do i need to somehow recode that to work?

Thanks again - wonderfull script! 10/10

Locksmith
locksmith is offline   Reply With Quote
Old 07-15-2004, 09:15 AM   #19 (permalink)
Forum Expert
 
Join Date: Jan 2004
Location: England
Age: 24
Posts: 404
Send a message via AIM to malgrimace
Default

Yeah - like I said, I figured it out just after I posted the query. Thanks for calling me a noob though dontdropthesoad, it was appreciated.
malgrimace is offline   Reply With Quote
Old 07-15-2004, 01:45 PM   #20 (permalink)
 
Join Date: Jul 2004
Age: 20
Posts: 10
Default

quick question when i set an item for lets say 1 million gold a player is not going to be able to hold 1 million gold in their inventory so how can i make the vendor stone automatically take the gold from the players bank or how can i make it use bank checks because i set the currency for bank checks and it says that it is not enough when the bank check is for that amout i guess it is asking for 1 million bank checks?
daeth is offline   Reply With Quote
Old 07-15-2004, 08:33 PM   #21 (permalink)
Not a Lurker
 
Suffering's Avatar
 
Join Date: Jun 2004
Location: USA
Age: 34
Posts: 63
Default

W W!! This is perfect!



Quote:
"If you want to build a ship, don't herd people together to collect wood and don't assign them tasks and work, but rather teach them to long for the endless immensity of the sea." --Antoine de Saint-Exupery
Suffering is offline   Reply With Quote
Old 07-15-2004, 08:58 PM   #22 (permalink)
Newbie
 
Join Date: Mar 2004
Age: 20
Posts: 89
Send a message via ICQ to Raelis Send a message via AIM to Raelis Send a message via MSN to Raelis
Default

Hmm, I'll set it so it will try to take the gold from the person's pack back, and if it can't it will try to take it from their bank, once I'm done i'll re post the script
Raelis is offline   Reply With Quote
Old 07-15-2004, 09:21 PM   #23 (permalink)
Newbie
 
Join Date: Mar 2004
Age: 20
Posts: 89
Send a message via ICQ to Raelis Send a message via AIM to Raelis Send a message via MSN to Raelis
Default

Ok, it's fixed to accept the currency from the person's bank if they do not have enoguh of it in their pack, and I also fixed the "You decide not to buy any Vendors." to "You decide not to buy anything."
Raelis is offline   Reply With Quote
Old 07-15-2004, 11:00 PM   #24 (permalink)
Donating Member
 
Join Date: Oct 2003
Location: oHIo
Age: 38
Posts: 65
Default hmm am i doing something wrong here?

I still cannot get it to add values to things. Runic hammers for example wont work (a prize on our shard) and anything that has a value attached with it. Im sure the script is capable of this, am i just not adding it in the right format?

Locksmith
locksmith is offline   Reply With Quote
Old 07-15-2004, 11:22 PM   #25 (permalink)
Newbie
 
Join Date: Mar 2004
Age: 20
Posts: 89
Send a message via ICQ to Raelis Send a message via AIM to Raelis Send a message via MSN to Raelis
Default

values cannot be added into it from the way i scripted it, runic hammers can be added if u script them differently, like make it so each runic hammer has it's own script, Here, i've made some from a while back, i'll attach it to this, just add the Runics folder to ur custom folder
Attached Files
File Type: zip Runics.zip (4.7 KB, 46 views)
Raelis 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 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5