• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Recent content by Holloweye

  1. H

    Feature Random Attributes

    If you send me a PM I might help you with the errors, if you still have them but I can't ensure that I can help because I don't have a environment setup.
  2. H

    Feature Random Attributes

    Probably a limitation on the server.
  3. H

    Compiling YATC Compile

    Have been trying to compile YATC with CodeBlocks. Well I can rebuild it and compile it. But when I try to log in to my server i get this error message. (Works with a normal Tibia client or YATC already built from website so nothing wrong with the server.) Error Message: There was a...
  4. H

    Just Started Spriting.

    Necro Armor and Icy poker looks great!
  5. H

    [Photoshop] Fat to Hot

    I also tried.... Here is my result:
  6. H

    Feature Random Attributes

    It is random when looted, bought and created with lua.
  7. H

    Need Radom player chose!

    Yeah, I see now that autoList is a static varibale in the Player class. Or many of the classes use it so I guess its like a generic vector. I reply if I find solution.
  8. H

    Need Radom player chose!

    I guess it would be something like this. I havent tried the code or debugged it. You can try compile but I dont think it will work. But you get the idea how you can add LUA functions. luascript.h below: //lua functions add this: static int32_t luaSelectRandomPlayer(lua_State* L)...
  9. H

    Cast a spell on hit

    I want to do it only in C++ no LUA scripting. I have been trying some. I have made it so it dont crash anymore.. its a start :).
  10. H

    Feature Random Attributes

    INFORMATION This code will give you the option to make a attribute randomized each time a item is created. IMPLEMENTATION Find this in Item.cpp: setDefaultDuration(); if(it.isFluidContainer() || it.isSplash()) setFluidType(amount); else if(it.stackable && amount) count = amount...
  11. H

    Random Attributes

    Yeah I have done it. I realease the whole thing on the code section: http://otland.net/f35/random-attributes-71833/#post736133 It dont work that way. If you would do it like that then everyitem that use that attribute will either have random or not on that attribute. Hard to explain.
  12. H

    Cast a spell on hit

    So I have been working with a attribute for items that will give you a certen % of chance to cast a spell. It look like this in the items.xml: <item id="2380" article="a" name="hand axe"> <attribute key="weight" value="1800" /> <attribute key="spellOnHit" value="Light" chance="50" />...
  13. H

    Random Attributes

    Yeah I did find out why. I tried the: it.armorRndMin + rand() % (it.armorRndMax - it.armorRndMin)) part for it self turns out if you make random 4-8 it will be 4-7 so all you need to do is change it to this: it.armorRndMin + rand() % (it.armorRndMax+1 - it.armorRndMin)) So now I made a simple...
  14. H

    Random Attributes

    Have you rebuild all? (Execute -> Rebuild all)
  15. H

    Random Attributes

    Sure you added all the things? And rebuild it?
Back
Top