• 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!

Search results

  1. Critico

    Ban ip

    try change: doAddIpBanishment(getPlayerIp(player), days * 24 * 60 * 60) to doAddIpBanishment(doConvertIntegerToIp(getPlayerIp(player)), days * 24 * 60 * 60) obs: unban use this function > doRemoveIpBanishment(ip[, mask])
  2. Critico

    [Mod] Auto Loot

    Version 9.6+: http://pastebin.com/gxr52zp8
  3. Critico

    Ban ip

    try this: function onSay(cid, words, param) local t = string.explode(string.lower(param), ",") if not t[1] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") return true end local player = getPlayerByNameWildcard(t[1])...
  4. Critico

    NPC Marriage system 8.6+ [Fixed]

    change doPlayerSetSpecialDescription(thing.uid,'.\n'..(getPlayerSex(thing.uid) == 0 and 'She' or 'He')..' is married to '..getPartner(thing.uid)) to doPlayerSetSpecialDescription(thing.uid,'.\n'..(getPlayerSex(thing.uid) == 0 and 'She' or 'He')..' is marriage with ['..getPartner(thing.uid)..'].')
  5. Critico

    [LUA] function ExistItemByName(name) [9.6+]

    getItemIdByName(name, false) PARAMETER FALSE not does work in server 9.6 in server 9.6 u need use getItemIdByName(name)
  6. Critico

    [LUA] function ExistItemByName(name) [9.6+]

    works, but has no need to use. parameter 'false' works in 9.6 < in 9.6 < use try: function onSay(cid, words, param) if not getItemIdByName(param, false) then -- parameter false works return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"this item does exist") end return...
  7. Critico

    [LUA] function ExistItemByName(name) [9.6+]

    About: I created this function because the function 'getItemIdByName(name)' no has the parameter 'false' to not display the error in console. function ExistItemByName(name) -- by vodka local items = io.open("data/items/items.xml", "r"):read("*all") local get = items:match('name="' ...
  8. Critico

    CreatureEvent Kills and Deaths on Look

    no, this mod is by db and and could be done by storage
  9. Critico

    CreatureEvent Kills and Deaths on Look

    function getPlayerFrags(cid) local time = os.time() local times = {today = (time - 86400), week = (time - (7 * 86400))} local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers`...
  10. Critico

    [Mod] Auto Loot

    If it says the item doesnt exist maybe you have a bad items.xml file.
  11. Critico

    Lua Prevent from error

    1° use exemple: if not isCreature(cid) then return LUA_ERROR end
  12. Critico

    Lua NPC Issue..

    if isInArray({'yes','fast pass'}, msg) then selfSay('Well.. i won\'t give it to you for free.. Are you willing to do me a favor?', cid) talkState[talkUser] = 1
  13. Critico

    Vip teleport scroll help

    function onUse(cid, item, fromPosition, itemEx, toPosition) local newPos = {x = 513, y = 810, z = 4} if getPlayerVipDays(cid) <= 0 then return doPlayerSendCancel(cid, "Sorry you are not vip.") end return doTeleportThing (cid, newPos) end
  14. Critico

    CreatureEvent Walking Effect On Outfit

    gives error? you need to be with full addon
  15. Critico

    [System] Weapon Hit Rank!

    bump
  16. Critico

    [Mod] Auto Loot

    bump
  17. Critico

    [Lua] doPlayerRemoveFrag(cid, count)

    About: The function is to remove amount frags(Player) function doPlayerRemoveFrag(cid, count) -- by vodka local query,t,k = db.getResult("SELECT `kill_id` FROM `player_killers` WHERE `player_id` = "..getPlayerGUID(cid)),{},0 if (query:getID() ~= -1) then repeat local gs =...
Back
Top