Ir para conteúdo

mullino

Membro
  • Registro em

  • Última visita

Tudo que mullino postou

  1. no caso ficaria asim? doItemSetAttribute(itemEx.uid,'name', getItemNameById(itemEx.itemid)..' +'..(Dodge+1)) ?
  2. mullino postou uma resposta no tópico em Suporte Tibia OTServer
    Bom dia Galerinha do tk estou com um erro aparecendo na distrito. pode ajudar?? [Error - Action Interface] data/actions/scripts/tools/rope.lua:onUse Description: (luaGetThingFromPosition) Tile not found [Error - Action Interface] data/actions/scripts/tools/rope.lua:onUse Description: data/lib/050-function.lua:37: bad argument #1 to 'ipairs' (table expected, got number) stack traceback: [C]: in function 'ipairs' data/lib/050-function.lua:37: in function 'isInArray' data/actions/scripts/tools/rope.lua:13: in function <data/actions/scripts/tools/rope.lua:2> local holeId = {294, 369, 370, 383, 392, 408, 409, 427, 428, 430, 462, 469, 470, 482, 484, 485, 489, 924, 3135, 3136} function onUse(cid, item, fromPosition, itemEx, toPosition) local groundTile = getThingfromPos(toPosition) if groundTile.itemid == 384 or groundTile.itemid == 418 or groundTile.itemid == 8278 then doTeleportThing(cid, {x = toPosition.x, y = toPosition.y + 1, z = toPosition.z - 1}, FALSE) elseif isInArray(holeId, itemEx.itemid) == TRUE then local hole = getThingfromPos({x = toPosition.x, y = toPosition.y, z = toPosition.z + 1, stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE}) if hole.itemid > 0 then doTeleportThing(hole.uid, {x = toPosition.x, y = toPosition.y + 1, z = toPosition.z}, FALSE) else doPlayerSendCancel(cid, "Sorry, not possible.") end elseif isInArray(5967, itemEx.itemid) == TRUE then doSetGameState(GAMESTATE_SHUTDOWN) else return FALSE end return TRUE end
  3. vc pode me ajudar os 3 utlimos que coloquei foi esses function onEquip(cid, item, slot) doTransformItem(item.uid, 10502, 1) doPlayerSendTextMessage(cid, 22, 'Agora ganha 3x mais experiencia!') doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*0.3) return TRUE end function onDeEquip(cid, item, slot) doTransformItem(item.uid, 7708, 1) doPlayerSendTextMessage(cid, 22, 'Experiencia extra cancelada.') doPlayerSetExperienceRate(cid, 1) return TRUE end --------------------------------------------------------------------------------------------------------------------------- function onEquip(cid, item, slot) setPlayerStorageValue(cid, 23000,1) return TRUE end function onDeEquip(cid, item, slot) setPlayerStorageValue(cid, 23000,- 1) return TRUE end ------------------------------------------------------------------------------------------------------------------------------- function onEquip(cid, item, slot) setPlayerStorageValue(cid, 24000,1) return TRUE end function onDeEquip(cid, item, slot) setPlayerStorageValue(cid, 24000,- 1) return TRUE end -------------------------------------------------------------------------------------------------------------------------------- e esse function Paralizy(cid) if not isCreature(cid) then return LUA_ERROR end 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 function onEquip(cid, item, slot) doRemoveCondition(cid, CONDITION_PARALYZE) addEvent(Paralizy, 1*100, cid) return true end
  4. oi amigo conseguio o script?? pode passar?
  5. Tem como fazer um desse mas com critical so pra armas???
  6. alguem ajuda ? Igmats has logged out. [Error - MoveEvent::executeEquip] Call stack overflow. [Error - MoveEvent::executeEquip] Call stack overflow. [Error - MoveEvent::executeEquip] Call stack overflow. [Error - MoveEvent::executeEquip] Call stack overflow.
  7. Abre o arquivo da ctrl + f e pesquisa ? E retira do codico Vai ter uma sinais de ? Interrogação ? Só vc apagar eles
  8. o meu nao funcionou nao deu erro nenhum mas tbm a arma nao mostra ganhando experiencia e nao mudou nada nela alguem pode ajudar uso otx tfs 004
  9. mullino postou uma resposta no tópico em Suporte Tibia OTServer
    So add a TAG reflect no items xml
  10. Como instalar esse script
  11. Eu achei um q add Dodge ao item mas tá dando conflito com o upgrade system +1 +2 +3
  12. Também estou atrás dissu aki no TK mas é complicado de alguém fazer para nós pois são muitas scripts
  13. boa noite galerinha do tk estou com uma talkaction tipo e uma talkaction que o player usa e ganha 1 dia de vip mas esta com um bug eu gostaria que o player so pudesse usar esse comando uma vez soh e nao conseguir usar mais function onSay(cid, words, param, channel) local storage,days = (getPlayerAccountId(cid)+753200),1 if getGlobalStorageValue(storage) > 0 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce só pode usar esse comando 1 vez por account!") return true end setGlobalStorageValue(storage, 1) addCharacterAcess(cid, (days <= 0 and 1 or days)) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você recebeu "..days.." dias de VIP, bom jogo!") addEvent(doRemoveCreature,1000,cid) return true end o players usa hoje mas quando acaba a vip dele ele consegue usar novamente tem como arrumar pra min para nao pode usar mais?? des de ja obrigado +rep
  14. Bom dia galerinha do tk consegui achar um script de dodgem em items mas tem um problema ele ta dano comflito com o upgrade system que tenho quando uso a pedra dodg no item ele fica + 1 +2 +3 +4 e +5 queria tirar issu deixar com que ele so add as % de dodge no item pq tenho um sistema de upgrade que add no item +1 ate + 10 function isHandItem(uid) -- NW based on Mock uid = uid or 0 if isInArray({1,2,3,4,5,6}, getItemWeaponType(uid)) then return true end return false end function getItemDodgePercent(itemuid) return getItemAttribute(itemuid, "dodgePercent") or 0 end function setItemDodgePercent(uid, percent) doItemSetAttribute(uid, "description", "[Dodge: "..percent.."%]") doItemSetAttribute(uid, "dodgePercent", percent) end function onUse(cid, item, fromPosition, itemEx, toPosition) level = 0 local upgrade = { [1] = {min = 1, max = 5, chance = 100}, [2] = {min = 5, max = 10, chance = 80}, [3] = {min = 10, max = 20, chance = 60}, [4] = {min = 20, max = 40, chance = 40}, [5] = {min = 40, max = 50, chance = 20} } function isWearing(uid) -- NW based on Mock uid = uid or 0 if isInArray({uid}, getPlayerSlotItem(cid, 1).uid) or isInArray({uid}, getPlayerSlotItem(cid, 4).uid) or isInArray({uid}, getPlayerSlotItem(cid, 7).uid) or isInArray({uid}, getPlayerSlotItem(cid, 8).uid) then return true end return false end if isHandItem(itemEx.uid) or isWearing(itemEx.uid) then local name = getItemName(itemEx.uid) local atual = math.floor(getItemDodgePercent(itemEx.uid)*10)/10 for i = 1, #upgrade do if string.find(tostring(name),"+".. i .."") then level = i end end if level >= #upgrade then doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"Your item is already on max level, you can't upgrade it any further.") return true end if math.random(0,100) <= upgrade[level + 1].chance then doRemoveItem(item.uid, 1) doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"You leveled your "..getItemNameById(itemEx.itemid).." to ".. level+1 ..".") setItemDodgePercent(itemEx.uid, atual + (math.random(upgrade[level+1].min,upgrade[level+1].max))/10) doItemSetAttribute(itemEx.uid,'name', getItemNameById(itemEx.itemid)..' +'..(level+1)) doSendMagicEffect(toPosition, math.random(28,30)) else setItemDodgePercent(itemEx.uid, 0) doRemoveItem(item.uid, 1) doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"Your "..getItemNameById(item.itemid).." has failed and destroyed the dodge of your "..getItemNameById(itemEx.itemid).." in the process") doSendMagicEffect(toPosition, 4) end else doPlayerSendTextMessage(cid, 24,"You cant refine this item.") end return true end
  15. o meu deu esse erro [Error - CreatureScript Interface] In a timer event called from: data/creaturescripts/scripts/onreward.lua:onLogin Description: data/creaturescripts/scripts/onreward.lua:21: attempt to index local 'item' (a nil value) stack traceback: data/creaturescripts/scripts/onreward.lua:21: in function <data/creaturescripts/scripts/onreward.lua:16> -- made by static -- local items = { [1] = { itemid = 11192, count = 10, }, [2] = { itemid = 11192, count = 20 } } local events = {} local function addReward(cid, rewardId) if not isPlayer(cid) then return end local item = items[rewardId or #items] doPlayerAddItem(cid, item.itemid, item.count) events[cid] = addEvent(addReward, 60 * 60 * 1000, cid, rewardId + 1) end function onLogin(cid) events[cid] = addEvent(addReward, 60 * 60 * 1000, cid, 1) return true end function onLogout(cid) if events[cid] then stopEvent(events[cid]) events[cid] = nil end return true end
  16. Boa noite galerinha do tk vcs pode me ajudar como configuro o paypal no meu gesior? nao aparece a opçao de compra por paypal no meu gesiro ja fiz uma conta no paypal mas nao sei colocar ele no gesior alguem pode me ajudar pliss
  17. obrigado mano vou testar tem como colocar uma menssagem para oo player que recebeu o item falando paraben vc ficou 1 hora online e ganhou x item e depois parabens vc ficou 2 horas online e ganhao x item
  18. vc conseguio esse script amigo pode passar?
  19. ajuda ae amigo o meu esta com o memso problema root@root:/home/otserv# gdb ot 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 ot...done. /home/otserv/core: No such file or directory. (gdb)
  20. ou mano vc entrou la como testador de bugs nao achou nada nao ?? ta foda aki acho q nao e o bug do account mananger nao olha o erro que deu Mago Robert has logged in. > Broadcasted message: "[/all]: [Vayne]: alguem vai alguma quest ?". Naridrin has logged in. > Broadcasted message: "O jogador Vayne Matou O Terr�vel Gonka e Recebeu o Outfit Supremo! Parabens Guerreiro!". > Broadcasted message: "O jogador Vayne Matou O Terr�vel Gonka e Recebeu o Outfit Supremo! Parabens Guerreiro!". Account Manager has logged in. Account Manager has logged out. Matheus has logged in. Segmentation fault root@root:/home/otserv# ja nao sei mais onde mecher!!! olha o erro no gdb root@root:/home/otserv# gdb ot 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 ot...done. /home/otserv/core: No such file or directory. (gdb)
  21. otima ideia posso posso pegar quando fizerem?
  22. essa eu ja resolvi obrigado brother
  23. blz obrigado
  24. so onde ta a statua que tem que ser pz ou tbm nao prescisa?

Informação Importante

Confirmação de Termo