
Tudo que Djonga postou
-
order/addon [dxp]
eae clan, queria uma ajuda de vcs com uns scripts aqui. to adicionando um sistema de addons no meu servidor de pokémon, e to com um problema ao usar o fly, o pokémon não recebe o addon. a função de fly é essa aqui: precisava que quando fosse retornar o flys ou rides ele checasse isso: não to conseguindo de jeito nenhum por favor, me ajudem
-
[SCRIPT] Levitate adicionar effect ao subir e descer
vou dar uma olhada, calma ae
-
autoloot opcode [dxp]
seguinte clan, adicionei um autoloot no meu servidor, ele funciona o colect all certinho, mas a parte que eu mais quero não funciona. o que eu percebi: a lista de itens não aparece, como na imagem abaixo: ok, mas quando eu dou /reload creaturescripts no servidor, os itens aparecem: mas em questão de segundos somem todos de novo, reparem na imagem: percebi também que no terminal do otclient aparece o seguinte aviso: vou deixar aqui a parte no creaturescripts que contem o script, opcode.lua: 117 - autoloot.lua : to precisando bastante disso, se alguém entender disso, por favor, me ajuda valeu clan
-
(Resolvido)adicionar effects
{"random381", MAGIC_EFFECT_RANDOM381}, é só eu ir mudando 381 por 382 e assim consecutivamente?
-
(Resolvido)adicionar effects
@gabriel28 como eu faço isso? no const tá assim o fimzinho dos magic_effect (dá pra ver que tá limitado a 400 ali): MAGIC_EFFECT_RANDOM379 = 0x1C0,//448 MAGIC_EFFECT_RANDOM380 = 0x1C1,//449 MAGIC_EFFECT_RANDOM381 = 0x1C2,//450 MAGIC_EFFECT_LAST = MAGIC_EFFECT_RANDOM381, //for internal use, dont send to client MAGIC_EFFECT_NONE = 0xFFF, MAGIC_EFFECT_UNKNOWN = 0xFFFF }; e em tools? o que eu mudo?
-
(Resolvido)adicionar effects
os efeitos já foram aumentados, mas parece que só até 450 @Sttorm
-
(Resolvido)adicionar effects
adicionei muitos efeitos no meu dat/spr, mas quando tento usar no servidor eles não aparecem, alguém sabe o motivo? detalhe, junto com esses effects eu adicionei vários itens e outfits, todo o resto eu consigo usar, menos esses effects...
-
The Ruby Server - Base Pokémon TFS 1.2 - 9.80
alguém pode me mandar ele compilado? to com mts dificuldades pra compilar =x
-
(Resolvido)Spawn de mega aleatório igual de shiny
no começo do arquivo, abaixo de local raros = {"Dragonair", "Snorlax", "Dratini", "Giant Magikarp", "Gyarados", "Magmortar", "Electivire", "Salamence", "Mantine"} adicione: local megas = { "Blastoise", "Alakazam", "Absol", "Venusaur", "Aggron", "Tyranitar", "Gengar", "Ampharos", "Lucario", "Manectric", "Pidgeot", "Scizor"} depois do ultimo end adicione: function doShiny(cid) if isCreature(cid) then if isSummon(cid) then return true end if isNpcSummon(cid) then return true end local chance = 0 if isInArray(megas, doCorrectString(getCreatureName(cid))) then --alterado v1.9 \/ chance = 500 --50% chance end local sid = cid if math.random(1, 1000) <= chance then doSendMagicEffect(getThingPos(cid), 18) local name, pos = "Mega ".. getCreatureName(cid), getThingPos(cid) if not pokes[name] then return true end doRemoveCreature(cid) --print(name .. ", " .. retireShinyName(name)) local shi = doCreateMonsterNick(sid, name, retireShinyName(name), pos, false) end else return true end end
-
erro creaturescripts [dxp]
ae clan, to com os seguintes erros no tfs com o pokedeath: [26/02/2018 20:33:41] [Error - CreatureScript Interface] [26/02/2018 20:33:41] data/creaturescripts/scripts/player/pokeDeath.lua:matou [26/02/2018 20:33:41] Description: [26/02/2018 20:33:41] (luaDoAddContainerItem) Container not found e esse aqui no statschange: [26/02/2018 20:48:31] [Error - CreatureScript Interface] [26/02/2018 20:48:31] In a timer event called from: [26/02/2018 20:48:31] data/creaturescripts/scripts/player/statsChange.lua:onStatsChange [26/02/2018 20:48:31] Description: [26/02/2018 20:48:31] (luaDoAddCondition) Creature not found pokedeath.lua: statschange.lua:
-
[dxp] erro creaturescripts
consegui tirar todos os erros do tfs mas sobrou esse, eu acredito que o problema seja no lucky ou experience (por conterem a função q acusa erro na distro) [25/02/2018 16:46:51] [Error - CreatureScript Interface] [25/02/2018 16:46:51] data/creaturescripts/scripts/player/pokeDeath.lua:matou [25/02/2018 16:46:51] Description: [25/02/2018 16:46:51] (luaGetPlayerSlotItem) Player not found a parte que tem isso: function doCorpseAddLoot(name, item, cid, target) -- essa func jรก vai ajudar em um held, luck. if cid == target then doItemSetAttribute(item, "corpseowner", "asçdlkasçldkaçslkdçaskdçaslkdçlsakdçkaslç") return true end -- selfdestruct local lootList = getMonsterLootList(name) local isStoneDroped = false name = doCorrectString(name) local pokeName = name local str, vir = "Loot from " .. name .. ": ", 0 local megaID, megaName = "", "" local lootListNow = {} if isMega(target) then if name == "Charizard" then megaID = getPlayerStorageValue(target, storages.isMegaID) end megaName = "Mega " .. name .. (megaID ~= "" and " " .. megaID or "") str = "Loot from " .. megaName .. ": " pokeName = megaName local t = {id = megasConf[megaName].itemToDrop, count = 1, chance = 0.1} table.insert(lootList, t) end local countVirg = 0 for i, _ in pairs(lootList) do countVirg = countVirg + 1 local id, count, chance = lootList[i].id, lootList[i].count, lootList[i].chance * 1 local tienelucky =0 local MaxChanceLucky=0 ---- X-Lucky local heldx = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "xHeldItem") if heldx then local heldName, heldTier = string.explode(heldx, "|")[1], string.explode(heldx, "|")[2] if heldName == "X-Lucky" then -- dar mais loot tienelucky=1 MaxChanceLucky = heldLucky[tonumber(heldTier)] end end ---- X-Lucky local percent, lootCount = math.random(0.1, 100.9), math.random(1, count) if id == 15133 or id == 15131 or id == 15134 or id == 15135 or id == 15136 or id == 15780 or id == 15781 or id == 15782 or id == 15783 or id == 15784 or id == 15785 or id == 15786 or id == 15787 or id == 15788 or id == 15789 or id == 15790 or id == 15791 or id == 15792 or id == 15793 or id == 15794 or id == 15177 or id == 15179 then if getPlayerStorageValue(cid, 123456) == 1 then percent = math.random(0.1, 10000.9) else percent = math.random(0.1, 9000.9) end end if (percent <= chance) then if isStone(id) then isStoneDroped = true local posCorpse = getThingPos(item) posCorpse.x = posCorpse.x +1 doSendMagicEffect(posCorpse, stoneEffect[getItemNameById(id):lower()]) posCorpse.y = posCorpse.y +1 addEvent(doSendMagicEffect, 2000, posCorpse, 285) end if id == 15644 then ----mighty token isStoneDroped = true local posCorpse = getThingPos(item) doSendMagicEffect(posCorpse, stoneEffect[getItemNameById(id):lower()]) posCorpse.x = posCorpse.x +1 posCorpse.y = posCorpse.y +1 addEvent(doSendMagicEffect, 2000, posCorpse, 285) end if id == 15133 or id == 15131 or id == 15134 or id == 15135 or id == 15136 or id == 15780 or id == 15781 or id == 15782 or id == 15783 or id == 15784 or id == 15785 or id == 15786 or id == 15787 or id == 15788 or id == 15789 or id == 15790 or id == 15791 or id == 15792 or id == 15793 or id == 15794 or id == 15177 or id == 15179 then -----mega stone isStoneDroped = true local posCorpse = getThingPos(item) posCorpse.x = posCorpse.x +2 posCorpse.y = posCorpse.y +2 doSendMagicEffect(posCorpse, 391) doBroadcastMessage(""..getCreatureName(cid).." got a "..getItemNameById(id)..".") posCorpse.x = posCorpse.x -1 posCorpse.y = posCorpse.y -1 addEvent(doSendMagicEffect, 2000, posCorpse, 285) end doAddContainerItem(item, id, lootCount) table.insert(lootListNow, getItemNameById(id) .. " (" .. lootCount .. ")") else -- ENTRA EL LUCKY AQUI <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< if tienelucky == 1 then percent = math.random(0.1, MaxChanceLucky) if id == 15133 or id == 15131 or id == 15134 or id == 15135 or id == 15136 or id == 15780 or id == 15781 or id == 15782 or id == 15783 or id == 15784 or id == 15785 or id == 15786 or id == 15787 or id == 15788 or id == 15789 or id == 15790 or id == 15791 or id == 15792 or id == 15793 or id == 15794 or id == 15177 or id == 15179 then if getPlayerStorageValue(cid, 123456) == 1 then percent = math.random(0.1, 100000.9) else percent = math.random(0.1, 90000.9) end end if (percent <= chance) then if isStone(id) then isStoneDroped = true local posCorpse = getThingPos(item) posCorpse.x = posCorpse.x +1 doSendMagicEffect(posCorpse, stoneEffect[getItemNameById(id):lower()]) posCorpse.y = posCorpse.y +1 addEvent(doSendMagicEffect, 2000, posCorpse, 285) end if id == 15644 then ----mighty token isStoneDroped = true local posCorpse = getThingPos(item) doSendMagicEffect(posCorpse, stoneEffect[getItemNameById(id):lower()]) posCorpse.x = posCorpse.x +1 posCorpse.y = posCorpse.y +1 addEvent(doSendMagicEffect, 2000, posCorpse, 285) end if id == 15133 or id == 15131 or id == 15134 or id == 15135 or id == 15136 or id == 15780 or id == 15781 or id == 15782 or id == 15783 or id == 15784 or id == 15785 or id == 15786 or id == 15787 or id == 15788 or id == 15789 or id == 15790 or id == 15791 or id == 15792 or id == 15793 or id == 15794 or id == 15177 or id == 15179 then -----mega stone isStoneDroped = true local posCorpse = getThingPos(item) posCorpse.x = posCorpse.x +2 posCorpse.y = posCorpse.y +2 doSendMagicEffect(posCorpse, 391) doBroadcastMessage(""..getCreatureName(cid).." got a "..getItemNameById(id).."!!") posCorpse.x = posCorpse.x -1 posCorpse.y = posCorpse.y -1 addEvent(doSendMagicEffect, 2000, posCorpse, 285) end doAddContainerItem(item, id, lootCount) table.insert(lootListNow, getItemNameById(id) .. " (" .. lootCount .. ")[>LUCKY<]") end -- SAÑE EL LUCKY AQUI <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< end end end for i = 1, #lootListNow do str = str .. lootListNow[i] .. (tonumber(i) == tonumber(#lootListNow) and "." or ", ") end if getExpByMoreDano(target) == true then return true end local players = string.explode(getExpByMoreDano(target), "|") local xp, newXP = getPokemonExperienceD(name), xp local maiorPercent = 0 local playerWinner = "" if players ~= nil then for i = 1, #players do local name = string.explode(players[i], "/")[1] local percent = tonumber(string.explode(players[i], "/")[2]) if percent > maiorPercent then playerWinner = name maiorPercent = percent end if #players == 1 then -- caso so um player matou o bixo percent = 100 end local heldExp = 1 local player = getPlayerByName(name) local heldx = getItemAttribute(getPlayerSlotItem(player, 8).uid, "xHeldItem") if heldx then local heldName, heldTier = string.explode(heldx, "|")[1], string.explode(heldx, "|")[2] if heldName == "X-Experience" then -- dar mais experiencia heldExp = heldExperience[tonumber(heldTier)] end end playerAddExp(player, math.ceil(percent * xp / 100) * heldExp) end end local pWinnerLoot = getPlayerByName(playerWinner) if isCreature(pWinnerLoot) then doItemSetAttribute(item, "corpseowner", playerWinner) local loot = str .. (str == "Loot from ".. name .. ": " and "Nothing." or "") doPlayerSendTextMessage(pWinnerLoot, MESSAGE_INFO_DESCR, loot) doSendMsgInParty(cid, loot) if isStoneDroped then doSendMagicEffect(getThingPos(pWinnerLoot), 173, pWinnerLoot) --- adicionar efeito em cima do loot end end end
-
[dxp] problema com addons
Tô trabalhando num addon system, meu servidor usar icones, e eu acho que ele não tá reconhecendo a pokebola script: function onUse(cid, item, fromPosition, itemEx, toPosition) local addons = { [17132] = {pokemon= "Snorlax" , looktype = 1895, fly = 0, ride = 0, surf = 0}, } if #getCreatureSummons(cid) > 0 or isRiderOrFlyOrSurf(cid) then doPlayerSendCancel(cid, "Please back your pokemon.") return false end local addon = addons[item.itemid].looktype local fly = addons[item.itemid].fly local ride = addons[item.itemid].ride local surf = addons[item.itemid].surf local pb = getPlayerSlotItem(cid, 8).uid local pk = addons[item.itemid].pokemon if getItemAttribute(pb,"poke") ~= pk then doPlayerSendCancel(cid, "Sorry, you can't use this addon on this poke.") return false end if getItemAttribute(pb,"addon") >= 0 then doRemoveItem(item.uid, 1) doPlayerSendTextMessage(cid, 27, "Congratulations! Now your pokemon will use the addon.") doSetItemAttribute(pb,"addon",addon) doSetItemAttribute(pb,"addonfly",fly) doSetItemAttribute(pb,"addonride",ride) doSetItemAttribute(pb,"addonsurf",surf) return true end return true end tag: <action itemid="17132" event="script" value="addon.lua"/> alguém consegue me ajudar nisso? por favor!
-
(Resolvido)pedido script held fusion
@marcot funcionou 100% agora, muito obrigado!
-
(Resolvido)pedido script held fusion
@marcot funcionou esse stackpos = 1, obrigado! -- edit tem um erro, se eu colocar helds de tiers diferentes eles fundem também ;/ coloquei dois held 6 e um 5 e mesmo assim virou um tier 7 isso aqui não tá funcionando corretamente: if heldType[1] ~= heldType[2] or heldType[2] ~= heldType[3] then tentei mudar o or pra and, tentei colocar assim: if heldType[1] ~= heldType[2] or heldType[2] ~= heldType[3] or heldType[1] ~= heldType[3] then e também não funcionou
-
(Resolvido)pedido script held fusion
@marcot que eu saiba, só esse tile e o container, vou checar no rme. --edit chequei, e são apenas os dois.
-
(Resolvido)pedido script held fusion
apareceu essa msg: 20:13 Item selecionado: 16005 (percebi que é o tile abaixo do container)
-
(Resolvido)pedido script held fusion
e da o seguinte erro no tfs: [22/02/2018 19:56:48] [Error - Action Interface] [22/02/2018 19:56:48] data/actions/scripts/heldFusion.lua:onUse [22/02/2018 19:56:48] Description: [22/02/2018 19:56:48] (luaGetContainerItem) Container not found (como vc ve no print não tem nada em cima do container, está especificada a posição correta) no items.xml o container tá assim: <item id="16178" article="a" name="held slot machine" > <attribute key="containerSize" value="3" /> </item> eu acredito que foi tudo configurado corretamente
-
(Resolvido)pedido script held fusion
if heldType[1] ~= heldType[2] or heldType[2] ~= heldType[3] then aqui ele já tá configurado para os 7 tier?
-
(Resolvido)pedido script held fusion
eu preferia que fosse configuravel essa chance mas, se for mto dificil, não precisa
-
(Resolvido)pedido script held fusion
queria um script que funcionasse assim (formulei assim na minha cabeça), existem helds no meu servidor (separados de tier 1 ao tier 7), queria o script de uma maquina que quando eu colocasse três helds do mesmo tier se transformasse em um do tier acima (exemplo: 3 helds tier 4 se fundiriam em um tier 5 aleatório) alguém pode me ajudar? acredito que não seja tão dificil
-
erro EffectvineSpell
To com o seguinte erro na distro, por favor isso é urgente, meu servidor tá aberto e isso causa mtos freezes... [20/02/2018 23:40:57] [Error - CreatureScript Interface] [20/02/2018 23:40:57] data/creaturescripts/scripts/player/statsChange.lua:onStatsChange [20/02/2018 23:40:57] Description: [20/02/2018 23:40:57] data/lib/106-main functions.lua:350: attempt to index field '?' (a nil value) [20/02/2018 23:40:57] stack traceback: [20/02/2018 23:40:57] data/lib/106-main functions.lua:350: in function 'getEffectvineCombat' [20/02/2018 23:40:57] data/creaturescripts/scripts/player/statsChange.lua:239: in function <data/creaturescripts/scripts/player/statsChange.lua:6> percebi que o erro é causado quando alguns pokemons batem em outro (por enquanto só o elder pidgeot que eu vi), aí ele não dá dano nenhum e causa esse erro no tfs, segue o print do problema: statschange: 106-main functions: (por enquanto desabilitei o elder geot até saber o que acontece...) pra quem tiver esse mesmo erro, o problema era que na table "pokemonstatus" eu tinha colocado o type errado, coloquei "iron" e o certo era "steel", era esse o problema. RESOLVIDO
-
statschange erro na distro
esse erro dá uma travada toda vez que aparece na distro, e eu não to conseguindo achar a causa: [19/02/2018 18:11:45] [Error - CreatureScript Interface] [19/02/2018 18:11:45] data/creaturescripts/scripts/player/statsChange.lua:onStatsChange [19/02/2018 18:11:45] Description: [19/02/2018 18:11:45] data/creaturescripts/scripts/player/statsChange.lua:239: attempt to index local 'raceCombat' (a nil value) [19/02/2018 18:11:45] stack traceback: [19/02/2018 18:11:45] data/creaturescripts/scripts/player/statsChange.lua:239: in function <data/creaturescripts/scripts/player/statsChange.lua:6> statschange.lua: urgente, por favor!!!
-
shinys nascerem
mande seu creaturescripts/spawn.lua
-
Character List
não é com o ip que vc muda... eu expliquei bem ali em cima, segue esses passos, novamente
-
Character List
brother, seguinte, tive o mesmo problema, o que aconteceu é que minha internet quando reiniciava o ipv4 mudava, e isso é comum e provavelmente é o seu problema. provavelmente, para abrir as portas, você usou um ipv4, que é colocado nessa parte: sempre que seu modem reinicia, esse ip muda, e você vai ter que abrir todas as portas de novo usando o que foi gerado ao reiniciar, para vc descobrir, digite cmd na area de pesquisa do seu computador e lá no prompt de comando digite: ipconfig essa parte é o ip privado que você vai colocar lá: boa sorte, espero ter ajudado!