Search results

  1. Bonaccorso

    Can't add BottleOfLiquor to vendors - complier can't find namespace

    Yeah, that's where I got confused, and panicked a bit, when a game, which I didn't change after a previous play, showed me fatal error :-) Didn't know such things could happen. Thanks for the explanation!
  2. Bonaccorso

    Can't add BottleOfLiquor to vendors - complier can't find namespace

    Thank you, it seems to work fine! You saved my scripting again :)
  3. Bonaccorso

    Can't add BottleOfLiquor to vendors - complier can't find namespace

    Need help, I'm very confused now - I was able to complie and launch the game yesterday with this file, but today I tried to recomplie (by accident, isntead of launching) and I get an error, despite I changed nothing! The weirdest thing is that I get error on loading world, not on complie...
  4. Bonaccorso

    Making hirable npcs to work for free/for item

    I've got an idea to make a type of hirables based on BaseHire.cs (I'll make new CustomBaseHire.cs), who will work not for money but for something different. Now I'm trying to figure out three cases: 1. How can they work for free? Now they are hired when given gold, so it's likely has something...
  5. Bonaccorso

    Can't add BottleOfLiquor to vendors - complier can't find namespace

    Wow, thansk for the detaield review! Yes, it seems it's much easier to create several new objects BottleOf... than rewriting the script :) I'll go with this so far. Didn't code for a really long time before starting with servuo.
  6. Bonaccorso

    Can't add BottleOfLiquor to vendors - complier can't find namespace

    It works, thank you! I didn't even think it's the right construction :)
  7. Bonaccorso

    Can't add BottleOfLiquor to vendors - complier can't find namespace

    I'm trying to do as you adviced, but now I got an unexpected problem with a new BottleofBourbon item. Here's its code: using Server.Items; using System; using Server.Engines.Craft; using Server.Engines.Distillation; namespace Server.Engines.Distillation { public class BottleOfBourbon ...
  8. Bonaccorso

    Can't add BottleOfLiquor to vendors - complier can't find namespace

    I tried to follow his construction from GenericBuy.cs public GenericBuyInfo(Type type, int price, int amount, int itemID, int hue, object[] args, bool stacks = false) : this(null, type, price, amount, itemID, hue, args, stacks) and used a line like this Add(new...
  9. Bonaccorso

    Can't add BottleOfLiquor to vendors - complier can't find namespace

    It didnt work unfortunately - now there's another error for that line of bottleofliquor, that VendorInfo\SBWaiter.cs(23,13): error CS1729: 'BeverageBuyInfo" doesn't have constructor which recives arguments 5. Translating that text to English so I'm not sure how this could sound originally...
  10. Bonaccorso

    Can't add BottleOfLiquor to vendors - complier can't find namespace

    Yes, it seems I didn't add it. I'll try when I'm near my laptop, thank you!
  11. Bonaccorso

    Can't add BottleOfLiquor to vendors - complier can't find namespace

    I'm trying to add an item BottleOfLiquor from \Scripts\Services\New Magincia\Distillation\Items to Waiter vendor with a line: Add(new BeverageBuyInfo(typeof(BottleOfLiquor), Liquor.Bourbon, 7, 20, 0x99B, 0)); but I get two errors at once: 1. that the type or namespace BottleOfLiquor can't be...
  12. Bonaccorso

    Making water in WaterBarrel endless

    Thank you so much! Started to test it :-)
  13. Bonaccorso

    Making water in WaterBarrel endless

    I found out that decorative barrels with water can't be used to refill water pitchers, and tried adding WaterBarrels instead; but I was surprised to find out that they are added empty, and while they can be filled by adding quantity to their props, they are not endless - at max, 100 uses only...
  14. Bonaccorso

    Creating Animal Buyer

    Solved the problem in Xantos shrink - it has two, in fact: 1. its XML has weight in wrong format, 10.0 instead of 10,0 2. The error during the complie in HitchingPost.cs - changed the line: public override bool ForceShowProperties{ get{ return ObjectPropertyList.Enabled; }} on this: public...
  15. Bonaccorso

    Creating Animal Buyer

    It's more abotu flavor and quests than about income :) But btw, howcomes that tamers don't have much need for cash? 1599392670 Thank you so much, I'll experiment today! I found Shrink.cfg and ShrinkTables.cs in the distrib but they don't seem to be what I need. Is this a good one -...
  16. Bonaccorso

    Creating Animal Buyer

    I'm trying to make Animal Trainer (or some separate vendor) also to buy animals, but so far I didn't find how can it be done properly. Of course jsut adding animals in to buy list doesn't work, sadly :-( I read the code from Ultima Adventures (UpdatedAnimalTrainerLord.cs) where there is such a...
  17. Bonaccorso

    Making non-attacking version of monster/brigand?

    I experimentd, and alwaysmurderer=>false really makes them peaceful, regardless of other options set. But most of mobs aside of human ones, don't use it. Instead, it's a combination of FightMode and bool IsEnemy: FightMode.Closest makes them attack player (or maybe some npcs as well - but not...
  18. Bonaccorso

    Spawning mounted NPCs

    Excellent! Thanks a lot, before I was reviewing ChaosDragoons and SavageRiders but completely missed the first line where the mount is added in both.
  19. Bonaccorso

    Spawning mounted NPCs

    Thank you! Or other ridable animal instead of "Horse"?
  20. Bonaccorso

    Spawning mounted NPCs

    Does anybody have example codes or manuals how to spawn mounted NPCs? So far I only found a couple of dead links on the old RunUO site.

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back