• 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. milbradt

    Solved [PHP] foreach #help '-'

    I had achieved through their code. =) Thanks!!! It worked perfectly, looked like this: $mysqli = new mysqli($config['database']['host'], $config['database']['login'], $config['database']['password']), $config['database']['database']; if ($mysqli->connect_errno) { printf("Connect failed...
  2. milbradt

    Solved [PHP] foreach #help '-'

    Thanks man!!!! =D Solved!
  3. milbradt

    Solved [PHP] foreach #help '-'

    Because some errors used direct information. Result: object(mysqli_result)#2 (5) { ["current_field"]=> int(0) ["field_count"]=> int(7) ["lengths"]=> array(7) { [0]=> int(4) [1]=> int(12) [2]=> int(6) [3]=> int(3) [4]=> int(8) [5]=>...
  4. milbradt

    Solved [PHP] foreach #help '-'

    Up
  5. milbradt

    Solved [PHP] foreach #help '-'

    Up
  6. milbradt

    Solved [PHP] foreach #help '-'

    I'll cut to the chase. Not Working: <?php #CONFIGS require("../var/www/config.php"); $connection = mysql_connect($config['database']['host'], $config['database']['login'], $config['database']['password']); mysql_select_db($config['database']['database'], $connection); #ENDCONFIGS...
  7. milbradt

    Compiling condition healthGainPercent

    To create a new health condition, need to change which files.cpp? condition.cpp /condition.h which other files?
  8. milbradt

    Programmer Solved

    Done! Thanks.
  9. milbradt

    Lua math.random

    Hello.. How do I add a command within this math.random? local health = potion.health if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.healthMultiplier))) then return false end Example: local POTIONS...
  10. milbradt

    Lua Largest value within an array.

    Yes, using a potion on another potion. I tested it, and it looks like it worked. Thanks man!!!!! Using tfs 1.2
  11. milbradt

    Lua Largest value within an array.

    Yea I want to check the damage value of the two items. If the damage of the item you'll use is greater than the hit item. My english it's bad =\ Srry Example..
  12. milbradt

    Lua Largest value within an array.

    Example +-... =S local potion = { [1111] = { damage = 850, def = 450 }, [1112] = { damage = 600, def = 500 } } function onUse(cid, item, fromPosition, itemEx, toPosition) if toPosition:getTile() then if itemEx.potion[getItemById(potion.damage)] >...
  13. milbradt

    [Modern Aac] Apostrophe in characters name

    Thanks man!!!! =)
  14. milbradt

    [Modern Aac] Apostrophe in characters name

    Hello! I think it is this function that checks if the name is valid. htdocs/system/libraries/Form_validation.php function nickname($str) { $a = explode(' ', $str); $error = 0; foreach($a as $b)...
  15. milbradt

    Pagseguro automatic. Pay $20

    Interested add skype or msg. skype: lucasmilbradt
  16. milbradt

    Lua Check Name Apostrophe

    Solved.. Srry. =s (string.find(getCreatureName(cid):lower(), "[^%l%s]") ~= nil)
  17. milbradt

    Lua getCreatureSummons on getCreatureName

    function onCastSpell(cid, var) local summons = getCreatureSummons(cid) if #summons > 0 then for _, pid in pairs(summons) do if getCreatureName(pid) == "Demon" then return doCombat(cid, combat, var) end end doPlayerSendCancel(cid, "You need to summon a Demon to use this spell.") else...
  18. milbradt

    Lua for not Work...

    Thanks you all. Thanks man!! @topic, Solved.
  19. milbradt

    Lua for not Work...

    was not it. they said that the index is repeated ... [1111] = {x = 82, y = 175, z = 7}, [1111] = {x = 82, y = 174, z = 7}, [1111] = {x = 82, y = 172, z = 7}, You know how to fix the config?
Back
Top