• 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

    NPC Error

    change local talkState = {} to local Topic = {} =)
  2. Critico

    NPC City Guide, adding mapmarks to locations

    local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end...
  3. Critico

    [LUA] getContainerSlotsFree/getAllContainerFree

    About: function to check how many free slots the bag has function getContainerSlotsFree(container) -- by vodka return getContainerCap(container)-getContainerSize(container) end function getAllContainerFree(container) -- by vodka local containers,soma = {},0 for i = 0...
  4. Critico

    Onuse Im Haveing problems with elseif

    function onUse(cid,item,fromPosition,itemEx,toPosition) local id,time = 3490,20 local wall,ratp = {x = 1568, y = 1550, z = 10, stackpos = 1},{x = 1569, y = 1550, z = 10} doRemoveItem(getThingFromPos(wall).uid) doCleanTile(ratp,false) if getPlayerStorageValue(cid, 11207) <= 0 then...
  5. Critico

    Onuse Im Haveing problems with elseif

    try use stackpos {x = 1568, y = 1550, z = 10, stackpos = 1}
  6. Critico

    TalkAction Command !rank Update

    Ranks: All Skills level magic health mana frags Rank All Vocations exemple: !rank frags !rank magic !rank druid -- show top level druid/elder druid !rank knight -- show top level knight/elite knight druid data/talkactions/ranks.lua local config = { MaxPlayer = 20, fight_skills = {...
  7. Critico

    Function that checks items special description

    item.uid? try local a = getItemSpecialDescription(item)
  8. Critico

    CreatureEvent Kills and Deaths on Look

    True, I had not thought to do for storage... after, I post a new version. Thanks
  9. Critico

    CreatureEvent Kills and Deaths on Look

    About: Show in the look how many players you killed and how many deaths you have. KillsandDeath.lua function onLook(cid, thing, position, lookDistance) function getDeathsAndKills(cid, type) -- by vodka local query,d = db.getResult("SELECT `player_id` FROM "..(tostring(type) == "kill" and...
  10. Critico

    NPC Spell Seller For Trade

    spell directly
  11. Critico

    Table tile_store .. Does anybody have it ?

    try this CREATE TABLE `tile_store` ( `house_id` INT UNSIGNED NOT NULL, `world_id` TINYINT(4) UNSIGNED NOT NULL DEFAULT 0, `data` LONGBLOB NOT NULL, FOREIGN KEY (`house_id`) REFERENCES `houses` (`id`) ON DELETE CASCADE ) ENGINE = InnoDB;
  12. Critico

    [MOD] Skull system [LUA] [WAR SERVER]

    @up Player Not found dude, try this if isPlayer(cid) and isPlayer(target) then doCreatureSetSkullType(target, 0) addEvent(setSkullColor, 1, cid) end
  13. Critico

    fire effect behind you onMount ??

    yes, it is possible... use getCreatureOutfit(cid).lookMount
  14. Critico

    NPC Mount Seller X Items.

    this function is not necessarily function doPlayerGiveItem(cid, itemid, amount, subType) ... and who are the credits?
  15. Critico

    TalkAction Rank Vocation

    talk: function onSay(cid, words, param) local param,max,t = string.lower(param),20,{ ["sorcerer"] = {1,5}, ["druid"] = {2,6}, ["paladin"] = {3,7}, ["knight"] = {4,8} } if param == "" or not t[param] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"this vocation...
  16. Critico

    Lua Script not working

    try use stackpos = 1 or getTileItemById(pos,ID)
  17. Critico

    Lua Removing all frags and skulls script error

    function onThink(interval, lastExecution) if tostring(os.date("%X")):sub(1, 5) == "00:00" then doBroadcastMessage("All frags and Skulls are removede. Re-log please.") db.executeQuery("UPDATE killers SET unjustified = 0;") end return true end tag <globalevent name="CleanFrags"...
  18. Critico

    TalkAction Buy Stamina With Command

    getPlayerStamina(cid) ? don't work this code man -.-
Back
Top