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

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 03-14-2004, 04:32 PM   #1 (permalink)
 
Join Date: Feb 2004
Location: New York City, USA
Age: 35
Posts: 39
Send a message via AIM to twoballcane
Default Runic Hammer/Sewing Kit Vendor

Summary:
A vendor that sells runic smithing hammers and runic sewing kits.

Description:
I probably did this the hard way but I couldn't get it to work through SBRunic.cs alone. I ended up creating a constructable runic tool with the variable [Resource] predefined for each type of runic.

If anyone knows a better way please let me know. Thanks.

Installation:
Just unzip RunicDealer.zip into your Scripts/Customs/Mobiles folder.
Then restart your server.
Say " [add RunicDealer " to add the runic dealer to your shard.

You can edit the prices via the SBRunic.cs file. [See the "Ethy Vendor" thread for an example because the method is the same]
Attached Files
File Type: zip RunicDealer.zip (6.6 KB, 2151 views)
twoballcane is offline   Reply With Quote
Old 03-14-2004, 07:15 PM   #2 (permalink)
 
Join Date: Mar 2003
Age: 28
Posts: 447
Send a message via ICQ to Horde_Pil Send a message via Yahoo to Horde_Pil
Default a difforent way

well what i would sudgest, is they could set up a means to trade for the item so you could still use the distro scripts instead of writing a whole new item.. what i mean is this..


if someone drops 1000 iron ingots on the vendor, it spawns a runic hammer in the backpack of the player with that type set(iron)

and so on with other types of items likecloth for runic sewing kits ect
Horde_Pil is offline   Reply With Quote
Old 03-15-2004, 09:24 PM   #3 (permalink)
 
Join Date: Feb 2004
Location: New York City, USA
Age: 35
Posts: 39
Send a message via AIM to twoballcane
Default

Quote:
Originally Posted by Horde_Pil
well what i would sudgest, is they could set up a means to trade for the item so you could still use the distro scripts instead of writing a whole new item.. what i mean is this..
Make it and post it. I'd love to see it.
twoballcane is offline   Reply With Quote
Old 03-24-2004, 10:01 PM   #4 (permalink)
InnerStaff
Guest
 
Posts: n/a
Default

it comes with runuo!
  Reply With Quote
Old 04-24-2004, 11:19 PM   #5 (permalink)
 
Join Date: Feb 2004
Posts: 52
Default

Quote:
Originally Posted by InnerStaff
it comes with runuo!
What does? This scripted vendor or the one that lets you trade mass materials for a runic?

Point out the file for us, plz.
spooon is offline   Reply With Quote
Old 04-25-2004, 12:13 PM   #6 (permalink)
Forum Expert
 
Join Date: Jan 2004
Location: Florida
Age: 33
Posts: 544
Default

Quote:
Originally Posted by Horde_Pil
well what i would sudgest, is they could set up a means to trade for the item so you could still use the distro scripts instead of writing a whole new item.. what i mean is this..


if someone drops 1000 iron ingots on the vendor, it spawns a runic hammer in the backpack of the player with that type set(iron)

and so on with other types of items likecloth for runic sewing kits ect
You could do that and it wouldn't be that hard, but with the prices he has set on the hammers you would have to drop a lot more ingots on the vendor than you can carry to make it balance out. So either you will have to check for commodity deeds of ingots, or use the script like he did.

Personally, I dont have a problem with the hammers being constructable, they probably should have been anyway. But one comment would be to include all your hammers in 1 file. Having 8 or so files with 15 lines of code is annoying and you can have a bunch of classes in one file.
Avelyn is offline   Reply With Quote
Old 04-26-2004, 04:20 AM   #7 (permalink)
 
Join Date: Jan 2004
Age: 25
Posts: 14
Talking

Hey very nice work, maybe if someday i will finish seting up my shard i will put it.
Yamilo is offline   Reply With Quote
Old 08-28-2004, 11:50 AM   #8 (permalink)
 
Join Date: Jul 2004
Age: 18
Posts: 4
Question Changing Prices of Runics.

Hey, I was wondering if that first number after the runicval was the price, and changing that would hence change the price.

Add( new GenericBuyInfo( "Valorite Runic Hammer",typeof( RunicVal ), 5000000, 20, 5092, 2219 ) );

Thank You,
Admin Akuma
New Scripter
AdMiN Akuma is offline   Reply With Quote
Old 01-03-2005, 11:46 PM   #9 (permalink)
Forum Newbie
 
stooge's Avatar
 
Join Date: Dec 2004
Location: Moronica
Age: 35
Posts: 99
Default sorry for LATE (understatment) response

Quote:
Originally Posted by AdMiN Akuma
Hey, I was wondering if that first number after the runicval was the price, and changing that would hence change the price.

Add( new GenericBuyInfo( "Valorite Runic Hammer",typeof( RunicVal ), 5000000, 20, 5092, 2219 ) );

Thank You,
Admin Akuma
New Scripter
The answer is YES. That value represents the price.


I am twoballcane. I'm the original author of this script. I have been away from RunUo for a while. I have just come back. I forgot my password for my original account and had to make a new account for the forum. I can't use the password recovery option because the email address that "twoballcane" is registered to has long since been deleted. I contacted the admin so hopefully they can help me find another way to restore "twoballcane".
It's great to be back.
stooge is offline   Reply With Quote
Old 01-04-2005, 09:27 AM   #10 (permalink)
Forum Expert
 
Lucid Nagual's Avatar
 
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
Smile New Vendor

This is a custom vendor. It lists the names of the runics correctly. Hope this helps.



Edit* Also includes the SB info.
Attached Files
File Type: cs RunicVendor.cs (11.0 KB, 121 views)
Lucid Nagual is offline   Reply With Quote
Old 01-04-2005, 01:51 PM   #11 (permalink)
 
Join Date: May 2004
Age: 33
Posts: 38
Default

I like the new gump, that was a great way to get the names right. I do have one question. How do I get it to drop in the players pack instead of their bank box?
zmaint is offline   Reply With Quote
Old 01-04-2005, 05:10 PM   #12 (permalink)
Forum Expert
 
Lucid Nagual's Avatar
 
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
Smile Item Placement

Well, I figured people would feel safer if it went directly into the bank. And withdrawing gold from the bank is really the only option. Would you like it to still place the items in the backpack? If so let me know and I'll script it as an alternative.
Lucid Nagual is offline   Reply With Quote
Old 01-05-2005, 01:50 AM   #13 (permalink)
 
Join Date: May 2004
Age: 33
Posts: 38
Default

Let me know what I need to change it to and I will test it out. It may indeed be safer to place it in the bank box. I was wondering tho, what would happen if the bank is full?

I assume the change needs to be made here:

bank.DropItem( new RunicDC () );

for each item, then obviously the announcement of where it was placed..

Very nicely done, I have one vendor placed I am testing and I and my 2 GM's love it.
zmaint is offline   Reply With Quote
Old 01-05-2005, 05:28 AM   #14 (permalink)
Forum Expert
 
Lucid Nagual's Avatar
 
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
Post Drop in Backpack

This is how it should be changed:

Code:
 
else if ( info.ButtonID == 2)
 
{
 
if ( Banker.Withdraw( m_From, 3000 ) )
{
BankBox bank = m_From.BankBox; 
//bank.DropItem( new Bloodmoss () );
m_From.AddToBackpack(new Bloodmoss());
m_Vendor.PrivateOverheadMessage( MessageType.Label, 090, true,"Your Order of 1 Bloodmoss has been placed in your bank.", m_From.NetState );
}
else
m_Vendor.PrivateOverheadMessage( MessageType.Regular, 0x3B2, 500192, m_From.NetState );
}
 
Lucid Nagual is offline   Reply With Quote
Old 01-05-2005, 12:42 PM   #15 (permalink)
 
Join Date: May 2004
Age: 33
Posts: 38
Default

Thanks, I tested it and it does work. Now to take a vote and see how the guys on the shard would prefer it to work. Also did you figure out what it would do with the hammer (or other item) if the bank box is full?
zmaint is offline   Reply With Quote
Old 01-05-2005, 01:56 PM   #16 (permalink)
Forum Expert
 
Lucid Nagual's Avatar
 
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
Thumbs up Full Bankbox

I'm not sure but I think it will put the item in anyway. Cause when I use the command: [addtobank it places items in their banks regardless of weight. ......................OK just tested it and it works. I filled a players bankbox of weight. Then bought a colored anvil. Took the anvil out and tried to put back in and wouldn't let me cause it was too full.
Lucid Nagual is offline   Reply With Quote
Old 01-05-2005, 02:46 PM   #17 (permalink)
Forum Newbie
 
stooge's Avatar
 
Join Date: Dec 2004
Location: Moronica
Age: 35
Posts: 99
Default Glad I Inspired

Quote:
Originally Posted by Lucid Nagual
This is a custom vendor. It lists the names of the runics correctly. Hope this helps.



Edit* Also includes the SB info.

I'm glad the vendor I made months ago has inspired a new generation of custom NPC vendors. I was jsut wondering, shouldn't you have started a new thread though?

-twoballcane
stooge is offline   Reply With Quote
Old 01-05-2005, 04:23 PM   #18 (permalink)
Forum Expert
 
Lucid Nagual's Avatar
 
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
Smile Stooge

Yeah I didn't know where the original vendor came from. It is a wonderful script and has solved a lot of my vending problems. I thank u for it. I've even added other options such as res'ing, made new gumps, ect. As far as using a new thread...hum, well I actually made this cause I noticed people were having problems with the regular vending system for the Runic Dealer. I scripted this as soon as I read this thread and wanted to help everyone. I do have many other vendors like this and could post then in a new thread when I am done. And again thanks for the original script.
Lucid Nagual is offline   Reply With Quote
Old 01-05-2005, 04:27 PM   #19 (permalink)
 
Join Date: May 2004
Age: 33
Posts: 38
Default

Absolutely thanks to both of you! I have used Stooge's script to help me with some other custom vending problems, and I will definitely be interested in seeing the rest of Lucid's vendors. Thanks also for checking out the bank box thing, that was my biggest concern and I didnt have time to test it. I assumed you already had or I wouldn't have pestered you with it
zmaint is offline   Reply With Quote
Old 01-09-2005, 03:34 AM   #20 (permalink)
Forum Newbie
 
stooge's Avatar
 
Join Date: Dec 2004
Location: Moronica
Age: 35
Posts: 99
Default Happy to see it evolve.

I'm glad to see that my script inspired you. I'm pretty sure it was someone else's script somewhere down the line that initially inspired me. I actually created three NPC specialty vendors back in the day: The Runic vendor and the Arty and Ethy NPC vendors.
You may still be able to find them in the forum if you search submissions under my old username: twoballcane. You may be able to improve on them as well.

Keep up the great work.
stooge is offline   Reply With Quote
Old 05-04-2005, 06:27 PM   #21 (permalink)
 
Join Date: Feb 2004
Location: Earth
Age: 34
Posts: 158
Default

fast question where do I change the uses from the defualt from 5000 to say 50
__________________
All there souls belong to me on Nubblies shard.
smoksalot 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