
Tudo que mullino postou
-
Erro Script Ajuda
como faz issu pode scplicar melhor?? e so tirar o protec zone que nao nasce uma emcima da outra nao? ?
-
Erro Script Ajuda
mas nace uma emcima da outra
-
Erro Script Ajuda
Bom DIA GALERINHA DO TK ESTOU COM UM ERRO NO SCRIPT DE MAGEBOMB ANTI MC [Error - CreatureScript Interface] data/creaturescripts/scripts/antimc.lua:onLogin Description: data/creaturescripts/scripts/antimc.lua:19: attempt to perform arithmetic on global 'banishment_length' (a nil value) stack traceback: data/creaturescripts/scripts/antimc.lua:19: in function <data/creaturescripts/scripts/antimc.lua:12> -- Anti Mage Bomb System por Killua local config = { max = 4, -- Quantos acc manager o mesmo ip pode logar de uma vez acc_name = "Account Manager", -- Nome do account manager ip_banishment = "true", -- Se logar mais acc manager do que o permitido, leva ban? "true" ou "false" banishment_length = 1 -- Quantos dias o ip fica banido? } local accepted_ip_list = {""} -- lista dos ips permitidos a logar varios acc manager, exemplo: {"200.85.3.60", "201.36.5.222"} function onLogin(cid) if getPlayerName(cid) == config.acc_name then if isInArray(accepted_ip_list, doConvertIntegerToIp(getPlayerIp(cid))) then return true end if #getPlayersByIp(getPlayerIp(cid)) >= config.max then if config.ip_banishment == "true" then doAddIpBanishment(doConvertIntegerToIp(getPlayerIp(cid)), banishment_length * 24 * 60 * 60) end return false end end return true end ALGUEM PODE AJUDARR
-
(Resolvido)Ajuda Otx Trava no save
bom dia galerinha do tk tem como diminuir as travadas que da quando o server salva nao? estava pesquisando aki no tk achei um mas minha rev nao temo commands.cpp alguem pode ajuda ae onde posso mudar para diminuir o travamento durante o save:? obrigado
-
Save
conseguio resolver man?
-
(Resolvido)Proibir adm criar x item no /i
bom dia galerinha do tk gostaria de saber se tem como colocar restriçao de items no comando /i de adm por exemplo proibir criar o item de id 11192 e 2090?? script function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local t = string.explode(param, ",") local ret = RETURNVALUE_NOERROR local pos = getCreaturePosition(cid) local id = tonumber(t[1]) if(not id) then errors(false) id = getItemIdByName(t[1]) errors(true) if(not id) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item with such name does not exists.") return true end end local amount = 100 if(t[2]) then amount = t[2] end local item = doCreateItemEx(id, amount) if(t[3] and getBooleanFromString(t[3])) then if(t[4] and getBooleanFromString(t[4])) then pos = getCreatureLookPosition(cid) end ret = doTileAddItemEx(pos, item) else ret = doPlayerAddItemEx(cid, item, true) end if(ret ~= RETURNVALUE_NOERROR) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Couldn't add item: " .. t[1]) return true end doDecayItem(item) if(not isPlayerGhost(cid)) then doSendMagicEffect(pos, CONST_ME_MAGIC_RED) end return true end
-
Players nukando meu ot
obrigado vou testar e ver se resolve meu problema
-
Players nukando meu ot
ae galera descobri q o cara fez nascer mais de 1000 account manager no ot ate ele cair alguem sabe como resolvo esse problema? tenho um script aki anti mc mas nao deu conta do recado pq ele kika se tiver mais de 3 mc mas o tempo que gasta pra kikar loga mais 100
-
crash em otx server 1.3
como eu uso esse odb pra saber onde ta o bug que eles derruba o server amigo pode dar umas dicas? ja instalei ele mas nao sei usar
-
Error MoveEvent executeEquip Call stack overflow
boa noite galera do tk recentemente apareceu esse erro na distrito oq pode ser? [Error - MoveEvent::executeEquip] Call stack overflow
-
Players nukando meu ot
zedeky.zapto.org esse ai Perdi muitos players com as quedas muito tenço issu viu
-
Players nukando meu ot
root@root:/home/otserv# gdb otx core GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from otx...done. /home/otserv/core: No such file or directory. (gdb) bt No stack. (gdb) deu issu root@root:/home/otserv# gdb otx core GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from otx...done. /home/otserv/core: No such file or directory. (gdb) db Undefined command: "db". Try "help". (gdb)
-
Players nukando meu ot
root@root:/home/otserv# gdb otx core -bash: gdb: command not found root@root:/home/otserv# otx core -bash: otx: command not found root@root:/home/otserv# deu comand not found no caso seria asim root@root:/home/otserv# ./otx core > WARNING: The BaiakNew has been executed as super user! It is recommended to run as a normal user. Continue? (y/N)
-
Players nukando meu ot
pra rodar o meu server eu utilizo o comando ./otx pq é theotxserve entao como executo esse comando que vc falou?
-
Players nukando meu ot
oq seria esse gdb? nao entendo muito por codicos kk aparece issu no putty The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed May 30 15:21:51 2018 from 189-13-233-83.user.veloxzone.com.br
-
Players nukando meu ot
ok obrigado vou ver se consigo achar
-
Players nukando meu ot
sim linux debia 8 64bits
-
Players nukando meu ot
boa madrugada galera do tk entao estou com um problema no meu ot entrou um player com o nome de witidraw e falow q se eu nao desse vaga de god pra ele ele ia derrubar o ot ae eu falei q ele podia tentar pois tenho vps da 4youstart e eles tem proteçao ddos mas entao ele conseguio derruar o ot..... entrei em contato com o suporte da vps para ver e eles falaram que nao foi attack ddos falou q o player descobriu algun bug ne actions ou house ou npcs !! como posso saber onde tem esse bug o erro q deu na distrito foi Segmentation Fault alguem pode me auxiliar?
-
NPC Banker Nao remove todo gold de uma vez
Boa noite tk estou com um problema no NPC Banker o player nao consegue remover todo o gold de uma vez do banco tem q ficar tirando picado gostaria de colocar so com talkaction para o player fala !balance e ver quanto gold tem e falar !withdraw e retirar o gold do banco tem como vcs me ajudarem??? olha o script local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} local moneyTo = {} local playerTo = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end local function isValidMoney(money) if isNumber(money) == TRUE and money > 0 and money < 999999999 then return TRUE end return FALSE end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end if msgcontains(msg, 'help') or msgcontains(msg, 'offer') then selfSay("You can check the {balance} of your bank account, {deposit} money or {withdraw} it. You can also {transfer} money to other characters, provided that they have a vocation.", cid) talkState[cid] = 0 ----------------------------------------------------------------- ---------------------------- Balance ---------------------------- ----------------------------------------------------------------- elseif msgcontains(msg, 'balance') or msgcontains(msg, 'Balance') then selfSay('Your account balance is '..getPlayerBalance(cid)..' gold.', cid) talkState[cid] = 0 ----------------------------------------------------------------- ---------------------------- Help ------------------------------- ----------------------------------------------------------------- elseif msgcontains(msg, 'basic functions') then selfSay('You can check the {balance{ of your bank account, Pdeposit{ money or Pwithdraw{ it. You can also {transfer} money to othercharacters, provided that they have a vocation.', cid) talkState[cid] = 0 elseif msgcontains(msg, 'advanced functions') then selfSay('Renting a house has never been this easy. Simply make a bid for an auction. We will check immediately if you haveenough money.', cid) talkState[cid] = 0 ----------------------------------------------------------------- ---------------------------- Deposit ---------------------------- ----------------------------------------------------------------- elseif msgcontains(msg, 'deposit all') then moneyTo[cid] = getPlayerMoney(cid) if moneyTo[cid] < 1 then selfSay('You don\'t have any money to deposit in you inventory..', cid) talkState[cid] = 0 else selfSay('Would you really like to deposit '..moneyTo[cid]..' gold?', cid) talkState[cid] = 2 end elseif msgcontains(msg, 'deposit') then selfSay("Please tell me how much gold it is you would like to deposit.", cid) talkState[cid] = 1 elseif talkState[cid] == 1 then moneyTo[cid] = tonumber(msg) if isValidMoney(moneyTo[cid]) == TRUE then selfSay('Would you really like to deposit '..moneyTo[cid]..' gold?', cid) talkState[cid] = 2 else selfSay('Is isnt valid amount of gold to deposit.', cid) talkState[cid] = 0 end elseif talkState[cid] == 2 then if msgcontains(msg, 'yes') then if doPlayerDepositMoney(cid, moneyTo[cid], 1) ~= TRUE then selfSay('You do not have enough gold.', cid) else selfSay('Alright, we have added the amount of '..moneyTo[cid]..' gold to your balance. You can withdraw your money anytime you want to. Your account balance is ' .. getPlayerBalance(cid) .. '.', cid) end elseif msgcontains(msg, 'no') then selfSay('As you wish. Is there something else I can do for you?', cid) end talkState[cid] = 0 ----------------------------------------------------------------- ---------------------------- Withdraw --------------------------- ----------------------------------------------------------------- elseif msgcontains(msg, 'withdraw') then selfSay("Please tell me how much gold you would like to withdraw.", cid) talkState[cid] = 6 elseif talkState[cid] == 6 then moneyTo[cid] = tonumber(msg) if isValidMoney(moneyTo[cid]) == TRUE then selfSay('Are you sure you wish to withdraw '..moneyTo[cid]..' gold from your bank account?', cid) talkState[cid] = 7 else selfSay('Is isnt valid amount of gold to withdraw.', cid) talkState[cid] = 0 end elseif talkState[cid] == 7 then if msgcontains(msg, 'yes') then if doPlayerWithdrawMoney(cid, moneyTo[cid]) ~= TRUE then selfSay('There is not enough gold on your account. Your account balance is '..getPlayerBalance(cid)..'. Please tell me the amount of gold coins you would like to withdraw.', cid) else selfSay('Here you are, ' .. moneyTo[cid] .. ' gold. Please let me know if there is something else I can do for you.', cid) talkState[cid] = 0 end elseif msgcontains(msg, 'no') then selfSay('As you wish. Is there something else I can do for you?', cid) talkState[cid] = 0 end ----------------------------------------------------------------- ---------------------------- Transfer --------------------------- ----------------------------------------------------------------- elseif msgcontains(msg, 'transfer') then selfSay("Please tell me the amount of gold you would like to transfer.", cid) talkState[cid] = 11 elseif talkState[cid] == 11 then moneyTo[cid] = tonumber(msg) if isValidMoney(moneyTo[cid]) == TRUE then selfSay('Who would you like transfer '..moneyTo[cid]..' gold to?', cid) talkState[cid] = 12 else selfSay('Is isnt valid amount of gold to transfer.', cid) talkState[cid] = 0 end elseif talkState[cid] == 12 then playerTo[cid] = msg if getCreatureName(cid) == playerTo[cid] then selfSay('Ehm, You want transfer money to yourself? Its impossible!', cid) talkState[cid] = 0 return TRUE end if playerExists(playerTo[cid]) then selfSay('So you would like to transfer ' .. moneyTo[cid] .. ' gold to "' .. playerTo[cid] .. '" ?', cid) talkState[cid] = 13 else selfSay('Player with name "' .. playerTo[cid] .. '" doesnt exist.', cid) talkState[cid] = 0 end elseif talkState[cid] == 13 then if msgcontains(msg, 'yes') then if getPlayerBalance(cid) < moneyTo[cid] then selfSay('You dont have enought money on your bank account.', cid) return TRUE end if doPlayerTransferMoneyTo(cid, playerTo[cid], moneyTo[cid]) ~= TRUE then selfSay('This player does not exist on this world or have no vocation.', cid) else selfSay('You have transferred ' .. moneyTo[cid] .. ' gold to "' .. playerTo[cid] ..' ".', cid) playerTo[cid] = nil end elseif msgcontains(msg, 'no') then selfSay('As you wish. Is there something else I can do for you?', cid) end talkState[cid] = 0 end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
(Resolvido)Ajuda com Erro
obrigao @Vodkart nao reiniciei o server ainda mas creio que esta perfeita
-
(Resolvido)Ajuda com Erro
Boa Tarde Galerinha do TK Me ajudem resolver esse erro [Error - MoveEvents Interface] In a timer event called from: data/movements/scripts/bota.lua:onEquip Description: (luaGetPlayerSlotItem) Player not found script function onEquip(cid, item, slot) doRemoveCondition(cid, CONDITION_PARALYZE) addEvent(Paralizy, 1*100, cid) return true end function Paralizy(cid) local HelmetID = 12692 --- ID DO ITEM if getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == HelmetID then doRemoveCondition(cid, CONDITION_PARALYZE) addEvent(Paralizy, 1*100, cid) end return true end
-
AJUDA Com Storage Equip e DeEquip
Bom Dia Galera do TK Por Favor me ajudem com esse script ja tentei de varias formas mas nao consigo fazer com que o player ganha a storage equipando o item e quando desequipa perde a storage esse e o script que quero usar com o item equipado local burnBuff = { storageID = 23000, interval = 1, -- intervalo entre turnos damage = 7000, -- dano de cada turno ticks = 5, -- quantidade de turnos effect = CONST_ME_HITBYFIRE, -- efeito } -- FIRE EFFECT local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, burnBuff.effect) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE) local condition = createConditionObject(CONDITION_FIRE) setConditionParam(condition, CONDITION_PARAM_DELAYED, 1) addDamageCondition(condition, burnBuff.ticks, burnBuff.interval, -burnBuff.damage) setCombatCondition(combat, condition) function onAttack(cid, target) storageStatus = getPlayerStorageValue (cid, burnBuff.storageID) playerPos = getCreaturePosition (cid) targetPos = getCreaturePosition (target) if getPlayerStorageValue(cid, 23000) > 0 then return true end -- FIM - jogador sem o buff if getDistanceBetween (playerPos, targetPos) > 8 then return true end -- FIM - jogador longe if getPlayerStorageValue(cid, 23000) < 1 then -- Efeito Energy doCombatAreaCondition(cid, targetPos, nil, condition, burnBuff.effect) end return true end aqui e o movment tentei de varias formas mas nao remove a storage quando tira o item ele comtinua com a script ativada <movevent type="DeEquip" itemid="8304" slot="ammo" event="script" value="mov.lua"/> <movevent type="Equip" itemid="8304" slot="ammo" event="script" value="mov.lua"/> function onEquip(cid, item, slot) if getPlayerStorageValue(cid, 23000) < 1 then setPlayerStorageValue(cid, 23000) end return true end function onDeEquip(cid, item, slot) if getPlayerStorageValue(cid, 22999) > 0 then setPlayerStorageValue(cid, 23000- 1) end return true end ajudem aeee plisss
-
Ajuda Creaturescript e Movment
Alguém??
-
Ajuda Creaturescript e Movment
Boa tarde Galerinha do tk vcs podem me ajudar com um script que tenho? gostaria que quando o player equipasse o item 8304 ele ganhace o direito de usar a script 1 e quando ele tirace o item o script parace script do creature script local burnBuff = { storageID = 23000, interval = 1, -- intervalo entre turnos damage = 7000, -- dano de cada turno ticks = 5, -- quantidade de turnos effect = CONST_ME_HITBYFIRE, -- efeito } -- FIRE EFFECT local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, burnBuff.effect) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE) local condition = createConditionObject(CONDITION_FIRE) setConditionParam(condition, CONDITION_PARAM_DELAYED, 1) addDamageCondition(condition, burnBuff.ticks, burnBuff.interval, -burnBuff.damage) setCombatCondition(combat, condition) function onAttack(cid, target) storageStatus = getPlayerStorageValue (cid, burnBuff.storageID) playerPos = getCreaturePosition (cid) targetPos = getCreaturePosition (target) if storageStatus == 0 then return true end -- Se tiver como trocar essa fucnçao eu agradeço pois ela fica aparecendo o numero 0 na distrito if getDistanceBetween (playerPos, targetPos) > 8 then return true end -- FIM - jogador longe if storageStatus == 2 then -- Efeito Energy Se tiver como trocar essa fucnçao eu agradeço pois ela fica aparecendo o numero 2 na distrito doCombatAreaCondition(cid, targetPos, nil, condition, burnBuff.effect) end return true end o script que tenho do movement e esse <movevent type="DeEquip" itemid="8304" slot="ammo" event="script" value="mov.lua"/> <movevent type="Equip" itemid="8304" slot="ammo" event="script" value="mov.lua"/> function onEquip(cid, item, slot) storageStatus = getPlayerStorageValue (cid, 23000) print (storageStatus) if storageStatus == 0 or storageStatus == -1 then setPlayerStorageValue(cid, 23000, storageStatus + 1) elseif storageStatus == 1 then setPlayerStorageValue(cid, 23000, storageStatus + 1) end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "MODE = ".. getPlayerStorageValue(cid, 23000)) return true end e tenho a sengunda que é de energia a mesma coisa so que o script é de energia local energyBuff = { storageID = 23002, chance = 100, -- % de ativacao, 100~100 effect = CONST_ME_ENERGYHIT, -- efeito } -- ENERGY EFFECT local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.6, -30, -1.2, 2) local arr = { {0, 0, 0}, {1, 3, 1}, {0, 0, 0} } local area = createCombatArea(arr) setCombatArea(combat1, area) ------------------------------------------------------------------------ function onAttack(cid, target) storageStatus = getPlayerStorageValue (cid, energyBuff.storageID) playerPos = getCreaturePosition (cid) targetPos = getCreaturePosition (target) if storageStatus == 3 then return true end -- FIM - jogador sem o buff Se tiver como trocar essa fucnçao eu agradeço pois ela fica aparecendo o numero 3 na distrito if getDistanceBetween (playerPos, targetPos) > 8 then return true end -- FIM - jogador longe if storageStatus == 4 then -- Efeito Energy Se tiver como trocar essa fucnçao eu agradeço pois ela fica aparecendo o numero 4 na distrito if math.random (0, 100) < energyBuff.chance then -- % de ativacao doCombat(cid, combat1, numberToVariant(target)) -- Dano em area doSendMagicEffect (targetPos, energyBuff.effect) -- efeito end end return true end des de ja agradeço a ajuda de vcs + REP Ajuda ae @Vodkart @Sttorm vcs são os Scripts mais ativos do TK dá uma força aí presciso só disso pra colocar o ot online o resto tá pronto.... Pq se não depois vou ter q reiniciar o server
-
Equipar item e ativar essa script
Boa noite galerinha do TK Gostaria de um script de movments que quando o player equipa o item 8304 ativar essa scripts e quando tirar o item a a script para local burnBuff = { storageID = 23000, interval = 1, -- intervalo entre turnos damage = 5, -- dano de cada turno ticks = 5, -- quantidade de turnos effect = CONST_ME_HITBYFIRE, -- efeito } -- FIRE EFFECT local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, burnBuff.effect) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE) local condition = createConditionObject(CONDITION_FIRE) setConditionParam(condition, CONDITION_PARAM_DELAYED, 1) addDamageCondition(condition, burnBuff.ticks, burnBuff.interval, -burnBuff.damage) setCombatCondition(combat, condition) function onAttack(cid, target) storageStatus = getPlayerStorageValue (cid, burnBuff.storageID) playerPos = getCreaturePosition (cid) targetPos = getCreaturePosition (target) if storageStatus == 0 then return true end -- FIM - jogador sem o buff if getDistanceBetween (playerPos, targetPos) > 1 then return true end -- FIM - jogador longe if storageStatus == 1 then -- Efeito Energy doCombatAreaCondition(cid, targetPos, nil, condition, burnBuff.effect) end return true end