Search results

  1. EM looking for shard

    Hi, and thanks for reading. I have recently found myself without a shard to work on. I had been doing some scripting for the last year or so on a shard that never really took off and I found that I really enjoyed building events and working with the community to drive a story. I generally...
  2. communicating with origin

    Did you forward the port in your router?
  3. Inaccessible items

    Inaccessible items are generally caused by items not being moved to a map or deleted. It can be pretty hard to track down where they are being created. I'd start by going to all the places where you have used new ItemName() and making sure you are deleting them with itemName.Delete() it or using...
  4. Distillation Quest?

    The LiquorBarrel class has an m_Liquor property that should be able to be used as a qualifier. It holds a Liquor enum with a Liquor accessor, so something like: if (barrel.Liquor == Liquor.Whiskey) { //Accept } else { //Deny }
  5. Code names and what they mean?

    If you use visual studio, you can right-click on stuff and go to it's definition or find references so you can see exactly what something does and examples of how it's used. I highly recommend it.
  6. Code names and what they mean?

    Serialize and deserialize are called on save and load respectively. In programming, serialization is the act of writing objects to a file to be converted back to objects later.
  7. Beetle error

    The error here is saying that you need a semicolon after a statement. The first error you posted is saying you are trying to pass 2 arguments into a method called Construct(), but there is no method of that name that takes 2 arguments. Are you using Visual Studio? You would have a much easier...
  8. I'm having Evo script issues. Throwing errors and could use some help.

    Well, that is because the method you are overriding, Damage(), needs to return an int. You are trying to return void.
  9. I'm having Evo script issues. Throwing errors and could use some help.

    kpgainmin and kpgainmax are int. If you perform math with division, they could return a value that is not int. Try this: kpgainmin = Math.Round(5 + ( bc.HitsMax ) / 10); kpgainmax = Math.Round(5 + ( bc.HitsMax ) / 5); This should round those to their nearest int using regular grade-school...
  10. Yeah I have more questions..

    A long is a 64-bit integer where an int is a 32-bit integer. It should be safe to cast a long to an int if you never plan on the number exceeding 2,147,483,647 or -2,147,483,647. A uint or ulong are unsigned integers meaning they cannot go below 0. If they do, they will roll over so -1 would be...
  11. Coder?

    public override void OnHit(Mobile attacker, IDamageable damageable, double damageBonus) { base.OnHit(attacker, damageable, damageBonus); if (!attacker.CanBeHarmful(damageable, false)) { return; }...
Back