Ir para conteúdo
  • Cadastre-se

(Resolvido)[AJUDA] mudar town position


Ir para solução Resolvido por DdJs,

Posts Recomendados

Estou com o seguinte problema

estou com um sv baiak 8.6, e vários scripts fazem com que o player receba o townid 1

eu poderia editar no RME, porem os antigos donos apagaram o town que possui o id 1, sendo assim,  lá só começa pelo town id 2

imagem:

Citar

pycUj2a.png

 

Veja como as towns ja começam com o ID 2

existe alguma forma de eu editar a posição da town com o id 1? pq eu fico tomando o erro "temple position is wrong..." pq a town com id 1 ta na posição x-0 y-0 z-0

 

grato

 

Link para o post
Compartilhar em outros sites
  • Moderador
Agora, movie disse:

Você pode fazer com que, ao logar o player pela primeira vez mude a town para 2..

 

O problema é que o player nao consegue logar, como as posições são 0,0,0 o player recebe a mensagem "temple position is wrong" e nao loga

Link para o post
Compartilhar em outros sites
  • Moderador
32 minutos atrás, movie disse:

Posta o seu login.lua do creaturescripts aqui...

 

	ownerName = "Werner"
	ownerEmail = ""
	url = "werner.com"
	location = "Brazil"

	motd = "BestBaiak"
	serverName = "BestBaiak"
	loginMessage = "Bem vindo ao BestBaiak."
	displayGamemastersWithOnlineCommand = false

	sqlType = "sqlite"
	sqlHost = "localhost"
	sqlPort = 3306
	sqlUser = "root"
	sqlPass = "xxx"
	sqlDatabase = "forgottenserver"
	sqlFile = "forgottenserver.s3db"
	sqlKeepAlive = 0
	mysqlReadTimeout = 1000
	mysqlWriteTimeout = 1000
	mysqlReconnectionAttempts = 5
	encryptionType = "sha1"

	worldId = 0
	ip = "127.0.0.1"
	--ip="5.188.238.124"
	worldType = "open"
	bindOnlyGlobalAddress = false
	loginPort = 7171
	gamePort = "7172"
	statusPort = 7171
	loginOnlyWithLoginServer = false

	accountManager = true
	namelockManager = true
	newPlayerChooseVoc = true
	newPlayerSpawnPosX = 159
	newPlayerSpawnPosY = 55
	newPlayerSpawnPosZ = 7
	newPlayerTownId = 2
	newPlayerLevel = 15
	newPlayerMagicLevel = 0
	generateAccountNumber = false
	generateAccountSalt = false

	fragsLimit = 12 * 60 * 60
	fragsSecondLimit = 1 * 24 * 60 * 60
	fragsThirdLimit = 1 * 24 * 60 * 60

	fragsToRedSkull = 100
	fragsSecondToRedSkull = 700
	fragsThirdToRedSkull = 3800
	redSkullLength = 1 * 24 * 60 * 60

	fragsToBlackSkull = 500
	fragsSecondToBlackSkull = 3500
	fragsThirdToBlackSkull = 14000
	blackSkulledDeathHealth = 40
	blackSkulledDeathMana = 0
	blackSkullLength = 2 * 24 * 60 * 60
	useBlackSkull = true

	notationsToBan = 3
	warningsToFinalBan = 4
	warningsToDeletion = 5
	banLength = 7 * 24 * 60 * 60
	killsBanLength = 7 * 24 * 60 * 60
	finalBanLength = 30 * 24 * 60 * 60
	ipBanLength = 2 * 24 * 60 * 60
	fragsToBanishment = 7
	fragsSecondToBanishment = 21
	fragsThirdToBanishment = 41

	protectionLevel = 79
	pvpTileIgnoreLevelAndVocationProtection = true
	pzLocked = 1 * 30 * 1000
	huntingDuration = 1 * 60 * 1000
	criticalHitMultiplier = 1
	displayCriticalHitNotify = false
	removeWeaponAmmunition = false
	removeWeaponCharges = false
	removeRuneCharges = false
	whiteSkullTime = 4 * 60 * 1000
	advancedFragList = false
	useFragHandler = true
	noDamageToSameLookfeet = false
	showHealthChange = true
	showManaChange = false
	showHealthChangeForMonsters = false
	showManaChangeForMonsters = false
	fieldOwnershipDuration = 3 * 1000
	stopAttackingAtExit = false
	loginProtectionPeriod = 5 * 1000
	deathLostPercent = 7
	stairhopDelay = 0.5 * 1000
	pushCreatureDelay = 0.7 * 1000
	deathContainerId = 1987
	gainExperienceColor = 210
	addManaSpentInPvPZone = true
	recoverManaAfterDeathInPvPZone = true
	squareColor = 0
	broadcastBanishments = false
	maxViolationCommentSize = 60
	violationNameReportActionType = 2

	rsaPrime1 = "14299623962416399520070177382898895550795403345466153217470516082934737582776038882967213386204600674145392845853859217990626450972452084065728686565928113"
	rsaPrime2 = "7630979195970404721891201847792002125535401292779123937207447574596692788513647179235335529307251350570728407373705564708871762033017096809910315212884101"
	rsaPublic = "65537"
	rsaModulus = "109120132967399429278860960508995541528237502902798129123468757937266291492576446330739696001110603907230888610072655818825358503429057592827629436413108566029093628212635953836686562675849720620786279431090218017681061521755056710823876476444260558147179707119674283982419152118103759076030616683978566631413"
	rsaPrivate = "46730330223584118622160180015036832148732986808519344675210555262940258739805766860224610646919605860206328024326703361630109888417839241959507572247284807035235569619173792292786907845791904955103601652822519121908367187885509270025388641700821735345222087940578381210879116823013776808975766851829020659073"

		optionalWarAttackableAlly = true
		fistBaseAttack = 7
		criticalHitChance = 7
		noDamageToGuildMates = false
		noDamageToPartyMembers = false

		rookLevelTo = 5
		rookLevelToLeaveRook = 8
		rookTownId = 1
		useRookSystem = true

		paralyzeDelay = 1400

		premiumDaysToAddByGui = 9999

		useCapacity = true
		defaultDepotSize = 500
		defaultDepotSizePremium = 1000
		enableProtectionQuestForGM = true
		cleanItemsInMap = false
		playerFollowExhaust = 1000

		monsterSpawnWalkback = true
		allowBlockSpawn = true
		classicEquipmentSlots = true

		NoShareExpSummonMonster = false

		enableLootBagDisplay = false
		highscoreDisplayPlayers = 10
		updateHighscoresAfterMinutes = 30
		attackImmediatelyAfterLoggingIn = false
		exhaustionNPC = false
		exhaustionInSecondsNPC = 0.5

		manualVersionConfig = false
		versionMin = 860
		versionMax = 860
		versionMsg = "Only clients with protocol 8.60 allowed!"

	loginTries = 10
	retryTimeout = 5 * 1000
	loginTimeout = 30 * 1000
	maxPlayers = 1000
	displayOnOrOffAtCharlist = false
	onePlayerOnlinePerAccount = true
	allowClones = 0
	statusTimeout = 10
	replaceKickOnLogin = true
	forceSlowConnectionsToDisconnect = false
	premiumPlayerSkipWaitList = true
	packetsPerSecond = 1000
	loginProtectionTime = 10

	deathListEnabled = true
	deathListRequiredTime = 1 * 60 * 1000
	maxDeathRecords = 5
	multipleNames = false

		retroPVP = false
		deathAssistCount = 20

		blessings = true
		blessingOnlyPremium = true
		blessingReductionBase = 30
		blessingReductionDecrement = 5
		eachBlessReduction = 8
			useFairfightReduction = true
			fairFightTimeRange = 60
			pvpBlessingThreshold = 40

	externalGuildWarsManagement = false
	ingameGuildManagement = false
	levelToFormGuild = 150
	premiumDaysToFormGuild = 0
	guildNameMinLength = 4
	guildNameMaxLength = 20

	buyableAndSellableHouses = true
	houseNeedPremium = false
	bedsRequirePremium = false
	levelToBuyHouse = 250
	housesPerAccount = 1
	houseRentAsPrice = false
	housePriceAsRent = false
	housePriceEachSquare = 1000
	houseRentPeriod = "weekly"
	houseCleanOld = 8 * 24 * 60 * 60
	guildHalls = false
	houseSkipInitialRent = true
	houseProtection = true

	timeBetweenActions = 200
	timeBetweenExActions = 1000
	timeBetweenCustomActions = 0
	checkCorpseOwner = true
	hotkeyAimbotEnabled = true
	maximumDoorLevel = 999
	tradeLimit = 100
	canOnlyRopePlayers = false

	mapAuthor = "Johnao"
	randomizeTiles = true
	houseDataStorage = "binary-tilebased"
	storeTrash = true
	cleanProtectedZones = true
	mapName = "Baiak Barao.otbm"

	mailMaxAttempts = 5
	mailBlockPeriod = 30 * 60 * 1000
	mailAttemptsFadeTime = 5 * 60 * 1000
	mailboxDisabledTowns = ""

	daemonize = false
	defaultPriority = "higher"
	niceLevel = 5
	serviceThreads = 1
	coresUsed = "-1" 
	startupDatabaseOptimization = true
	removePremiumOnInit = true
	confirmOutdatedVersion = false
	skipItemsVersionCheck = true

	maxMessageBuffer = 9

	dataDirectory = "data/"
	logsDirectory = "data/logs/"
	disableOutfitsForPrivilegedPlayers = false
	bankSystem = false
	spellNameInsteadOfWords = false
	emoteSpells = true
	unifiedSpells = false
	promptExceptionTracerErrorBox = true
	storePlayerDirection = false
	savePlayerData = true
	monsterLootMessage = 3
	monsterLootMessageType = 25
	separateViplistPerCharacter = false
	vipListDefaultLimit = 20
	vipListDefaultPremiumLimit = 100

	allowChangeOutfit = true
	allowChangeColors = true
	allowChangeAddons = true
	addonsOnlyPremium = true

	ghostModeInvisibleEffect = true
	ghostModeSpellEffects = true

	idleWarningTime = 14 * 60 * 1000
	idleKickTime = 15 * 60 * 1000
	expireReportsAfterReads = 1
	playerQueryDeepness = -1
	protectionTileLimit = 20
	houseTileLimit = 4
	tileLimit = 10

	freePremium = true
	premiumForPromotion = false
	updatePremiumStateAtStartup = true

	experienceStages = true
	rateExperience = 350
	rateExperienceFromPlayers = 0
	levelToOfflineTraining = 999
	rateSkill = 25
	rateSkillOffline = 0.5
	rateMagic = 10
	rateMagicOffline = 0.5
	rateLoot = 8.0
	rateSpawnMin = 1
	rateSpawnMax = 2
	formulaLevel = 5.0
	formulaMagic = 1.0

		rateMonsterHealth = 1.0
		rateMonsterMana = 1.0
		rateMonsterAttack = 1.0
		rateMonsterDefense = 1.0

	minLevelThresholdForKilledPlayer = 0.9
	maxLevelThresholdForKilledPlayer = 1.1

	rateStaminaLoss = 1
	rateStaminaGain = 3
	rateStaminaThresholdGain = 12
	staminaRatingLimitTop = 40 * 60
	staminaRatingLimitBottom = 14 * 60
	staminaLootLimit = 14 * 60
	rateStaminaAboveNormal = 1.5
	rateStaminaUnderNormal = 0.5
	staminaThresholdOnlyPremium = true

	experienceShareRadiusX = 30
	experienceShareRadiusY = 30
	experienceShareRadiusZ = 1
	experienceShareLevelDifference = 2 / 3
	extraPartyExperienceLimit = 20
	extraPartyExperiencePercent = 5
	experienceShareActivity = 2 * 60 * 1000

	globalSaveEnabled = false
	globalSaveHour = 8
	globalSaveMinute = 0
	shutdownAtGlobalSave = true
	cleanMapAtGlobalSave = false

	minRateSpawn = 1
	maxRateSpawn = 3
	deSpawnRange = 2
	deSpawnRadius = 50

	maxPlayerSummons = 2
	teleportAllSummons = false
	teleportPlayerSummons = true

	disableLuaErrors = false
	adminLogs = true
	displayPlayersLogging = true
	prefixChannelLogs = ""
	runFile = "server/run.log"
	outputLog = "server/out.log"
	truncateLogOnStartup = false
	logPlayersStatements = false

	managerPort = 7171
	managerLogs = true
	managerPassword = ""
	managerLocalhostOnly = true
	managerConnectionsLimit = 1

	adminPort = 7171
	adminPassword = ""
	adminLocalhostOnly = true
	adminConnectionsLimit = 1
	adminRequireLogin = true
	adminEncryption = ""
	adminEncryptionData = ""

	saveGlobalStorage = false
	bufferMutedOnSpellFailure = false
<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
	<!-- The Loot Boss Striker -->
	<event type="kill" name="lootboss" event="script" value="lootboss.lua"/>
    <event type="login" name="lootboss" event="script" value="lootboss.lua"/>
	<event type="kill" name="autoloot" event="script" value="Auto Loot.lua"/>

	<!--Real Team Battle-->
	<event type="login" name="realTeamBattleLogin" event="script" value="events/realTeamBattle.lua"/>
	<event type="combat" name="realTeamBattleCombat" event="script" value="events/realTeamBattle.lua"/>
	<event type="target" name="realTeamBattleTarget" event="script" value="events/realTeamBattle.lua"/>
	<event type="prepareDeath" name="realTeamBattleDeath" event="script" value="events/realTeamBattle.lua"/>

	<!-- Defend the Towers (ChaitoSoft - Desenvolvedores Open Tibia) -->
	<event type="death" name="dttDeath" event="script" value="events/DTT.lua"/> 
	<event type="PrepareDeath" name="dttPrepare" event="script" value="events/DTT.lua"/>
	<event type="statschange" name="dttStats" event="script" value="events/DTT.lua"/>
	<event type="outfit" name="dttOutfit" event="script" value="events/DTT.lua"/>
	<event type="login" name="dttLogin" event="script" value="events/DTT.lua"/>
	<event type="kill" name="dttKill" event="script" value="events/DTT.lua"/>	
	<event type="combat" name="dttCombat" event="script" value="events/DTT.lua"/>	
	
	<!-- Battlefield Event -->
	<event type="death" name="SkullAmulet" event="script" value="preparedeath.lua"/>
    <event type="death" name="Teleportquest" event="script" value="tpquest.lua"/>
	<event type="login" name="PlayerLogin" event="script" value="login.lua"/>
	<event type="login" name="FirstItems" event="script" value="firstitems.lua"/>

	<!-- Events -->
	<event type="statschange" name="FireStorm" event="script" value="events/FireStorm.lua"/>
	<event type="statschange" name="zombieevent" event="script" value="events/zombie.lua"/>
	<event type="PrepareDeath" name="DesertDeath" event="script" value="events/DesertWAR.lua"/>
	<event type="combat" name="DesertCombat" event="script" value="events/DesertWAR.lua"/>	
	<event type="PrepareDeath" name="ctf" event="script" value="events/CTF.lua"/>
	<event type="PrepareDeath" name="BattleDeath" event="script" value="events/Battlefield.lua"/>
	<event type="combat" name="BattleCombat" event="script" value="events/Battlefield.lua"/>

	<!-- Defend the Towers (ChaitoSoft - Desenvolvedores Open Tibia) -->
	<event type="kill" name="killitem" event="script" value="lootkill.lua"/>
    <event type="advance" name="FullHpMana" event="script" value="fullhpmana.lua"/>
	<event type="advance" name="recompensa" event="script" value="recompensa_level.lua"/>
		
	
	
	<event type="kill" name="BountyHunter" script="kill.lua"/>
	
	<event type="death" name="deathnoob" event="script" value="noobsay.lua"/>
	
	<event type="death" name="huntdeath" event="script" value="death.lua"/>
	<event type="logout" name="loguthunt" event="script" value="logouthunt.lua"/>

	<event type="channeljoin" name="GuildEvents" event="script" value="guild.lua"/>
	<event type="mailreceive" name="Mail" event="script" value="mail.lua"/>
	<event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>
   
        <event type="death" name="teleportmonster" script="tpmonster.lua"/>
        <event type="login" name="ExpVip" script="vipexp.lua"/>
        <event type="login" name="AdvEffect" event="script" value="vipeffect.lua"/>

	<event type="think" name="Idle" event="script" value="idle.lua"/>
	<event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
	         
	<event type="PrepareDeath" name="pvparena" script="pvparena.lua"/>
	<event type="attack" name="attackguild" script="attackguild.lua"/>
	<event type="death" name="incendio" script="incendioMonster.lua"/>
                <event type="statschange" name="CombatDodge" event="script" value="dodgecombat.lua"/>
	<event type="statschange" name="critical" event="script" value="critical.lua"/>
                
   <event type="login" name="blesscheck" event="script" value="blesscheck.lua"/>
    <event type="look" name="fraglook" script="fraglook.lua"/>
    <event type="login" name="expwoe" event="script" value="expwoe.lua"/>
	<event type="login" name="FimVip" event="script" value="fimvip.lua"/>
	
 
     <!-- WoE -->
	<event type="death" name="empe_broken" event="script" value="empe_broken.lua"/>
	<event type="death" name="pre_empes" event="script" value="pre_empes.lua"/>
	<event type="statschange" name="empe_dmg" event="script" value="empe_dmg.lua"/>
	<event type="login" name="reg_vs_guard" event="script" value="vs_guard.lua"/>
	<event type="statschange" name="vs_guard" event="script" value="vs_guard.lua"/>




	
	<!--Addons-->
	<event type="death" name="teleportmonster2" script="tpmonster2.lua"/> <!-- Jack Sparrow -->
	<event type="death" name="teleportmonster3" script="tpmonster3.lua"/> <!-- Orochimaru -->
	<event type="death" name="teleportmonster4" script="tpmonster4.lua"/> <!-- Merlin -->
	<event type="death" name="teleportmonster5" script="tpmonster5.lua"/> <!-- Constantine -->
	<event type="death" name="teleportmonster6" script="tpmonster6.lua"/> <!-- Conan o Barbaro -->
	<event type="death" name="teleportmonster7" script="tpmonster7.lua"/> <!-- Konga -->
	<event type="death" name="teleportmonster8" script="tpmonster8.lua"/> <!-- Esquimoh -->
	<event type="death" name="teleportmonster9" script="tpmonster9.lua"/> <!-- Lament of Innocence -->
	<event type="death" name="teleportmonster10" script="tpmonster10.lua"/> <!-- King Arthur -->
	<event type="death" name="teleportmonster11" script="tpmonster11.lua"/> <!-- Drako -->
	<event type="death" name="teleportmonster12" script="tpmonster12.lua"/> <!-- Chaos -->
	<event type="death" name="teleportmonster13" script="tpmonster13.lua"/> <!-- Alucard -->
	<event type="death" name="teleportmonster14" script="tpmonster14.lua"/> <!-- Symphony of the Night -->
	<event type="death" name="teleportmonster15" script="tpmonster15.lua"/> <!-- Espirito da Natureza -->
	<event type="death" name="teleportmonster16" script="tpmonster16.lua"/> <!-- Catatau -->
	<event type="death" name="teleportmonster17" script="tpmonster17.lua"/> <!-- Moby Dick -->
	<event type="death" name="teleportmonster18" script="tpmonster18.lua"/> <!-- Coringa -->
	<event type="death" name="teleportmonster19" script="tpmonster19.lua"/> <!-- Robin Hood -->
	<event type="death" name="teleportmonster20" script="tpmonster20.lua"/> <!-- Belmont's Revenge -->
	<event type="death" name="teleportmonster21" script="tpmonster21.lua"/> <!-- Gaia -->
	<event type="death" name="teleportmonster22" script="tpmonster22.lua"/> <!-- Gentleman -->	
	
	
	<!--Arena-->	
	<event type="death" name="teleportarena1" script="tparena1.lua"/>
	
	<!-- Elemental quest -->
	<event type="death" name="teleportmonster23" script="tpmonster23.lua"/> <!-- Massive Energy Elemental -->	
	<event type="death" name="teleportmonster24" script="tpmonster24.lua"/> <!-- Massive Earth Elemental -->	
	<event type="death" name="teleportmonster25" script="tpmonster25.lua"/> <!-- Massive Fire Elemental -->	
	<event type="death" name="teleportmonster26" script="tpmonster26.lua"/> <!-- Massive Water Elemental -->	
	
    </creaturescripts>

 

segui as dicas do Ddjs e funcionou, vou apenas deixar um tutorialzinho pra caso alguem passe pelo mesmo problema
1- mova o arquivo de houses do seu mapa para outra pasta (vcs vao ver o pq)
2- abra o RME, aperte ctrl + T e anote o endereço de todas as cidades

3- saia removendo todas as cidades e adicione 1 por 1 (vc nao conseguirá remover uma cidade que tem casas associadas a ela, então por isso fizemos o passo 1, assim o RME nao reconhece as casas associadas a cidade)

4- re-adicione as cidades usando a posição que vc copiou no passo 2, cuidado pra adicionar na sequencia, pro id ficar correto

Link para o post
Compartilhar em outros sites

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.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo