-
-
-
-
Mateus Robeerto começou a seguir GiovaniRodrigo
-
(Resolvido)da use em x item é receber a outfit
@ADM Mayk on BaiakME Parece estar tudo certo no seu XML
-
-
(Resolvido)da use em x item é receber a outfit
@ADM Mayk on BaiakME estranho, pois eu testei o script com as outfits oficiais do Tibia e tudo funcionou perfeitamente. Pode ser algum problema na configuração das novas outfits.
-
-
URGENTE BLESS
@Kevin Araujo Isso é configurações do bless de perdas, etc... Essa configuração que eu tenho é padrão do meu TFS 0.4. Tente testá-las e diga como foi.
-
Quando clico na alavanca os monstros não nascem e aparece a seguinte mensagem: (luadocreatemonster): Cannot create monster.
@Fabio Leandro tente escrever o nome dos monstros em letra minúscula.
-
-
-
Contruçao de Script
@Brunds Realmente, não tinha pensado nisso, tinha até esquecido do método onEquipe e onDeEquip.
-
Contruçao de Script
@Brunds Quebrei um pouco a cabeça, mas está ai. Pode parecer um pouco confuso, pois a muito tempo não faço scripts. Crie um arquivo na pasta data/creaturescripts/scripts com o nome fullSet.lua e coloque isso: local config = { tableSlot = { {slot = CONST_SLOT_HEAD, id = 2461}, -- Helmet {slot = CONST_SLOT_ARMOR, id = 2467}, -- Armor {slot = CONST_SLOT_LEGS, id = 2649}, -- Legs {slot = CONST_SLOT_LEFT, id = 2382}, -- Arma ou Shield {slot = CONST_SLOT_RIGHT, id = 2512}, -- Shield ou Arma {slot = CONST_SLOT_FEET, id = 2643}, -- Boots }, message = "Full Set", -- Mensagem que irá aparecer interval = 3 -- Tempo que a mensagem aparecerá em segundos } function sendMessageFullSet(cid) if(not isPlayer(cid)) then return true end local i = config.tableSlot if(getPlayerSlotItem(cid, i[1].slot).itemid == i[1].id and getPlayerSlotItem(cid, i[2].slot).itemid == i[2].id and getPlayerSlotItem(cid, i[3].slot).itemid == i[3].id and getPlayerSlotItem(cid, i[6].slot).itemid == i[6].id) then if(getPlayerSlotItem(cid, i[4].slot).itemid == i[4].id or getPlayerSlotItem(cid, i[4].slot).itemid == i[5].id) then if(getPlayerSlotItem(cid, i[5].slot).itemid == i[5].id or getPlayerSlotItem(cid, i[5].slot).itemid == i[4].id) then doSendAnimatedText(getCreaturePosition(cid), config.message, math.random(1, 255)) addEvent(sendMessageFullSet, config.interval * 1000, cid) end end end end function onLogin(cid) sendMessageFullSet(cid) return true end Adicione no arquivo creaturescripts.xml a seguinte tag: <event type="login" name="FullSet" event="script" value="fullSet.lua"/> TESTADO TFS 0.4 - SCRIPT FUNCIONAL
-
Contruçao de Script
@Brunds addEvent
-
Contruçao de Script
@Brunds Eu faria em creturescripts, e usaria AnimatedText assim como o usuário deseja.
-
Contruçao de Script
@poko360 Globalevents não sei se seria essencial para esse script, pois imagina uma verificação a cada 10 segundos em um OT com 200 pessoas online. Com certeza causaria freeze no server.
-
URGENTE BLESS
Verifique se seu bless se encontra dessa maneira no config.lua blessings = true blessingReductionBase = 30 blessingReductionDecrement = 5 eachBlessReduction = 8
-
(Resolvido)NPC Informativo que marca no mapa.
@Mazarati Sempre que precisar, estaremos aqui para ajudar.
-
(Resolvido)da use em x item é receber a outfit
@ADM Mayk on BaiakME Bug corrigido, re-copie o código e teste novamente.
-
Contruçao de Script
@Jinx Qual ID será equipado em tal slot? Ex: ID: a HEAD, ID: b ARMOR, ID: c LEGS, ID: d FEET(BOOTS) Me diga também se tem escudo e arma e qual o ID deles.
-
(Resolvido)NPC Informativo que marca no mapa.
@Brunds Não sei se existe diferença entre o dois, testa e vê se retorna algum erro. Se retornar, poste aqui.
-
(Resolvido)NPC Informativo que marca no mapa.
Tente isso: .lua local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 local markTable = { -- {markPos = Coordenadas da marcação, markType = Tipo de marcação, markDescription = Descrição da marcação} {markPos = {x = 150, y = 150, z = 7}, markType = MAPMARK_TICK, markDescription = "Tick"}, {markPos = {x = 155, y = 150, z = 7}, markType = MAPMARK_QUESTION, markDescription = "Question"}, {markPos = {x = 160, y = 150, z = 7}, markType = MAPMARK_EXCLAMATION, markDescription = "Exclamation"}, {markPos = {x = 165, y = 150, z = 7}, markType = MAPMARK_STAR, markDescription = "Star"}, {markPos = {x = 170, y = 150, z = 7}, markType = MAPMARK_CROSS, markDescription = "Cross"}, {markPos = {x = 175, y = 150, z = 7}, markType = MAPMARK_TEMPLE, markDescription = "Temple"}, {markPos = {x = 180, y = 150, z = 7}, markType = MAPMARK_KISS, markDescription = "Kiss"}, {markPos = {x = 185, y = 150, z = 7}, markType = MAPMARK_SHOVEL, markDescription = "Shovel"}, {markPos = {x = 190, y = 150, z = 7}, markType = MAPMARK_SWORD, markDescription = "Sword"}, {markPos = {x = 195, y = 150, z = 7}, markType = MAPMARK_FLAG, markDescription = "Flag"}, {markPos = {x = 200, y = 150, z = 7}, markType = MAPMARK_LOCK, markDescription = "Lock"}, {markPos = {x = 205, y = 150, z = 7}, markType = MAPMARK_BAG, markDescription = "Bag"}, {markPos = {x = 210, y = 150, z = 7}, markType = MAPMARK_SKULL, markDescription = "Skull"}, {markPos = {x = 215, y = 150, z = 7}, markType = MAPMARK_DOLLAR, markDescription = "Dollar"}, {markPos = {x = 220, y = 150, z = 7}, markType = MAPMARK_REDNORTH, markDescription = "Red North"}, {markPos = {x = 225, y = 150, z = 7}, markType = MAPMARK_REDSOUTH, markDescription = "Red South"}, {markPos = {x = 230, y = 150, z = 7}, markType = MAPMARK_REDEAST, markDescription = "Red East"}, {markPos = {x = 235, y = 150, z = 7}, markType = MAPMARK_REDWEST, markDescription = "Red West"}, {markPos = {x = 240, y = 150, z = 7}, markType = MAPMARK_GREENNORTH, markDescription = "Green North"}, {markPos = {x = 245, y = 150, z = 7}, markType = MAPMARK_GREENSOUTH, markDescription = "Green South"} } function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local func_addMark = doPlayerAddMapMark if(not func_addMark) then func_addMark = doAddMapMark end if(msgcontains(msg, "locais")) then for mark, x in pairs(markTable) do func_addMark(cid, x.markPos, x.markType, x.markDescription ~= nil and x.markDescription or "") end selfSay("Oh, the locals, right?! Well, I marked some on your minimap", cid) end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) TESTADO TFS 0.4 FUNCIONAL