Search results

  1. Lokai

    Trying to get chance based in mob.Luck

    The problem was declaring random multiple times. OK try this: double random; if (mob.Luck <= 499) random = 0.01; if (mob.Luck >= 500 && mob.Luck < 999) random = 0.02; if (mob.Luck >= 999 && mob.Luck < 1999) random = 0.03; if (mob.Luck >= 1999 && mob.Luck < 2999) random = 0.04...
  2. Lokai

    Trying to get chance based in mob.Luck

    Can you post the entire script and the entire error? Not sure based on your error where exactly the error is happening. Also, if you run in debug mode it will give the exact line number in the error.
  3. Lokai

    Randomize list of items, give randomly 8 items. [Runuo 2.0]

    I missed a period before the word Take.
  4. Lokai

    Randomize list of items, give randomly 8 items. [Runuo 2.0]

    This is a bit rough, but will get you going. var pack = player.Backpack(); var seed = randomstring.GetHashCode(); var random = new Random(seed); var types = new List<Type>() { typeof(Shoe), typeof(Cloak), typeof(Dagger), typeof(Sword)...
  5. Lokai

    Randomize list of items, give randomly 8 items. [Runuo 2.0]

    If available, linq is your best friend: YourList.OrderBy(x => rnd.Next()).Take(8) This also will ensure a max is reached but it might be less if the same item is selected more than once, which I think is what you wanted. non-linq solution: set up the method: public static List<T>...
  6. Lokai

    Invalid token when loading new repo script.

    Try this: https://support.microsoft.com/en-us/help/4054530/microsoft-net-framework-4-7-2-offline-installer-for-windows
  7. Lokai

    Invalid token when loading new repo script.

    Looks like you are missing a brace or some other punctuation, or the declaration is missing a keyword. You could post that script if you like.
  8. Lokai

    Invisible Target - Can't use skill

    OK. Now we need to see CSpell.cs. Hopefully we can get to the bottom of this.
  9. Lokai

    Invisible Target - Can't use skill

    OK. This doesn't tell us much. We'll need to see ClericSpell.cs next.
  10. Lokai

    Invisible Target - Can't use skill

    Please post one of your custom spells.
  11. Lokai

    Programmatically manipulate mobiles?

    Waypoints can do the movement part. Perhaps the waypoints can be created as part of the quest. Proximity sensors can make them say things along the way. Proximity spawners can make something appear and attack them during the trip. All of these things are possible with the existing scripts.
  12. Lokai

    some problems,i can,t use old save in the new versions ServUO .

    Correct. There is no way to use old save files with a new or different set of Server files. It would be (nearly) impossible to get that to work. There would almost certainly be many files which changed, which would cause serialization issues on many items and mobiles.
  13. Lokai

    Quest:Going Gumshoe cannot complete.

    Not done this quest before, but try marking the scrolls as quest items, then try to turn them in.
  14. Lokai

    Dung and Fertilizer System

    And, wait for it....
  15. Lokai

    xml script in game

    All mobs or certain mobs? If all mobs, then basecreature is the best place, if certain mobs, then in the individual creature's script maybe, or create a new class of creature with hued names, and use that class in xml
  16. Lokai

    xml script in game

    try font or basefont, but not both.
  17. Lokai

    Dung and Fertilizer System

    I would say not extremely hard. You would probably need to add a variable to the plants to store if they have been fertilized, so that you would only be able to do so one time, then add an "OnDoubleClick" method to the poop which lets you target a plant to fertilize. When it does so, just reduce...
  18. Lokai

    Journey Onward

    Welcome to the ServUO family!
  19. Lokai

    UO Black Box - Shard Utility Tool [Coming Soon]

    +1 for open sourcing...just saying

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back