Tudo que Jamison Collins postou
- Novo visual do TK e SOTW!
-
RPG no LoL (Tibianos)
Cool Kyd: exura MaXwEllDeN: EXORI TERA Cool Kyd: exura MaXwEllDeN: EXORI Kyân: EXEVO VIS HUR Cool Kyd: exura MaXwEllDeN: EXORI VIS Cool Kyd: exura vita MaXwEllDeN: n MaXwEllDeN: deitou Cool Kyd: exura gran vita MaXwEllDeN: deitou porra Cool Kyd: nao pera MaXwEllDeN: tu é mage Kyân: AEUEAHUEAHUEA MaXwEllDeN: caralho Cool Kyd: exura grna vita
-
[Ajuda] Erro ao Da Look
Isso foi referente ao . Percebi isso porque vocês fizeram posts ao mesmo tempo.
-
(Resolvido)Variavel local t = string.explode(string.lower(param), ",")
Exemplo: "/addon citizen" Com isso, local t = string.explode(string.lower(param), ",") Nós podemos fazer isso: if t[2] == "citizen" then do... end É uma variável usada para verificar posições de palavras separadas por virgula ou não.
-
[Ajuda] Erro ao Da Look
Compreendo sua ansiedade, mas não é assim que devemos agir com os outros e etc... A pessoa pode até se sentir ofendido. @tópico Bem, você está usando o sistema de Reputação (REP)?
-
Usar X comando só se tiver X item.
Tente isso: function onSay(cid, words, param, channel) local p = string.explode(param, ',') local countz = 1 local items = 2160 if(param == "") then doPlayerSendCancel(cid, "Command requires param.") return true end if(words == "/name") then if doPlayerRemoveItem(cid, items, countz) == TRUE then if(db.getResult("SELECT `id` FROM `players` WHERE `name` = " .. db.escapeString(p[1]) .. ";"):getID() == -1) then return doPlayerSendCancel(cid, "Sorry, but player [" .. p[1] .. "] does not exist.") elseif(isPlayerBanished(p[1], PLAYERBAN_LOCK)) then return doPlayerSendCancel(cid, "Sorry, but " .. p[1] .. " is name locked.") elseif(db.getResult("SELECT `id` FROM `players` WHERE `name` = " .. db.escapeString(p[2]) .. ";"):getID() == 1) then return doPlayerSendCancel(cid, "Sorry, but the name [" .. p[2] .. "] already exists.") end return db.executeQuery("UPDATE `players` SET `name` = '" .. p[2] .. "' WHERE name = '" .. p[1] .. "';") and doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have changed " .. p[1] .. "'s name to " .. p[2] .. ".") else return doPlayerSendCancel(cid, "Sorry, but you don't have the necessary item.") end end end Não se esqueça de modificar o id do item, no "local items" que eu adicionei no script. Agradeça o Danihcv por ter me chamado, pois eu não havia visto o tópico.
-
[Pedido] Criar Um Npc Teleportado x-x
Não, é só deixar como está.
-
[Pedido] Criar Um Npc Teleportado x-x
É só você criar um arquivo.xml na pasta NPC, com esse conteúdo e configurar da forma que eu expliquei.
-
[Pedido] Criar Um Npc Teleportado x-x
Usa o meu método.
-
(Resolvido)[Ajuda] Ajuda Nesse Script Aqui Por favor :c
Tente isso: -- [[ Bike Sistema 100% -- By SmiX ^}^ ]] -- --[[ • Ela deixa você mais rápido a partir da volocidade determinada no script + sua estamina.]]-- --[[ • Adiciona e remove outfit do player.]]-- --[[ #Lembrando todos os campos com variaveis escritas são preechidas com {"sim" ou "nao"}]]-- local config = { textoAvisandoSuaVelocidade = "sim", -- Se você quiser que o script mande uma mensagem para o player dizendo a velocidade dele premiumAccount = "no", -- Se precisa de premium velocidadeDaSuaBike = 80, -- A volocidade da bike, sempre bote números de 1 á 10. Caso bote mais que isso a volicidade vai ficar muito alta. outfitMale = 1581, -- Outfit male outfitFemale = 1581, -- Outfit female efeito = 18, -- Efeito que ira aparescer quando der use. storageValue = 5602, -- Storage Para a bike usaVipSystem = "no", -- Caso alguem use algum tipo de vip system bote sim storageUsadaNoVipSystem = 33339, -- Aqui boata a storage do vip system caso use } function onUse(cid, item, itemEx, fromPosition, toPosition) if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end if getPlayerStorageValue(cid, config.storageValue) <= 0 then setPlayerStorageValue(cid, 3624, ""..getPlayerStamina(cid).."") if config.premiumAccount == "sim" and isPremium(cid) or config.usaVipSystem == "sim" and getPlayerStorageValue(cid, config.storageUsadaNoVipSystem) >= 1 then a = {lookType = config.outfitMale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet} b = {lookType = config.outfitFemale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet} doSendMagicEffect(getThingPos(cid), config.efeito) speedRate = config.velocidadeDaSuaBike * 1000 doChangeSpeed(cid, speedRate + getPlayerStorageValue(cid, 3624)) setPlayerStorageValue(cid, config.storageValue, 1) if getPlayerSex(cid) == 0 then doSetCreatureOutfit(cid, b, -1) else doSetCreatureOutfit(cid, a, -1) end if config.textoAvisandoSuaVelocidade == "sim" then doPlayerSendTextMessage(cid, 27, "Sua velocidade agora é: "..getPlayerStorageValue(cid, 3624).."") end else return TRUE end else setPlayerStorageValue(cid, config.storageValue, 0) doSendMagicEffect(getThingPos(cid), config.efeito) doRemoveCondition(cid, CONDITION_OUTFIT) retireSpeedRate = config.velocidadeDaSuaBike * 100 playerSpeedNow = -retireSpeedRate - getPlayerStorageValue(cid, 3624) doChangeSpeed(cid, playerSpeedNow) end return TRUE end
-
Znote AAC 1.5 (TFS 0.2/0.3/0.4 & 1.0)
Eu atualizei o conteúdo, baixe de novo e teste.
-
Item que da promotion 3 por 30 dias
<movement type="StepIn" actionid="6539" event="script" value="azerus.lua" /> Não se esqueça de por "6539" no script (arquivo .lua que você criou), onde está ActionID
-
Item que da promotion 3 por 30 dias
Você botou no movements né? Mostra a tag que você fez para .xml
-
[Pedido] Criar Um Npc Teleportado x-x
<npc name="Captain Albert" script="data/npc/scripts/default.lua" floorchange="0" access="5"> <health now="150" max="150"/> <look type="9" head="96" body="58" legs="3" feet="114" corpse="2212"/> <parameters> <parameter key="module_travel" value="1"/> <parameter key="message_greet" value="Hello |PLAYERNAME|. " /> <parameter key="travel_destinations" value="tiquanda,161,191,6,50"/> </parameters> </npc> Bem, o que você precisa saber é isso: "message_greet" = É aonde você vai colocar a mensagem de saudação do NPC para o Player. "travel_destinations" = Ali você vai por o nome que o player vai ter que falar (nome do lugar) para ele ser teleportado, na posição x = 161; y = 191; z = 6; custando 50 golds. Entendeu? só alterar
-
Item que da promotion 3 por 30 dias
Aqui está: function onStepIn(cid, item, position, fromPosition) local player = Player(cid) local config = { actionID = 1000, -- action id que você botará no tile storage = 50, -- mesma storage dos scripts anteriores storage_amount = 0, mensagem = "You must have an epic vocation.", } if item.actionid == config.actionID then if isPlayer(cid) then if player:getStorageValue(config.storage) - os.time() <= 0 then player:teleportTo(fromPosition, true) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, config.mensagem) end end end return true end Não se esqueça de por o actionID configurado tanto no script, quanto no map editor.
-
Item que da promotion 3 por 30 dias
Não. Apenas isso, assim que o período acabar, e o player der login, ele perderá a vocação.
-
(Resolvido)ERROS BÁSICOS AO INICIAR OT
Não cara, não quero o Jack Fate.lua, quero o Jack Fate.xml
-
(Resolvido)ERROS BÁSICOS AO INICIAR OT
Passa o Jack Fate.xml
-
DOUBLE IP NO LOL
MAS LOL É JOGO DE GAY . . . . . . . . . . . . . . . . . não, pera...
-
DOUBLE IP NO LOL
DOUBLE IP NO LOL UHULLLLLLLLLLLLLL TUNTS TUNTS TUNTS ... PARTIU PERDER OS DEDOS
-
(Resolvido)[Urgente] Erro ao logar
Agora vá na sua database e confira qual é o WorldID que o char que você criou está.
-
(Resolvido)[Urgente] Erro ao logar
Qual é o WorldID que está no seu config.lua?
-
Item que da promotion 3 por 30 dias
Agora segunda etapa do script: Vá até creaturescript > script > login.lua; e depois de local player = Player(cid) você adiciona isso: local storage = 50 -- aqui você coloca a mesma storage do outro script if player:getStorageValue(storage) - os.time() <= 0 then player:setVocation(Vocation(player:getVocation():getId() - 4)) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Your epic promotion time has expired.") end
-
3/2 = ? (Divisão sem decimal).
ASUIEHAESUIESIUEHSAIUAESUIESAHIUESAHUIEASHIUESAUIEASHIUESAHUEISAHESAUIHESAUIHESAAES
-
Item que da promotion 3 por 30 dias
Tenta agora: local daysvalue_ = 30 -- Dias local storage = 50 -- Storage usada function onUse(cid, item, frompos, item2, topos) ------- Não mexer -------- local daysvalue = daysvalue_ * 24 * 60 * 60 local player = Player(cid) local tile = Tile(player:getPosition()) local voc = {5, 6, 7, 8} if tile:hasFlag(TILESTATE_PROTECTIONZONE) == false then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE,"You can't transform your vocation in this area.") return false elseif player:getStorageValue(storage) - os.time() >= 0 then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You must wait 30 days to use renew your vocation. Next available will be at: " .. os.date("%c", player:getStorageValue(storage)) .. " (month;day;year and time).") return false end if isInArray(voc, player:getVocation():getId()) == true then Item(item.uid):remove() time = os.time() + daysvalue player:setStorageValue(storage, time) player:setVocation(Vocation(player:getVocation():getId() + 4)) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have received "..daysvalue_.." epic promotion days!") else player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You are not a promoted vocation!") end return true end