Postado Setembro 2, 2017 7 anos 9 minutos atrás, mattos123 disse: nao funcionou, detalhe enggraçado, player que loga e vai pra esse lugar, nao cria registo que logou no .exe do server As vezes é direto no login.lua (creaturescript), tem uma função no meu (1º) | [8.60] - Galaxy Server - Download (2º) | [8.60] - Glorious Server - Download (3º) | [8.60] - Epic Server - Download
Postado Setembro 2, 2017 7 anos Autor 13 minutos atrás, jNo disse: As vezes é direto no login.lua (creaturescript), tem uma função no meu no meu nao tem, pelo menos nao que eu tenha visto local function onMovementRemoveProtection(cid, oldPosition, time) local player = Player(cid) if not player then return true end local playerPosition = player:getPosition() if (playerPosition.x ~= oldPosition.x or playerPosition.y ~= oldPosition.y or playerPosition.z ~= oldPosition.z) or player:getTarget() then player:setStorageValue(Storage.combatProtectionStorage, 0) return true end addEvent(onMovementRemoveProtection, 1000, cid, oldPosition, time - 1) end function onLogin(player) local loginStr = "Welcome to " .. configManager.getString(configKeys.SERVER_NAME) .. "!" if player:getLastLoginSaved() <= 0 then loginStr = loginStr .. " Please choose your outfit." player:sendOutfitWindow() else if loginStr ~= "" then player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr) end loginStr = string.format("Your last visit was on %s.", os.date("%a %b %d %X %Y", player:getLastLoginSaved())) end player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr) local playerId = player:getId() -- Stamina nextUseStaminaTime[playerId] = 1 -- EXP Stamina nextUseXpStamina[playerId] = 1 --Prey Stamina nextUseStaminaPrey[playerId+1] = {Time = 1} nextUseStaminaPrey[playerId+2] = {Time = 1} nextUseStaminaPrey[playerId+3] = {Time = 1} -- Prey Data if (player:getVocation():getId() ~= 0) then local columnUnlocked = getUnlockedColumn(player) if (not columnUnlocked) then columnUnlocked = 0 end for i = 0, columnUnlocked do sendPreyData(player, i) end end -- Rewards notice local rewards = #player:getRewardList() if(rewards > 0) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, string.format("You have %d %s in your reward chest.", rewards, rewards > 1 and "rewards" or "reward")) end -- Update player id local stats = player:inBossFight() if stats then stats.playerId = player:getId() end -- Events player:registerEvent("PlayerDeath") player:registerEvent("DropLoot") player:registerEvent("BossParticipation") if player:getStorageValue(Storage.combatProtectionStorage) <= os.time() then player:setStorageValue(Storage.combatProtectionStorage, os.time() + 10) onMovementRemoveProtection(playerId, player:getPosition(), 10) end db.query('INSERT INTO `players_online` (`player_id`) VALUES (' .. playerId .. ')') return true end 22 minutos atrás, Sekk disse: e as posições no config.lua? nao há nada relativo new player position, é tudo atraves do gesior(druid sample, sorcerer sample etc)
Postado Setembro 2, 2017 7 anos 11 minutos atrás, mattos123 disse: no meu nao tem, pelo menos nao que eu tenha visto Mostrar conteúdo oculto local function onMovementRemoveProtection(cid, oldPosition, time) local player = Player(cid) if not player then return true end local playerPosition = player:getPosition() if (playerPosition.x ~= oldPosition.x or playerPosition.y ~= oldPosition.y or playerPosition.z ~= oldPosition.z) or player:getTarget() then player:setStorageValue(Storage.combatProtectionStorage, 0) return true end addEvent(onMovementRemoveProtection, 1000, cid, oldPosition, time - 1) end function onLogin(player) local loginStr = "Welcome to " .. configManager.getString(configKeys.SERVER_NAME) .. "!" if player:getLastLoginSaved() <= 0 then loginStr = loginStr .. " Please choose your outfit." player:sendOutfitWindow() else if loginStr ~= "" then player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr) end loginStr = string.format("Your last visit was on %s.", os.date("%a %b %d %X %Y", player:getLastLoginSaved())) end player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr) local playerId = player:getId() -- Stamina nextUseStaminaTime[playerId] = 1 -- EXP Stamina nextUseXpStamina[playerId] = 1 --Prey Stamina nextUseStaminaPrey[playerId+1] = {Time = 1} nextUseStaminaPrey[playerId+2] = {Time = 1} nextUseStaminaPrey[playerId+3] = {Time = 1} -- Prey Data if (player:getVocation():getId() ~= 0) then local columnUnlocked = getUnlockedColumn(player) if (not columnUnlocked) then columnUnlocked = 0 end for i = 0, columnUnlocked do sendPreyData(player, i) end end -- Rewards notice local rewards = #player:getRewardList() if(rewards > 0) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, string.format("You have %d %s in your reward chest.", rewards, rewards > 1 and "rewards" or "reward")) end -- Update player id local stats = player:inBossFight() if stats then stats.playerId = player:getId() end -- Events player:registerEvent("PlayerDeath") player:registerEvent("DropLoot") player:registerEvent("BossParticipation") if player:getStorageValue(Storage.combatProtectionStorage) <= os.time() then player:setStorageValue(Storage.combatProtectionStorage, os.time() + 10) onMovementRemoveProtection(playerId, player:getPosition(), 10) end db.query('INSERT INTO `players_online` (`player_id`) VALUES (' .. playerId .. ')') return true end nao há nada relativo new player position, é tudo atraves do gesior(druid sample, sorcerer sample etc) Deve ter alguma script chamado "tutoral" ou algo do tipo fazendo os players nascer ai. Talvez você queira ver: BestBaiak [FAQ]Remere's Map Editor - Dúvidas e soluções de bugs Contato: Discord:
Postado Setembro 2, 2017 7 anos Autor @ to ficando puto ja com isso mano , ta roendo meus nervos Agora, Werner disse: Deve ter alguma script chamado "tutoral" ou algo do tipo fazendo os players nascer ai. nao tem mano, nem dentro de nenhum arquivo tem a palavra "tutorial"
Postado Setembro 2, 2017 7 anos Vê qual é essa position que os players tão nascendo e procura por ela nos arquivos, porque se mudar a position do sample não funcionou é alguma script fazendo isso... Em últimos casos você pode tacar um teleport ai e colocar a postion que quer que os players vão parar ao criar a acc. Editado Setembro 2, 2017 7 anos por Werner (veja o histórico de edições) Talvez você queira ver: BestBaiak [FAQ]Remere's Map Editor - Dúvidas e soluções de bugs Contato: Discord:
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.