• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. Codex NG

    Solved Health/Mana Percentages

    If you were the adult in this back and forth you wouldn't have replied or justified your reply... just saying :rolleyes:
  2. Codex NG

    Solved Health/Mana Percentages

    Indeed, I work for criminal justice system.. where do you work Mc'Donalds?
  3. Codex NG

    Solved Health/Mana Percentages

    Your right I do act like this is real life, I insult others and it pays :) I also help others and that pays too. :)
  4. Codex NG

    Solved Health/Mana Percentages

    Yep too busy with real life, work takes up most of my time... bet you wouldn't know anything about that tho... having a life ;)
  5. Codex NG

    Solved Health/Mana Percentages

    Don't you have bots to entertain? I would say players but who are you kidding :p
  6. Codex NG

    Solved Health/Mana Percentages

    Unlike yourself 95% of my posts is code, helping others with their script issues or sharing code I've constructed from scratch to the public so they can use it on their servers or portions of it in their scripts. Yes sharing... :)
  7. Codex NG

    Lua Compare SKILL sword > SKILL club

    I thought they were called arrays too once. Tables are similar to arrays or at the very least an associative array. Here are a few examples on how you can store and access values in a table. Assign value by property local x = 4 local myTable = {} myTable.legs = x Is the same thing as local...
  8. Codex NG

    Lua About tables..

    When in doubt print(rand) :), you will be using print a lot when writing scripts.
  9. Codex NG

    Lua About tables..

    local config = { [9808] = { -- Common Rusty Armor [1] = {id = 2464, name = "Chain Armor", chance = 6994}, [2] = {id = 2483, name = "Scale Armor", chance = 3952}, [3] = {id = 2465, name = "Brass Armor", chance = 1502}, [4] = {id = 2463, name = "Plate Armor"...
  10. Codex NG

    Lua About tables..

    Ok so it isn't returning true, where is the rest of the code?
  11. Codex NG

    Lua About tables..

    print(targetItem)
  12. Codex NG

    Evolution - 7.92 XML - how to track crashes?

    If everyone was like me there would be no need for the support or requests board bud :p
  13. Codex NG

    Vocation specific healing spell

    function onCastSpell(cid, var) local level = getPlayerLevel(cid) local magicLevel = getPlayerMagLevel(cid) local position = getCreaturePosition(cid) local playerVocation = getPlayerVocation(cid) local mp, hp = 0, 0 local minHealth = (level * 11.0) + (magicLevel * 4)...
  14. Codex NG

    Vocation specific healing spell

    If you are going to be comparing multiple numbers against 1 value always use isInArray. Example: if isInArray({4, 8, 12}, playerVoc) then -- do something end Also don't call the same function over and over, call it once and store it. local level = getPlayerLevel(cid) local magicLevel =...
  15. Codex NG

    Lua Compare SKILL sword > SKILL club

    I am not re-writing this whole script... I'll just share what I re-wrote This is your code local gold if (( getPlayerStorageValue(cid, storages.difficult) ) == 2) then if ((getPlayerStorageValue(cid, storages.length)) == 2 ) then gold = 5000 elseif ((getPlayerStorageValue(cid...
  16. Codex NG

    Lua Compare SKILL sword > SKILL club

    If the code becomes excessively large and you are writing or copy and pasting the same code over and over or the same formula with different values, always create a function to simplify the the code. Makes it a lot easier to trouble shoot errors, plus it saves space.
Back
Top