Ir para conteúdo

jjunior89

Membro
  • Registro em

  • Última visita

Tudo que jjunior89 postou

  1. Olá Pessoal, estou com problema nos meus scripts, estou fazendo um ot oldschool no otx 3.10 mas estou com problema, aparentemente eu já sei onde está o problema mas não sei como resolver, no caso a linha do script do npc é, (isso com todos os arquivos dentro da pasta script) npcHandler:say('Splendid! Here take your pickaxe.') os say do npc só funcionam se eu colocar ,cid no final, ficando assim npcHandler:say('Splendid! Here take your pickaxe.',cid) fazendo isso funciona, mas são mais de 200 scripts, então eu queria arrumar essa função no npc handler para não precisar mudar todos os scripts de um a um, alguem tem ideia de como fazer ? Diga em poucas palavras a base utilizada (Nome do servidor ou nome do website). otx3.10 Base: otx3.10 baseado no tfs Qual erro está surgindo/O que você procura? [C]: in function '__newindex' data/npc/lib/npcsystem/npchandler.lua:609: in function 'say' data/npc/scripts/aldee.lua:19: in function 'callback' data/npc/lib/npcsystem/npchandler.lua:415: in function 'onCreatureSay' data/npc/scripts/aldee.lua:7: in function <data/npc/scripts/aldee.lua:7> Você tem o código disponível? Se tiver publique-o aqui: npcHandler:say('Splendid! Here take your pickaxe.') npcHandler:say('Splendid! Here take your pickaxe.') function NpcHandler:onCreatureSay(creature, msgtype, msg) local cid = creature:getId() local callback = self:getCallback(CALLBACK_CREATURE_SAY) if callback == nil or callback(cid, msgtype, msg) then if self:processModuleCallback(CALLBACK_CREATURE_SAY, cid, msgtype, msg) then if not self:isInRange(cid) then return end if self.keywordHandler ~= nil then if self:isFocused(cid) or not self:isFocused(cid) then local ret = self.keywordHandler:processMessage(cid, msg) if not ret then local callback = self:getCallback(CALLBACK_MESSAGE_DEFAULT) if callback ~= nil and callback(cid, msgtype, msg) then self.talkStart[cid] = os.time() end else self.talkStart[cid] = os.time() end end end end end end function NpcHandler:say(message, focus, publicize, shallDelay, delay) if type(message) == "table" then return self:doNPCTalkALot(message, delay or 6000, focus) end if self.eventDelayedSay[focus] then self:cancelNPCTalk(self.eventDelayedSay[focus]) end local shallDelay = not shallDelay and true or shallDelay if NPCHANDLER_TALKDELAY == TALKDELAY_NONE or shallDelay == false then selfSay(message, focus, publicize and true or false) return end stopEvent(self.eventSay[focus]) self.eventSay[focus] = addEvent(function(npcId, message, focusId) local npc = Npc(npcId) if npc == nil then return end local player = Player(focusId) if player then npc:say(message:gsub("|PLAYERNAME|", player:getName()), TALKTYPE_SAY) end end, self.talkDelayTime * 1000, Npc():getId(), message, focus) end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  2. Oi Galera, estou apanhando pra esse servidor rsrsrsrs compilei ele em linux, coloquei ele pra rodar, com as configurações certas pro config.lua...ip global etc.., tudo criado de acordo, ele sobe normal, mas eu simplesmente não consigo me conectar nele, estou tentando conectar de fora, coloquei ele no google cloud, na duvida eu compilei outro servidor e funcionou normal, e nao é portas por no server alternativa me conectei normal com as mesmas portas, ele simplesmente sobe sem nenhum erro mas nao consigo conectar no otclient ou no client tibia 7.72, como se nao tivesse nem conectando no server, dá o erro de connection timeout no client depois de um tempo, alguem sabe oq pode ser ? -------- config.lua -------- -- Config file for OTServ -- ---------------------------- -- data directory location datadir = "data/" -- map location map = "data/world/world.otbm" -- Type of map storage, -- 'relational' - Slower, but possible to run database queries to change all items to another id for example. -- 'binary' - Faster, but you cannot run DB queries. -- To switch, load server with the current type, change the type in config.lua -- type /reload config and the save the server with /closeserver serversave map_store_type = "binary" -- mapkind -- options: OTBM for binary map, XML for OTX map mapkind = "OTBM" -- server name servername = "OTServ" -- server location location = "Germany" -- server ip (the ip that server listens on) ip = "99.5.33.34" -- login server port -- This should be the port used for connecting with IP changers etc. login_port = "7171" -- game server port -- game server must be on it's own port (due to limits of the protocol) game_port = "7172" -- status port -- Used by status protocol connections, should be same as login -- to work correctly with server lists etc. status_port = "7171" -- admin port -- Port used by the OTAdmin protocol admin_port = "7171" -- server url url = "http://otland.net" -- server owner name ownername = "Ezzz" -- server owner email owneremail = "" -- world name worldname = "OTHire" -- world type -- options: openpvp/pvp, optionalpvp/no-pvp, hardcorepvp/pvp-enforced worldtype = "pvp" -- Auto Stack items in containers (like in newer Tibia versions) container_items_auto_stack = false -- does player rate (from lua functions) count on experience gained from killings players on pvp-e worlds? rates_for_player_killing = false -- exhausted time in ms (1000 = 1 second) for "yell" speak type exhausted = 30000 -- exhausted time in ms (1000 = 1 second) for aggressive spells/weapons fightexhausted = 2000 -- exhausted time in ms (1000 = 1 second) for none-aggressive spells healexhausted = 1000 -- exhausted time in ms (1000 = 1 second) for floor changing stairhop_exhausted = 2000 -- how many ms to add if the player is already exhausted and tries to cast a spell/yells (1000 = 1 second) exhaustedadd = 5000 -- how long does the player has to stay out of fight to get pz unlocked in ms (1000 = 1 second) in_fight_duration = 60000 -- how long a field belongs to a player before it no longer causes PZ lock for the owner field_ownership_duration = 5000 -- When a player dies, how many of the assisting players (ie. how many of those who made damage) should be stored i n database? death_assist_count = 10 -- Should only the player who did the last hit get the 15-minute pz lock? last_hit_pzblock_only = true -- minimum amount of time between actions ('Use') (1000 = 1 second) minactioninterval = 200 -- minimum amount of time between extended actions ('Use with...') (1000 = 1 second) minactionexinterval = 1000 -- house rent period -- options: daily, weekly, monthly houserentperiod = "monthly" -- whether or not to check for premium accounts when using beds premonlybeds = true -- Should the server use account balance system or depot system for paying houses? use_balance_house_paying = true -- How long time the red skull will last in seconds (default 30 days) red_skull_duration = 30*24*60*60 -- White skull duration, how long a player will get pz locked/white skull unjust_skull_duration = 15*60*1000 -- Enable this and players will get pzlocked regardless of being the aggressor or not (<8.5 this was set to true) defensive_pz_lock = true -- How many players you need to kill to gain a red skull per day/week/month -- Set 0 to disable kills_per_day_red_skull = 3 kills_per_week_red_skull = 5 kills_per_month_red_skull = 10 -- In Oldschool you would get banned by doubling the needed month unjustified kills for red skull kills_to_ban = 20 -- Broadcast violation window banishments broadcast_banishments = "no" -- Violation window config max_violation_comment_size = 255 notations_to_banishment = 3 warnings_to_final_banishment = 4 warnings_to_deletion = 5 banishment_length = 7*86400 --seconds final_banishment_length = 30*86400 --seconds ip_banishment_length = 86400 --seconds -- Extra experience % per player when sharing experience party_exp_mul = 5 -- Anti-MageBomb system -- This system works as in Tibia, time in milliseconds login_attack_delay = 10*1000 -- AFK Configuration (in milliseconds, but use values for minutes) -- Maximum time a player can stay away from keyboard before being kicked max_idle_time = 16*60*1000 -- Player will be warned about being kicked at this time max_idle_time_warning = 15*60*1000 -- Exp Stages configuration is in /data/exp_stages.lua experience_stages = false -- rates (experience, skill, magic level, loot and spawn) rate_exp = 1 rate_exp_pvp = 0 rate_skill = 1 rate_mag = 1 rate_loot = 1 rate_spawn = 1 -- Rookgaard system -- level_to_rook if player reach this level he is sento to newbie island at level 1 level_to_rook = 5 -- rook_temple_id newbie island temple id rook_temple_id = 2 storage_sendrook = 49786 -- What message should be sent for the player, after its own death? Use "" to disable. death_msg = "You are dead." --should players be able to rope creatures (like at older versions of tibia)? can_rope_creatures = true --how many floors away of a player should a monster be to become idle? --WARNING: setting this as any number bigger than 3 may increase CPU usage and --setting this to any value smaller than 2 will make nearly impossible to rope monsters from a hole height_minimum_for_idle = 2 -- Should the level requirements on runes be used [default: false] use_rune_level_requirements = false -- Remove ammunition -- If false, ammunition will not be removed when using distance weapons -- (or other weapons that use ammunition) remove_ammunition = true -- Remove rune charges -- This only applies to runes done using the default functions. -- Custom runes made using actions will not be affected. remove_rune_charges = true -- Remove weapon charges -- Set to false to disable charges disappearing from weapons on use remove_weapon_charges = true - Distance weapon configuration -- Should exhaustion and action time be checked for using a distance weapon? distance_weapon_interrupt_swing = true -- Wands configuration exhaustion -- Should exhaustion and action time be checked for using wands? wands_interrupt_swing = true -- maximum amount of items inside of a container (including the items inside of any container inside of it) -- Use 0 for infinite max_amount_items_inside_containers = 2000 -- maximum amount of containers inside of a player inventory -- it fixes some CPU bug so it's not recommended to change this value to very high max_containers_inside_player_inventory = 100 --maximal length for chains of containers (i.e, a container inside of a container which is inside of a container... ) max_deepness_of_chain_of_containers = 500 --should OTServ bind only global IP address ? bind_only_global_address = true -- How many items can be stacked in a single tile (all type of tiles)(client side)? DO NOT CHANGE IT UNLESS THAT YO U KNOW WHAT YOU ARE DOING max_stack_size = 1000 -- How many items can be stacked in a normal tile ? (0 = max_stack_size) tile_limit = 0 -- How many items can be stacked in a protection zone tile ? (0 = max_stack_size) protection_tile_limit = 0 -- How many items can be stacked in a house zone tile ? (0 = max_stack_size) house_tile_limit = 0 -- fist fighting configuration -- How strong should be the attack using bare hands (fist fighting)? fist_strength = 7 -- Allow gamemaster multiclient login to everybody? allow_gamemaster_multiclient = true -- despawn configs -- how many floors can a monster go from his spawn before despawning despawnrange = 2 -- how many square metters can a monster be far from his spawn before despawning despawnradius = 50 --should players be able to hit invisible creatures using not AOE runes? (default: true) can_attack_invisible = true --players with a level smaller than this number can't be attacked by other players. Set it to to 0 to disable min_pvp_level = 0 --how much % of the total damage players actually receive when attacked by other players? --Old Tibia has this in 100% pvp_damage = 100 --should pvp restrictions apply to summons too? -- (experimental code - requires otserv to be compiled with flag __MIN_PVP_LEVEL_APPLIES_TO_SUMMONS__) min_pvp_level_applies_to_summons = true -- How many milliseconds (1 sec = 1000) we should wait until the player will be pushed by another player. push_interval = 2000 -- How many milliseconds a player should wait until he can move another item after moving one (0 disables it) move_item_interval = 500 -- max number of messages a player can say before getting muted (default 4), set to 0 to disable muting maxmessagebuffer = 4 -- if you doesn't wish to see errors like this: "Error: Expected an integer/boolean parameter" --(it means that you are missing an return somewhere but this is not so important and is just spamming your console on a production server) then set this to false lua_excepted_type_errors_enabled = false -- motd (the message box that you sometimes get before you choose characters) motd = "Welcome to OTHire." -- login message loginmsg = "Welcome to OTHire." -- how many logins attempts until ip is temporary disabled -- set to 0 to disable logintries = 5 -- how long the retry timeout until a new login can be made (without disabling the ip) retrytimeout = 5000 -- how long the player need to wait until the ip is allowed again logintimeout = 60 * 1000 -- What is the maximum number of packages the client can send per second? max_packets_per_second = 35 -- how deep queryDestination should look for free slots (default -1, infinite) player_querydestination_deepness = -1 -- allow clones (multiple logins of the same char) allowclones = false -- only one player online per account checkaccounts = false -- max number of players allowed maxplayers = "900" -- save client debug assertion reports -- to use this option you have to create file called client_assertions.txt and make sure after client crash to chan ge IP to otserv one then click "send". saveclientdebug = true -- Set the max query interval for retrieving status information -- default: 5 minutes / IP -- set to 0 to disable statustimeout = 30 * 1000 -- accounts password type -- options: plain, md5, sha1 passwordtype = "sha1" -- Password salt -- Offers better security against rainbow table attacks etc. passwordsalt = "" -- House configuration (game_class) -- House tile price house_tile_price = 100 -- Only premium players can buy houses? house_only_premium = true -- Level to buy houses house_level = 1 -- Show house price and its rent price when looking at its door? -- PS: This info is going to be shown just if house has no owner show_house_prices = false -- SQL type -- options: mysql, sqlite, odbc or pgsql sql_type = "mysql" -- SQL connection part (mysql, pgsql, odbc) sql_db = "otserv" sql_host = "127.0.0.1" sql_port = 3306 sql_user = "root" sql_pass = "xxxx"
  3. Bom dia pessoal, estou colocando esse ot no ar e realizando vários testes, alguem já que já testou sabe de algum bug desse ot ? obrigado.

Informação Importante

Confirmação de Termo