
Tudo que Crypter postou
-
[Script] Movements
Ta dando conflito de Outfit e so ta voltando pra uma Outflit mesmo se antes você tivesse outra , o primeiro player que colocar e tirar fica com Outflit fixa pra todos... @Dwarfer Dwarfer Nessa parte ele ta pegando a Outflit do 1° player do servidor que equipou o item , os outros players ao tirar o item ficam com a newtype do 1° player que uso... function onDeEquip(cid, item, slot) outfit.lookType = out[1] out = {} doSetCreatureOutfit(cid, outfit, -1) return true end
-
[Script] Movements
Estou com uma Script de movements que ao equipar o item troca a Outflit e ao desequipar ele a outflit sai , porem se eu equipar o item e relogar e depois desequipar a outflit não sai function onEquip(cid, item, slot) local outfit1 = {lookType = 160} -- looktype male local outfit2 = {lookType = 159} -- looktype local playerSex = getPlayerSex(cid) if playerSex == 1 then doSetCreatureOutfit(cid, outfit1, -1) return TRUE end if playerSex == 0 then doSetCreatureOutfit(cid, outfit2, -1) return TRUE end end function onDeEquip(cid, item, slot) doRemoveCondition(cid, CONDITION_OUTFIT) return TRUE end
-
(Resolvido)Incrementar função ao script e 2 pedido
Editado
-
(Resolvido)Incrementar função ao script e 2 pedido
local items = { --[numeração] = {id = ID DO ITEM, count = QUANTIDADE DO ITEM, c = CHANCE} [1]={id=8884, count=1, c=10}, -- item 1 [2]={id=8890, count=1, c=10}, -- item 2 [3]={id=8888, count=1, c=10}, -- item 3 [4]={id=8905, count=1, c=10}, -- item 4 [5]={id=10511, count=1, c=10}, -- item 5 [6]={id=10515, count=1, c=10}, -- item 6 [7]={id=10514, count=1, c=10}, -- item 7 [8]={id=10139, count=1, c=10}, -- item 8 [9]={id=10719, count=1, c=10}, -- item 9 [10]={id=12608, count=75, c=10}, -- item 9 } function getRandomItem(t) local i = math.random(1, #t) i = t[i] if math.random(1, 100) <= i.c then return i end return getRandomItem(t) end function onUse(cid, item, fromPosition, itemEx, toPosition) local i = getRandomItem(items) local effect = 1 local Pos = {x = 1, y = 1, z = 7} local PlayerPos = {x = getPlayerPosition(cid).x + 0, y = getPlayerPosition(cid).y + 0, z = getPlayerPosition(cid).z} local stor = 98543 if getPlayerStorageValue(cid,stor) == -1 then doPlayerAddItem(cid, i.id, i.count) doTeleportThing(cid, Pos) doSendMagicEffect(PlayerPos,effect) doSendAnimatedText(getPlayerPosition(cid), "Magic Box!", TEXTCOLOR_YELLOW) doPlayerSendTextMessage(cid, 27, "You opened a chest event and won "..i.count.."x "..getItemNameById(i.id)..(i.count > 1 and "s" or "")..".") doRemoveItem(item.uid, 1) setPlayerStorageValue(cid,stor,1) else doPlayerSendTextMessage(cid,25,"The chest event is empty.") end return true end Movements function onStepIn(cid, item, pos) local stor = x if getPlayerStorageValue(cid,stor) > 1 then doPlayerSendCancel(cid,"Removido") setPlayerStorageValue(cid,stor,0) end end
-
(Resolvido)Erro Login.lua
local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) boost.addSkills(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "Mail") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "Idle") if(config.useFragHandler) then registerCreatureEvent(cid, "SkullCheck") end registerCreatureEvent(cid, "Biohazard") registerCreatureEvent(cid, "ZombieAttack") registerCreatureEvent(cid, "WeaponMana") registerCreatureEvent(cid, "showVoc") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "Outfit") registerCreatureEvent(cid, "MonsteDeath") registerCreatureEvent(cid, "ExameJouninDead") registerCreatureEvent(cid, "ExameJouninBoss") setPlayerStorageValue(cid, 8855, -1) registerCreatureEvent(cid, "Senha") registerCreatureEvent(cid, "eventotimes") registerCreatureEvent(cid, "ExpBonus") registerCreatureEvent(cid, "report") registerCreatureEvent(cid, "attackguild") registerCreatureEvent(cid, "DeathHP") registerCreatureEvent(cid, "FirstItems") registerCreatureEvent(cid, "Reward") registerCreatureEvent(cid, "KamuiMuzan") registerCreatureEvent(cid, "UP") registerCreatureEvent(cid, "LookVoc") registerCreatureEvent(cid, "Niwdeath") registerCreatureEvent(cid, "Izanagi") registerCreatureEvent(cid, "Izanami") registerCreatureEvent(cid, "pvptarget") registerCreatureEvent(cid, "pvpstats") if getPlayerStorageValue(cid, 49607) == -1 then setPlayerStorageValue(cid, 49607, 0) end if getPlayerStorageValue(cid, 49608) ~= 0 then setPlayerStorageValue(cid, 49608, 0) end ---------- UCHIHAGAESHI ---------------- registerCreatureEvent(cid, "uchihagaeshi") if getPlayerStorageValue(cid, 3482101) ~= 0 then setPlayerStorageValue(cid, 3482101, 0) end -----------GRAN CASTLE ----------- registerCreatureEvent(cid, "Gran Tower") registerCreatureEvent(cid, "Gran Aura") registerCreatureEvent(cid, "Gran Aura Stats") registerCreatureEvent(cid, "Gran Aura Logout") registerCreatureEvent(cid, "Gran Tower Target") --- CRITICAL SYSTEM ---- registerCreatureEvent(cid, "critical") if getPlayerStorageValue(cid, 48903) == -1 then setPlayerStorageValue(cid, 48903, 0) end ---------- PlayerPort--------------- if getPlayerStorageValue(cid, 49708) ~= 0 then setPlayerStorageValue(cid, 49708, 0) end if getPlayerGuildId(cid) > 0 then local guild = getPlayerGuildId(cid) doGuildAddEnemy(guild, enemy, 0, WAR_GUILD) else end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_GREEN, "[Bem-Vindo ao Nto Fire]n/Para Ativar o PvP !Pvp on;!Pvp off/nVersao do Elfbot 8.80/nObrigado Por Jogar Nosso Servidor,Tenha um Bom Dia." '..getPlayerName(cid)..'! now is: '.. os.date("%H:%M:%S", os.time())..'.') return true end
-
(Resolvido)[Pedido] NPC DA ITEM APENAS 1 VEZ
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local items = {1111, 2222, 3333, 4444, 5555} local stor = 87632 if(msgcontains(msg, 'item') or msgcontains(msg, 'ITEM')) then if getPlayerStorageValue(cid, stor) ~= -1 then selfSay('Você já recebeu seus itens.', cid) talkState[talkUser] = 0 return true end selfSay('Você deseja receber os itens?', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then setPlayerStorageValue(cid, stor, 1) doPlayerAddItem(cid, math.random(#items), 1) selfSay('Faça bom proveito.', cid) talkState[talkUser] = 0 elseif(msgcontains(msg, 'no') and talkState[talkUser] == 1) then selfSay('Ok then.', cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
(Resolvido)Erro estranho em TFS 3.6
Na pasta mods deve conter somente arquivos de mods que são Xml e esse arquivo é o .ini assim o tfs vai tentar ler o arquivo e retornar erro , mande oque tem dentro desse arquivo ou remova ele da pasta mods.
- 17# Evento: Sorteio de 500 Tibia Coins!
- Erro Poketibia
-
[RESOLVIDO] [Ajuda] jogador passa no pisso mas nao Ganho itens
local itemid = 12670 --(Nome Do Itens Que vai Ganha) local itemcount = 1 --(quantos itens jogado vai ganha) local msg_ongain = "Você Ganhou 1 Picareta." local msg_fail = "Desculpe, mas voce ja pegou a picareta" function onStepIn(cid, item, position, fromPosition) if getPlayerStorageValue(cid, 97864) < 1 then -- Se a storage 97864 for menor que 1 ganha o item doPlayerAddItem(cid, itemid, itemcount) -- Aqui enviamos o item ao player doPlayerSendTextMessage(cid,25,msg_ongain) --Mensagem setPlayerStorageValue(cid, 97864, 1) -- aqui damos a storage 1 para ele nao ganha mais o item else doPlayerSendTextMessage(cid,25,msg_fail) --Mensagem doTeleportThing(cid, fromPosition) doSendMagicEffect(getCreaturePos(cid), 1) end end
-
(Resolvido)Script função de remove
local condition_bonusSpeed = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_TICKS, -1) setConditionFormula(condition, 0.25, 0, 0.50, 0) function onEquip(cid, item, slot) local outfit1 = {lookType = 104} local outfit2 = {lookType = 123} local vocationid = {1} -- Add novas {1,2}-- if (isInArray(vocationid, getPlayerVocation(cid))) then doSetCreatureOutfit(cid, outfit1, -1) doAddCondition(cid, condition_bonusSpeed) return true end end function onDeEquip(cid, item, slot) doRemoveCondition(cid, CONDITION_OUTFIT) doRemoveCondition(cid, CONDITION_HASTE) return true end
-
(Resolvido)[PEDIDO] Não passar encima de item
Abra esse link e baixe o item editor e com ele abra o items.otb que fica na pasta do seu server com ele você pode editar os items como mostrar na imagem no topico
-
Poketibia spell que pokemon vai para o pokemon targetado
Poste aqui qual sua base ou um exemplo de Spell de poketibia com Target para ser alterada como você deseja
-
(Resolvido)Use item com multiplas storage
local storage1,storage2,storage3,storage4 = x,x,x,x if getPlayerStorageValue(cid, storage1) > 0 or getPlayerStorageValue(cid, storage2) > 0 or getPlayerStorageValue(cid, storage3) > 0 or getPlayerStorageValue(cid, storage4) > 0 then doPlayerSendCancel(cid, "You already have outflit..") return false end
-
(Resolvido)[PEDIDO] Não passar encima de item
Você pode editar o item no item editor e deixa como Pode ser apanhado e movido , e não pode se atravessar
-
(Resolvido)VIP POR ITEM
local config = { days = 30, message = 'Você recebeu 30 dias de VIP.' } function onUse(cid, item, frompos, item2, topos) vip.setVip(cid,config.days) doPlayerSendTextMessage(cid, 22, config.message) doRemoveItem(item.uid, 1) return true end
-
Spells nao sai uma atras da outra
Poste o arquivo da Spell que posso te falar , o arquivo é encontrado na pasta Spells/Scripts com formato .lua
-
(Resolvido)Converter Talk em Action
local colors = {94, 81, 79, 88, 18, 11, 92, 128} local storage = 65539 local time = 1 --in miliseconds function onEquip(cid, item, slot) if getPlayerStorageValue(cid, storage) < 1 then local event = addEvent(changeOutfit, time, cid) setPlayerStorageValue(cid, storage, 1) return true end return true end function onDeEquip(cid, item, slot) if getPlayerStorageValue(cid, storage) > 0 then setPlayerStorageValue(cid, storage, 0) return true end return true end function changeOutfit(cid) local randomHead = colors[math.random(#colors)] local randomLegs = colors[math.random(#colors)] local randomBody = colors[math.random(#colors)] local randomFeet = colors[math.random(#colors)] local tmp = {} if getPlayerStorageValue(cid, storage) > 0 then local outfit = getCreatureOutfit(cid) tmp = outfit tmp.lookType = outfit.lookType tmp.lookHead = randomHead tmp.lookLegs = randomLegs tmp.lookBody = randomBody tmp.lookFeet = randomFeet tmp.lookAddons = outfit.lookAddons doCreatureChangeOutfit(cid, tmp) local event = addEvent(repeatChangeOutfit, time, cid) return TRUE else stopEvent(event) return TRUE end end function repeatChangeOutfit(cid) local randomHead = colors[math.random(#colors)] local randomLegs = colors[math.random(#colors)] local randomBody = colors[math.random(#colors)] local randomFeet = colors[math.random(#colors)] local tmp = {} if getPlayerStorageValue(cid, storage) > 0 then local outfit = getCreatureOutfit(cid) tmp = outfit tmp.lookType = outfit.lookType tmp.lookHead = randomHead tmp.lookLegs = randomLegs tmp.lookBody = randomBody tmp.lookFeet = randomFeet tmp.lookAddons = outfit.lookAddons doCreatureChangeOutfit(cid, tmp) local event = addEvent(changeOutfit, time, cid) return TRUE else stopEvent(event) return TRUE end end
-
Spells nao sai uma atras da outra
Mande a script de uma Spell sua que eu arrumo
-
Suporte com Functions
Fiquei procurando hoje e não consegui achar como o titulo desse topico não faz referençia correta ao tipo da Spell seria muito dificil eu achar ,tentei procurar por : " Spell Muda Piso " e nada... Então criei o tópico pra ve se alguem me ajudava fico agradeçido pela sua ajudo irei testar o codigo depois. Tive alguns problemas no Script as vezes o item é removido e fica preto ( Vazio sem nada pois o item era piso) , so tive problemas ao colocar pisos mas items normais da certo e se na Area da spell tiver 2 tipos de piso ele so pega um tipo de piso e recoloca no lugar , isso roda 100% em objetos que não ocupam 100% do SQM. Quero usar pisos e não objetos, por exemplo trocar o chão em volta por agua ou lava e logo apos alguns segundos os pisos antigos são reposicionados...
-
Suporte com Functions
Ola galera do TK, Gostaria de saber qual funções eu preciso usar fazer uma Spell que troca o piso por "X' Tempo, e apos esse tempo o piso antigo volta. Exemplo: Eu uso a Spell e ela troca o piso em volta do player(cid) para lava(itemid) e após "X" tempo ,o piso antigo volta ao lugar e a lava sai. @xWhiteWolf, @Vodkart , @KotZletY
-
Action shinystone ( NAO É POKEMON )
data/actions/scripts Abra a script Pick.lua e troque por isso function onUse(cid, item, fromPosition, itemEx, toPosition) local itemGround = getThingFromPos({x = toPosition.x, y = toPosition.y, z = toPosition.z + 1, stackpos = STACKPOS_GROUND}) if(isInArray(SPOTS, itemGround.itemid) and isInArray({354, 355}, itemEx.itemid)) then doTransformItem(itemEx.uid, 392) doDecayItem(itemEx.uid) doSendMagicEffect(toPosition, CONST_ME_POFF) return true end if(itemEx.itemid == 7200) then doTransformItem(itemEx.uid, 7236) doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT) return true end local shinystone = 11221 --- id da shiny stone if(itemEx.itemid == shinystone) then local value = math.random(1, 100) local ids = { gold = XXXX, platinum = XXXX, small = XXXX, crystal = XXXX, -- raro } if value > 0 and value <= 30 then premio = ids.gold elseif value > 30 and value < 61 then premio = ids.platinum elseif value > 60 and value < 91 then premio = ids.small elseif value > 90 and value < 101 then premio = ids.crystal end doRemoveItem(itemEx.uid, 1) doPlayerAddItem(cid, premio, 1, TRUE) doSendMagicEffect(toPosition, CONST_ME_POFF) return true end return false end
-
Item que libera talkaction
test.lua function onSay(cid, words, param, channel) local itemid = 2160 --- id do item local itemcount = 100 --- total de item necessario if getPlayerItemCount(cid,itemid) >= itemcount then doPlayerSendCancel(cid, "Voce tem o item") else doPlayerSendCancel(cid, "Voce nao tem o item") end end talkactions.xml <talkaction words="!test" event="script" value="test.lua"/>
-
Procuro Scipter
Procuro contato de algum scripter FL.
- [PagSeguro] Novo Método de Retorno Automático