Search results

  1. Add item to CharacterCreation

    If you are using the skillball that is in the resources here on servuo that was pulled from runuo you have the item named wrong. Look in the script on line 211 the constructable calls "SkillBall3()" instead of "SkillBall". Give that a look and make sure you are adding a New item that is named...
  2. ACC YardSystem

    Glad you got a laugh out of it. I was 16 hours into debugging various issues when that got dropped on me as a "must do right now". I was about to go serious bad on the array name but pulled it back to "yardcrap". From what I remember (this was 5 years ago) I had some players help me do some...
  3. ACC YardSystem

    I am not sure how well this will interface directly into servuo and I think I have included all pieces. I wrote this about 5 years ago and recently started thinking about uo emulation again. I added the following functions and function calls in basehouse.cs Add this to the onSecureTrade...
  4. ACC YardSystem

    I remember years ago in runuo this had an inherent issue. Players could put up a small house, put down deco then collapse the house. The deco would stay. also the owner of the deco would not transfer. I have the basehouse edits somewhere that I used for this.
  5. For Each loops

    Sorry It took me so long to get back to this, it has been a busy week. I made a command that dumps ItemIDs to the console. This should give you a better idea of how to do this. This worked on my Runuo 2.4.1 build. Hopefully all of this stuff works on your core also. Note: I did not add very...
  6. For Each loops

    Ya, it is something I will need to play with when I get home and have some free time. My work days leave me with minutes at home to look at stuff. I am sure this is something that will get resolved. I know I have looped over lists and collections extracting data or deleting items. I just...
  7. For Each loops

    hmm. C# has a .Length and other people have used .Count to get the size of an array. This is something I will have to look at some time when I am at home PC. Then again I also use a RUNUO 2.4 core and there might be some differences to a ServUO or JustUO core. If no one else has a solution...
  8. For Each loops

    I would think something like this would work. It is hard to tell without seeing the rest of code for the gump for (int i = 0; i < mPouch.Length; i++) { console.Writeline(mPouch[i].ItemID); } Of course once you are sure the for loop is working you can change the write line to do what you...
  9. For Each loops

    Here is some code I generated for moving shrunken pets out of a person's backpack and into their bank. Maybe it will help public static void BankShrunkenPets(PlayerMobile pm) { Backpack bag = new Backpack(); bag.Hue = 32; ArrayList shrunkenitems = new...
  10. For Each loops

    if mPouch is some kind of bag it already is an array and you do not need to assign it to a new list. You can just loop through it. I would also add some debug info like an if (mPouch.count == 0) console.Writeline("the bag is empty"); else { //what you want it to do } That might help...
  11. Staff Robe doesnt hue itself like it's supposed to.

    I will try and explain what happen and why the above code did not work. This is purely for learning and explanation purposes: When you declare a variable you can either initialize it or leave it un-initialized: initialized is like so private int someNumber = 3; un-initialized is like so...
  12. BankBox Gold Problem

    Thank you Steelcap. I have only done programming on RUNUO cores and both servers I coded for used gold ledgers. I never really had to interact with gold in the bank box. I will have to look at RUNUO and see if ConsumeTotal is handled the same way (or if they use a different command).
  13. BankBox Gold Problem

    I am at work and basically guessed on that part. There is a function of the bankbox that tracks how much gold is in there. That is what you want to use at that part.
  14. BankBox Gold Problem

    here is a rough idea of what I am talking about. I am not home and I cannot check if this will compile but it should point you in the right direction: if (from.BankBox.GoldTotal >= 100000) { from.BankBox.ConsumeTotal( typeof( Gold ), 100000 ); bought = true; }...
  15. BankBox Gold Problem

    Looking at your script lines 163 to 173 execute regardless if the money is taken or not. There needs to be some flow control (if statements) toggling your bool for bought. After it is confirmed the player made the purchase then only execute those lines of code if bought is true.
  16. Server crashing when creatures goes over custom teleport.

    I think it is late for me also (work night shift).
  17. Server crashing when creatures goes over custom teleport.

    Looking at your script you do an effect at the ending location but you do not actually move the player to that location. I am at work right now and cannot post the actual code but that is what you are lacking.
  18. ComputeSkillTotal error

    Glad I was able to help.
  19. ComputeSkillTotal error

    int theirTotal = (int)(m.SkillsTotal); int ourTotal = (int)(this.SkillsTotal); int pointsToGain = (int)(1 + ((theirTotal - ourTotal) / 50)); What these should do is force an explicit conversion from a double to an int. This should drop everything after the decimal point. Looking at what you...
  20. ComputeSkillTotal error

    double theirTotal = m.SkillsTotal; double ourTotal = this.SkillsTotal; That is how I would do this. SkillsTotal is a variable within the mobile script and not a method. Sorry I did not look closely at it the first time (dog distraction). this is assuming that part of the core is the same as...
Back