Postado Julho 4, 2015 9 anos Galera, quando vou entrar no teleport da warzone, aparece uma mensagem dizendo que nao posso entra naquele teleport, no caso é necessario ter uma missao, como faço pra nao precisar ter missao pra passar no teleport? O arquivo que faz surgir essa mensagem é esse. local destination = { [4121] = {position = Position(32801, 31766, 9), storageValue = 1, needCrystal = true}, [3220] = {position = Position(32627, 31863, 11), storageValue = 1, needCrystal = true}, [3128] = {position = Position(32840, 32062, 13), storageValue = 14}, [3129] = {position = Position(32635, 31954, 10), storageValue = 14}, [3130] = {position = Position(32704, 32036, 11), storageValue = 15}, [3131] = {position = Position(32643, 31938, 10), storageValue = 15}, [3132] = {position = Position(32826, 32054, 9), storageValue = 15}, -- Gnomebase Alpha [3133] = {position = Position(32636, 31973, 10), storageValue = 15}, -- City [3134] = {position = Position(32799, 32145, 9), storageValue = 16}, -- Golems [3135] = {position = Position(32841, 32109, 9), storageValue = 16}, -- Gnomebase Alpha [3136] = {position = Position(32744, 32086, 13), storageValue = 16}, [3137] = {position = Position(32819, 32099, 9), storageValue = 16}, [35669] = {position = Position(32826, 32056, 9), storageValue = 1}, -- leave warzone 3 [3215] = {position = Position(32369, 32241, 7), storageValue = 1, needCrystal = true}, [3216] = {position = Position(32212, 31133, 7), storageValue = 1, needCrystal = true}, [3217] = {position = Position(32317, 32825, 7), storageValue = 1, needCrystal = true}, [3218] = {position = Position(33213, 32454, 1), storageValue = 1, needCrystal = true}, [3219] = {position = Position(33217, 31814, 8), storageValue = 1, needCrystal = true} } function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return end local teleportCrystal = destination[item.actionid] if not teleportCrystal then return end if player:getStorageValue(Storage.BigfootBurden.QuestLine) >= teleportCrystal.storageValue then if not teleportCrystal.needCrystal or player:removeItem(18457, 1) then player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) player:teleportTo(teleportCrystal.position) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) else player:teleportTo(fromPosition) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You need a teleport crystal to use this device.') end return true end -- There is no destination with storageValue == 2, should this check for storage? if teleportCrystal.storageValue == 2 then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You have no idea on how to use this device. Xelvar in Kazordoon might tell you more about it.') else player:teleportTo(fromPosition) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'Sorry, you don\'t have access to use this teleport!') end return true end
Postado Julho 5, 2015 9 anos Pegue está script e vai até a pasta de seu servidor, data/movements/scripts/quests/bigfoot burden/GCTS.lua E cole este código local destination = { [4121] = {position = Position(32801, 31766, 9), storageValue = 1, needCrystal = false}, [3220] = {position = Position(32627, 31863, 11), storageValue = 1, needCrystal = false}, [3128] = {position = Position(33000, 31870, 13), storageValue = 14}, [3129] = {position = Position(32795, 31762, 10), storageValue = 14}, [3130] = {position = Position(32864, 31844, 11), storageValue = 15}, [3131] = {position = Position(32803, 31746, 10), storageValue = 15}, [3132] = {position = Position(32986, 31862, 9), storageValue = 15}, -- Gnomebase Alpha [3133] = {position = Position(32796, 31781, 10), storageValue = 15}, -- City [3134] = {position = Position(32959, 31953, 9), storageValue = 16}, -- Golems [3135] = {position = Position(33001, 31915, 9), storageValue = 16}, -- Gnomebase Alpha [3136] = {position = Position(32904, 31894, 13), storageValue = 16}, [3137] = {position = Position(32979, 31907, 9), storageValue = 16}, [35669] = {position = Position(32986, 31864, 9), storageValue = 1}, -- leave warzone 3 [3215] = {position = Position(32369, 32241, 7), storageValue = 1, needCrystal = false}, [3216] = {position = Position(32212, 31133, 7), storageValue = 1, needCrystal = false}, [3217] = {position = Position(32317, 32825, 7), storageValue = 1, needCrystal = false}, [3218] = {position = Position(33213, 32454, 1), storageValue = 1, needCrystal = false}, [3219] = {position = Position(33217, 31814, 8), storageValue = 1, needCrystal = false} } function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return end local teleportCrystal = destination[item.actionid] if not teleportCrystal then return end if not teleportCrystal.needCrystal or player:removeItem(18457, 1) then player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) player:teleportTo(teleportCrystal.position) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) return end return true end Isto não pedira mais as quests, obrigado. Lembre-se, de apagar o código antes de colocar o código que eu coloquei. Se ajudei, por favor. REP+
Postado Julho 6, 2015 9 anos eu precisando por missao , tem como vc me passar todos os scripts por pm ? valeu
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.