-
Pisos e Paredes
MINHA DUVIDA É POR CAUSA DA DIFERENÇA ENTRE ARQUIVOS NO XML, alguns são diferentes e são paredes e pisos tbm <?xml version="1.0" encoding="UTF-8"?> <items> <item id="100" name="void" /> <item id="101" name="earth" /> <item id="103" name="dirt" /> <item id="104" name="sand" /> <item id="106" name="grass" /> <item fromid="108" toid="109" name="flowers" /> <item id="194" name="dirt" /> <item id="231" name="sand" /> <item id="280" name="earth ground" /> <item id="293" name="grass" /> <item id="294" article="a" name="pitfall"> <attribute key="floorchange" value="down" /> <attribute key="decayTo" value="293" /> <attribute key="duration" value="300" /> </item> <item fromid="351" toid="353" name="dirt floor" /> <item fromid="354" toid="355" name="muddy floor" /> <item fromid="356" toid="367" article="a" name="dirt wall" /> <item id="368" name="earth ground" /> <item fromid="369" toid="370" article="a" name="trapdoor"> <attribute key="floorchange" value="down" /> </item> <item fromid="371" toid="382" article="a" name="stone wall" /> <item id="383" article="a" name="hole"> <attribute key="floorchange" value="down" />
-
Pisos e Paredes
TFS 0.3.6 Base: Revolution Qual erro está surgindo/O que você procura?: Adicionei novas paredes e pisos queria saber como faço pra adicionar eles na XML pois no items.otb eu ja adicionei Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
Source
Tenho uma base de poketibia com source, porém está com debug, crashs e não ta dando loot pra staff alguém poderia me auxiliar com isso ? Aguardo respostas !
-
[Error] creature script
<event type="spawn" name="Spawn" event="script" value="spawn.lua"/> minha tag xml ================================================================ Meu script =============================================================== local shinys = { "Venusaur", "Charizard", "Blastoise", "Butterfree", "Beedrill", "Pidgeot", "Rattata", "Raticate", "Raichu", "Zubat", "Golbat", "Paras", "Parasect", "Venonat", "Venomoth", "Growlithe", "Arcanine", "Abra", "Alakazam", "Tentacool", "Tentacruel", "Farfetch'd", "Grimer", "Muk", "Gengar", "Onix", "Krabby", "Kingler", "Voltorb", "Electrode", "Cubone", "Marowak", "Hitmonlee", "Hitmonchan", "Tangela", "Horsea", "Seadra", "Scyther", "Jynx", "Electabuzz", "Pinsir", "Magikarp", "Gyarados", "Snorlax", "Dragonair", "Dratini"} local raros = {"Dragonite"} local function doSetRandomGender(cid) if not isCreature(cid) then return true end if isSummon(cid) then return true end local gender = 0 local name = getCreatureName(cid) if not newpokedex[name] then return true end local rate = newpokedex[name].gender if rate == 0 then gender = 3 elseif rate == 1000 then gender = 4 elseif rate == -1 then gender = 1 elseif math.random(1, 1000) <= rate then gender = 4 else gender = 3 end if gender == 1 then doCreatureSetSkullType(cid, gender) end end local function doShiny(cid) if isCreature(cid) then if isSummon(cid) then return true end if getPlayerStorageValue(cid, 74469) >= 1 then return true end if getPlayerStorageValue(cid, 22546) >= 1 then return true end if isNpcSummon(cid) then return true end if getPlayerStorageValue(cid, 637500) >= 1 then return true end --alterado v1.9 if isInArray(shinys, getCreatureName(cid)) then --alterado v1.9 \/ chance = 0.1 --1% chance elseif isInArray(raros, getCreatureName(cid)) then --n coloquem valores menores que 0.1 !! chance = 0.1 --1% chance else return true end if math.random(1, 1000) <= chance*10 then doSendMagicEffect(getThingPos(cid), 18) local name, pos = "Shiny ".. getCreatureName(cid), getThingPos(cid) doRemoveCreature(cid) local shi = doCreateMonster(name, pos, false) setPlayerStorageValue(shi, 74469, 1) else setPlayerStorageValue(cid, 74469, 1) end --/\ else return true end end function onSpawn(cid) registerCreatureEvent(cid, "Experience") registerCreatureEvent(cid, "GeneralConfiguration") registerCreatureEvent(cid, "DirectionSystem") registerCreatureEvent(cid, "CastSystem") if isSummon(cid) then registerCreatureEvent(cid, "SummonDeath") return true end addEvent(doSetRandomGender, 5, cid) addEvent(doShiny, 10, cid) addEvent(adjustWildPoke, 5, cid) return true end
-
[Error] creature script
MEU SERVIDOR TA DANDO ESSE ERRO COMO FAÇO PRA RESOLVER? [22/09/2017 17:39:15] [Error - CreatureScript Interface] [22/09/2017 17:39:15] In a timer event called from: [22/09/2017 17:39:15] datapack/creaturescripts/scripts/spawn.lua:onSpawn
-
Nome do Client
QUERIA MUDAR O NOME DO MEU OTCLIENT, QUANDO VOCÊ ABRE ELE NA PARTE DE CIMA ESQUERDA APARECE O NOME,COMO FAÇO PRA MUDAR? local musicFilename = "/sounds/startup" local musicChannel = g_sounds.getChannel(1) function setMusic(filename) musicFilename = filename if not g_game.isOnline() then musicChannel:stop() musicChannel:enqueue(musicFilename, 3) end end function reloadScripts() g_textures.clearCache() g_modules.reloadModules() local script = '/' .. g_app.getCompactName() .. 'rc' if g_resources.fileExists(script) then dofile(script) end local message = tr('All modules and scripts were reloaded.') modules.game_textmessage.displayGameMessage(message) print(message) end function startup() -- Play startup music (The Silver Tree, by Mattias Westlund) musicChannel:enqueue(musicFilename, 3) connect(g_game, { onGameStart = function() musicChannel:stop(3) end }) connect(g_game, { onGameEnd = function() g_sounds.stopAll() musicChannel:enqueue(musicFilename, 3) end }) -- Check for startup errors local errtitle = nil local errmsg = nil if g_graphics.getRenderer():lower():match('gdi generic') then errtitle = tr('Graphics card driver not detected') errmsg = tr('No graphics card detected, everything will be drawn using the CPU,\nthus the performance will be really bad.\nPlease update your graphics driver to have a better performance.') end -- Show entergame if errmsg or errtitle then local msgbox = displayErrorBox(errtitle, errmsg) msgbox.onOk = function() EnterGame.firstShow() end else EnterGame.firstShow() end end function init() connect(g_app, { onRun = startup, onExit = exit }) g_window.setMinimumSize({ width = 600, height = 480 }) g_sounds.preload(musicFilename) -- initialize in fullscreen mode on mobile devices if g_window.getPlatformType() == "X11-EGL" then g_window.setFullscreen(true) else -- window size local size = { width = 800, height = 600 } size = g_settings.getSize('window-size', size) g_window.resize(size) -- window position, default is the screen center local displaySize = g_window.getDisplaySize() local defaultPos = { x = (displaySize.width - size.width)/2, y = (displaySize.height - size.height)/2 } local pos = g_settings.getPoint('window-pos', defaultPos) pos.x = math.max(pos.x, 0) pos.y = math.max(pos.y, 0) g_window.move(pos) -- window maximized? local maximized = g_settings.getBoolean('window-maximized', false) if maximized then g_window.maximize() end end g_window.setTitle(g_app.getName()) g_window.setIcon('/images/clienticon') -- poll resize events g_window.poll() g_keyboard.bindKeyDown('Ctrl+Shift+R', reloadScripts) -- generate machine uuid, this is a security measure for storing passwords if not g_crypt.setMachineUUID(g_configs.get('uuid')) then g_configs.set('uuid', g_crypt.getMachineUUID()) g_configs.save() end end function terminate() disconnect(g_app, { onRun = startup, onExit = exit }) -- save window configs g_settings.set('window-size', g_window.getUnmaximizedSize()) g_settings.set('window-pos', g_window.getUnmaximizedPos()) g_settings.set('window-maximized', g_window.isMaximized()) end function exit() g_logger.info("Exiting application..") end
-
Burned
Olá,Queria pedir a ajuda de alguém ai pra adicionar a pure stone e roll stone no meu poketibia e Rhyperior e shiny rhyperior junto com lickilicky Dou REP+
-
Ginasio
Alguém poderia disponibilizar o script 100% dos Ginasios?, eu falo hi , duel, battle e o npc diz que preciso ter pokémons sendo que estou com os meus Dou REP+
-
NPC Torneio
Eu coloquei mano, continuou dando erro
-
NPC Torneio
- NPC Torneio
torneio = { awardTournament = 2152, ---moeda usada para entra no torneio-- awardAmount = 150, -- quantidade de moeda que o player vai ganhar ao vencer o torneio-- playerTemple = {x = 1038, y = 1035, z = 7}, --pra onde vai o player quando morrer ?-- tournamentFight = {x = 1228, y = 1776, z = 7}, --centro da arena torneio combate-- {x = 1228, y = 1776, z = 7} area = {fromx = 1259, fromy = 1817, fromz = 7, tox = 1194, toy = 1738, toz= 7},--canto acima direito da arena combate-canto esquerdo abaixo da arena combate-- {x = 1197, y = 1798, z = 7} waitPlace = {x = 1222, y = 1805, z = 7}, --centro da sala de espera-- {x = 1222, y = 1805, z = 7} waitArea = {fromx = 1210, fromy = 1796, fromz = 7, tox = 1234, toy = 1813, toz= 7}, -- {x = 1210, y = 1796, z = 7} | {x = 1234, y = 1813, z = 7} startHour1 = "08:45:00", --horario do aviso?-- endHour1 = "09:00:00",--horario que começa?-- startHour2 = "12:15:00",--horario do aviso?-- endHour2 = "12:30:00",--horario do aviso?-- startHour3 = "18:45:00",--horario do aviso?-- endHour3 = "19:00:00",--horario do aviso?-- startHour4 = "22:45:00",--horario do aviso?-- endHour4 = "23:00:00",--horario do aviso?-- price = 20000,--valor para entrar no torneio ? 500 dollar no caso-- revivePoke = 12344,--aqui é revive se tiver e se não tiver não precisa mexer-- } function getPlayersInArea(area) local players = {} for x = area.fromx,area.tox do for y = area.fromy,area.toy do for z = area.fromz,area.toz do local m = getTopCreature({x=x, y=y, z=z}).uid if m ~= 0 and isPlayer(m) then table.insert(players, m) end end end end return players end- NPC Torneio
Se eu postar o script voce me ajuda resolver?- Bug Gyn Poketibia
Ei vocês sabem resolver esse? 06:31 Erika: To battle agains't a gym leader you need pokemons.- NPC Torneio
Galera to há varias madrugadas procurando uma solução pro meu problema aqui no fórum,no google e nada > Eu consigo falar com o npc nick do torneio mas quando ele cobra os 20 hds pra ir pro torneio nao acontece nada ======================================================================================================================================================================= SCRIPT ↓ 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 function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'torneio') or msgcontains(msg, 'enter') then selfSay('Você quer participar do torneio por 20 hundred dollars? [sim/Yes]', cid) talkState[talkUser] = 2 elseif talkState[talkUser] == 2 then if msgcontains(msg, 'yes') or msgcontains(msg, 'sim') then if os.date("%X") < torneio.startHour or os.date("%X") > torneio.endHour then selfSay('As inscrições para o torneio terminaram, volte Amanha AS 18:00 para nova inscriçao!.', cid) return true end if doPlayerRemoveMoney(cid, torneio.price) then doTeleportThing(cid, torneio.waitPlace) setPlayerStorageValue(cid,130130,1) doPlayerSendTextMessage(cid, 21, "Bem-vindo, esta é a sala de espera, você espera aqui enquanto o torneio não começa. hora de início: 18:02 {"..torneio.endHour.."}.") else selfSay('Voce nao Tem Dinheiro ('..torneio.price..').', cid) end else selfSay('Voce nao quer participar do Torneio? Vem no Proximo Dia / Todos os Dias as [17:50]!', cid) talkState[talkUser] = 0 end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())- !teleport "city
Só mais uma duvida, onde eu coloco esse script? e precisa de alguma localização? - NPC Torneio
Informação Importante
Confirmação de Termo