Postado Novembro 2, 2016 8 anos FLY System perfeito. Galera esse script funciona tudo certinho. Mas preciso que o custo seja de 1kk. Não consegui editar, espero que me ajudem. *Ele é desse post *. VAMOS Lá. data/talkactions/script Spoiler function onSay(cid, words, param) local config = { pz = true, -- players precisam estar em protection zone para usar? (true or false) battle = false, -- players deve estar sem battle? (true or false) custo = true, -- precisa de dinheiro para teleportar? (true or false) need_level = false, -- nível necessario para usar o comando (true or false) vip = false -- se precisa ser vip account ou premium account (true or false) } --[[ Config lugares]]-- level é o nivel necessario para usar o comando, e price é o dinheiro necessario para usar o comando local lugar = { ["templo"] = { -- nome do lugar pos = {x= 113, y= 77, z= 7},level = 5,price = 1000}, ["thais"] = { -- nome do lugar pos = {x= 32369, y= 32241, z= 7},level = 10, price = 1000}, ["venore"] = { -- nome do lugar pos = {x= 32957, y= 32076, z= 7},level = 15,price = 1000}, ["area vip"] ={ -- nome do lugar pos = {x=305, y=934, z=7},level = 20,price = 1000} } --[[ Lista de Viagem (Não mexa) ]]-- if (param == "list") then local str = "" str = str .. "Citys list:\n\n" for name, pos in pairs(lugar) do str = str..name.."\n" end str = str .. "" doShowTextDialog(cid, 6579, str) return TRUE end local a = lugar[param] if not(a) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, this city does not exist.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return TRUE elseif config.pz == true and getTilePzInfo(getCreaturePosition(cid)) == FALSE then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You must be in the protection zone.") return TRUE elseif config.vip == true and isPremium(cid) == false then -- Se você tiver um sistema de VIP, pegar o comando isVip, ou algo semelhante e trocar por isPremium doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Only VIP players can telepot.") return TRUE elseif config.battle == true and getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need no battle for teleport.") return TRUE elseif config.need_level == true and getPlayerLevel(cid) < a.level then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have level, you need a "..a.level.." level for teleport.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return TRUE elseif config.custo == true and doPlayerRemoveMoney(cid, a.price) == FALSE then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have suficiently money, you need of "..a.price.." gp's for teleport.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return TRUE end doTeleportThing(cid, a.pos) doSendMagicEffect(a.pos, CONST_ME_TELEPORT) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You is teleported for " .. param .. ".") return TRUE end talkactions.xml Spoiler <talkaction words="!fly" event="script" value="fly.lua"/> O que eu quero é que somente editem o custo para 1kk. VLW
Postado Novembro 2, 2016 8 anos Troque: price = 1000 por price = 1000000 @This life is filled with hurt When happiness doesn't work Trust me and take my hand When the lights go out you will understand
Postado Novembro 3, 2016 8 anos Autor Tinha dado erro na distro quando fiz assim só que fiz agora e deu tudo certo. Não sei o que pode ter sido. Ontem fiz varias alterações em alguns scripts pode ter dado conflito com algum outro mas agora esta tudo PERFEITO. Vlw Rep +
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.