Search results

  1. Po0ka

    Death Status

    [set bodyvalue 403 or 404 will turn your screen gray. It is most likely in the client, not in any scripts. I don't think you could force it via packets but it's worth a shot to verify.
  2. Po0ka

    m_Mobile.Controlled check in CombatTimer in Mobile.cs - child properties in parent class?

    Well, a PlayerMobile, a Wanderer, a TownCrier, etc. can't be controlled nor summoned. If you need to make checks in the superclass, you have to review your approach indeed, as what you suggest would impact on all the subclasses. Also, keep in mind that the core is built separatly from the...
  3. Po0ka

    Problema con mi mapa

    Are you sure your friend is using the right files using Razor? He needs to target the right "UO Data Directory" in the launcher box, and not auto select. To know your game version, you can, ingame, do "[who", select yourself, see version. Do the same for your friend.
  4. Po0ka

    Checking Buy and Sell

    Lol woups, good point xD A timer would be a good way indeed.
  5. Po0ka

    Checking Buy and Sell

    You would probably have to new field in BaseVendor.cs. (take the big file one) private bool m_inUse; public bool InUse { get { return m_inUse; } set { m_inUse = value; } } You don't have to serialize it, since you want it to reset on startup anyways. For the access to buy, see...
  6. Po0ka

    Is this the right way?

    A risky thing would be to create your own sort of cliloc system that would be serverside, ex: an XML reader/writer that you could even link ingame and affix translations on the go. That would prevent having to edit every scripts to change the translation. Or heck, you could even import JSON in...
  7. Po0ka

    Problema con mi mapa

    Other computer need same files. Server: map#.mul (.mul or .uop) statics#.mul (.mul or .uop) staidx#.mul (.mul or .uop) Client: map#.mul (.mul or .uop) statics#.mul (.mul or .uop) staidx#.mul (.mul or .uop) They need to be same copy. Also, be certain to edit: ServUO/Config/DataPath.cfg Be...
  8. Po0ka

    Translating ''Durability'' to "Durabilidad" :O

    LabelTo(m, String.Format("word: {0}", m_UsesRemaining.ToString())
  9. Po0ka

    No shadows!

    They messed up with the mobiles in the 7.0~ There's not much we can do.
  10. Po0ka

    basecreature.cs IsEnemy

    I'm not coding that much on servuo, so i guess that's up to those who code the most to provide some feedback on it, and if you add it, don't link it in the IsEnemy, i think it would be better to separate both functions to be sure each one does it's job regardless of the other so the overrides...
  11. Po0ka

    updating code edits...

    I've never tried git specifically for ServUO so i can't tell the best way to do so, but you can do it via git directly. Read every options and don't hesitate to ask questions, it's been a while since i used git and this is surely messy. https://git-scm.com/downloads I suggest you to take both...
  12. Po0ka

    basecreature.cs IsEnemy

    Splitting the IsEnemy function in two will add more complexity to the whole thing. All what relies on IsEnemy currently would have to override the IsEnemy but also the IsSpecialEnemy. Those who won't know about that change or having a custom npc script risk to see their things behaving wrongly.
  13. Po0ka

    custom map building help?

    http://uofiddler.polserver.com/ https://www.servuo.com/threads/centred-install-tutorial.1173/ https://www.servuo.com/threads/centred.1376/ http://www.uoarchitect.com/ http://downloads.runuo.net/index.php?dir=UOArchitect/ CentrED+ is pretty much straight forward, the instructions should be...
  14. Po0ka

    How can i...

    BaseCreature c = m as BaseCreature; Is the right thing to use. It will simply be null if it's not a BaseCreature, the other one will say it can't be casted to BaseCreature if it's not one.
  15. Po0ka

    How can i...

    Change the condition to this? if (m is PlayerMobile || (c != null && c.Controlled)) This will probably work, that's pretty much trial-error but if it's still not working then it's another problem.
  16. Po0ka

    General C# question about classes and (de)serialize

    You could fake the serializing process, and even making custom versions in those other classes if you do something like: Serialize(SerializerClassIDK serializer) { serializer.WriteInt(int); serializer.WriteBool(int); } then in your playermobile, thatclass.Serialize(serializer); Basically...
  17. Po0ka

    General C# question about classes and (de)serialize

    What is your other class for? Is it absolutely linked to playermobile? Would you like it to be saving it independantly?
  18. Po0ka

    Creature File Formal Style

    I'm of those who hate the { at the end of a line lol My mind is made to read "bracket to bracket" rather than "if to bracket" xD
  19. Po0ka

    Creature File Formal Style

    I'm not maintaining but here's my thoughts on that: 1: Don't put "this." everywhere, this is a real plague. Only use it when you need a reference to the instance like sending itself to a function or such. 2: I don't like when people put braces around single lined conditions... But from what i...
  20. Po0ka

    How can i add items here?

    The problem with getting it's name is that you need to create an instance of the said item in order to get it, but creating it will leave an unaccessible item in the world. Also, stuffs have three names: the Name, the DefaultName and the name it has in the client files, so this can be a bit more...

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back