|
||
|
|
#1 (permalink) |
|
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] |
|
|
|
|
|
|
#2 (permalink) |
|
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 |
|
|
|
|
|
|
#6 (permalink) | |
|
Forum Expert
Join Date: Jan 2004
Location: Florida
Age: 33
Posts: 544
|
Quote:
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. |
|
|
|
|
|
|
#8 (permalink) |
|
Join Date: Jul 2004
Age: 18
Posts: 4
|
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 ![]() |
|
|
|
|
|
#9 (permalink) | |
|
Forum Newbie
Join Date: Dec 2004
Location: Moronica
Age: 35
Posts: 99
|
Quote:
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. |
|
|
|
|
|
|
#12 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
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.
|
|
|
|
|
|
#13 (permalink) |
|
Join Date: May 2004
Age: 33
Posts: 38
|
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. |
|
|
|
|
|
#14 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
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 );
}
|
|
|
|
|
|
#16 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
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.
|
|
|
|
|
|
#17 (permalink) | |
|
Forum Newbie
Join Date: Dec 2004
Location: Moronica
Age: 35
Posts: 99
|
Quote:
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 |
|
|
|
|
|
|
#18 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
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.
![]() |
|
|
|
|
|
#19 (permalink) |
|
Join Date: May 2004
Age: 33
Posts: 38
|
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
![]() |
|
|
|
|
|
#20 (permalink) |
|
Forum Newbie
Join Date: Dec 2004
Location: Moronica
Age: 35
Posts: 99
|
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|