Ir para conteúdo

ZoR

Membro
  • Registro em

  • Última visita

Tudo que ZoR postou

  1. @Sekk Problem [0:11:46.251] [Error - Spell Interface] [0:11:46.259] data/spells/scripts/vip/minato/izanagi.lua:onCastSpell [0:11:46.262] Description: [0:11:46.264] (luaSetConditionParam) Condition not found [0:11:46.273] [Error - Spell Interface] [0:11:46.276] data/spells/scripts/vip/minato/izanagi.lua:onCastSpell [0:11:46.279] Description: [0:11:46.286] data/spells/scripts/vip/minato/izanagi.lua:7: attempt to perform arithmetic on a boolean value [0:11:46.291] stack traceback: [0:11:46.294] data/spells/scripts/vip/minato/izanagi.lua:7: in function 'REVIVE' [0:11:46.303] data/spells/scripts/vip/minato/izanagi.lua:29: in function <data/spells/scripts/vip/minato/izanagi.lua:15>
  2. sim,mas nao tem como colocar tipo essa vocaçao quando usar ira aparecer x effect essa outra usa e aparece x effect? se nao tiver deixa
  3. entao queria colocar para teleportar e ser curado o HP no local que for teleportado
  4. quando o player usar a spell ele vai ser teleportado certo ? até ai vc entendeu? 2 ele vai voltar no mesmo lugar que usou. queria que cada vocation apareça um efeito diferente
  5. para teleportar o char e dps usar event back para voltar naonde o char usou a spell.
  6. local porcent = 10 -- porcentagem de vida dos players para healar local exaust = 1 -- exhausted em segundos local effect = {36} -- efeito que ira aparecer nos player, caso for mais de 1, adicionar virgulas dentro da tabela local function REVIVE(cid) if not isCreature(cid) then return true end if getTilePzInfo(getThingPos(cid)) == false and getCreatureHealth(cid) <= math.floor(getCreatureHealth(cid)*porcent/setConditionParam(condition, CONDITION_PARAM_TICKS, 200000)) then doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) setPlayerStorageValue(cid, 8855, -1) else addEvent(REVIVE, 100, cid) end end function onCastSpell(cid, var) local pos = getCreaturePos(cid) if exhaustion.check(cid, 8844) == true then doPlayerSendCancel(cid, "You are exhausted.") doSendMagicEffect(pos, 2) return false end if getPlayerStorageValue(cid, 8855) > 0 then doPlayerSendCancel(cid, "You already have protection.") return false end for i = 1, #effect do doSendMagicEffect(pos, effect[i]) end REVIVE(cid) exhaustion.set(cid, 8844, exaust) return true end esse e o script ! queria colocar uma "Pos" nele e cada vocation apararecer efeito diferente exemplo: x vocation usa e aparece x effect @Sekk @Bodak Reborn
  7. [20:25:34.961] [Error - GlobalEvent Interface] [20:25:34.962] data/globalevents/scripts/shop.lua:onThink [20:25:34.963] Description: [20:25:34.964] data/globalevents/scripts/shop.lua:25: attempt to call field 'executeQuery' (a nil value) [20:25:34.965] stack traceback: [20:25:34.965] data/globalevents/scripts/shop.lua:25: in function <data/globalevents/scripts/shop.lua:1> [20:25:34.966] [Error - GlobalEvents::think] Couldn't execute event: Shop [20:25:38.079] Error during getDataInt(vocation). [20:25:38.112] Error during getDataInt(looktype). [20:25:38.113] [Error - GlobalEvent Interface] [20:25:38.114] data/globalevents/scripts/shop.lua:onThink [20:25:38.115] Description: [20:25:38.117] data/globalevents/scripts/shop.lua:25: attempt to call field 'executeQuery' (a nil value) [20:25:38.118] stack traceback: [20:25:38.119] data/globalevents/scripts/shop.lua:25: in function <data/globalevents/scripts/shop.lua:1> [20:25:38.124] [Error - GlobalEvents::think] Couldn't execute event: Shop @Hastafaru
  8. qual topico?
  9. ta dando item sem parar [18:53:48.473] Error during getDataInt(vocation). [18:53:48.474] Error during getDataInt(looktype). ta dando esse erro tbm
  10. qual a tag que vai no globalevents? tem q configurar o script?
  11. function onThink(interval, lastExecution, thinkInterval) local result = db.getResult("SELECT * FROM shop_history WHERE `processed` = 0;") if(result:getID() ~= -1) then while(true) do cid = getCreatureByName(tostring(result:getDataString("player"))) product = tonumber(result:getDataInt("product")) itemr = db.getResult("SELECT * FROM shop_offer WHERE `id` = "..product..";") if isPlayer(cid) then local id = tonumber(itemr:getDataInt("item")) local tid = tonumber(result:getDataInt("id")) local count = tonumber(itemr:getDataInt("count")) local tipe = tonumber(itemr:getDataInt("type")) local productn = tostring(itemr:getDataString("name")) local voc = tonumber(itemr:getDataInt("vocation")) local look = tonumber(itemr:getDataInt("looktype")) local outfit = {lookType = look} if isInArray({5,8},tipe) then if(voc == 0) then if getPlayerFreeCap(cid) >= getItemWeightById(id, count) then if isContainer(getPlayerSlotItem(cid, 3).uid) then received = doAddContainerItem(getPlayerSlotItem(cid, 3).uid, id,count) if received then doPlayerSendTextMessage(cid,19, "Você Recebeu Uma | "..productn.." | que comprou no Shop, Obrigado e Bom Uso da "..productn.." ") db.executeQuery("UPDATE `shop_history` SET `processed`='1' WHERE id = " .. tid .. ";") else doPlayerSendTextMessage(cid,19, "Desculpa, Você não tem espaço para receber o item >> "..productn.." <<") end else doPlayerSendTextMessage(cid,19, "Desculpa, Você não tem espaço para receber >> "..productn.." <<") end else doPlayerSendTextMessage(cid,19, "Desculpa, você não tem cap para receber >> "..productn.." << (You need: "..getItemWeightById(id, count).." Capacity)") end else doPlayerSendTextMessage(cid,19, "Você Recebeu Uma | "..productn.." | que comprou no Shop, Obrigado e Bom Uso da "..productn.." ") db.executeQuery("UPDATE `shop_history` SET `processed`='1' WHERE id = " .. tid .. ";") doCreatureChangeOutfit(cid, outfit) doPlayerSetVocation(cid, voc) end elseif isInArray({6,7},tipe) then if tipe == 6 then bcap = 8 bid = 1987 elseif tipe == 7 then bcap = 20 bid = 1988 end if isItemRune(id) then count = 1 end if getPlayerFreeCap(cid) >= (getItemWeightById(1987, 1) + getItemWeightById(id,count * bcap)) then local bag = doCreateItemEx(bid, 1) for i = 1,bcap do doAddContainerItem(bag, id, count) end received = doPlayerAddItemEx(getPlayerSlotItem(cid, 3).uid, bag) if received == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid,19, "You have received >> "..productn.." << from our shop system") db.executeQuery("UPDATE `shop_history` SET `processed`='1' WHERE id = " .. tid .. ";") else doPlayerSendTextMessage(cid,19, "Sorry, you don't have enough space to receive >> "..productn.." <<") end else doPlayerSendTextMessage(cid,19, "Sorry, you don't have enough capacity to receive >> "..productn.." << (You need: "..getItemWeightById(id, count).." Capacity)") end end end itemr:free() if not(result:next()) then break end end result:free() end return true end queria saber naonde coloco essa script
  12. function onStepIn(cid, item, pos) local tp = {x = 75, y = 80, z = 7} local pos = {x = 91, y = 13, z = 6} if item.actionid == 7460 then doSendMagicEffect(getCreaturePosition(cid), 9) doSetCreatureOutfit(cid, 159, -1) doPlayerAddSkill(cid, 4, 2) doTeleportThing(cid, pos) doSendMagicEffect(tp, 14) doPlayerSendTextMessage(cid, 22, "Você se encarnou em um elfo!") end return true end tenta essa function onStepIn(cid, item,pos) local tp = {x = 75, y = 80, z = 7} local pos = {x = 91, y = 13, z=6} if item.actionid == 7460 then doSendMagicEffect9getcreaturePosition(cid),9) doSetCreatureOutfit(cid, 159, -1) doPlayerAddSkill(cid, 4, 2) doTeleportThing(cid, pos) doSendMagicEffect(tp, 14) doPlayerSendTextMessage(cid, 22, "Você se encarnou em um elfo!") end return false end
  13. ZoR postou uma resposta no tópico em Suporte Tibia OTServer
    <Buff Evolution> Essa Spell da 400 de Speed 80 de Poitons para tds skills e lembrando da outfist 2 Funçao da Script o player usa e quando ele quiser evoluir ela ele fala x palavra e apareçe "8 portoes liberado" e uma nova outfist lembrando o effect sempre vai mudar quando ele se transformar. Obs Tera 3 Evolutions - Logo tera 3 Fala diferente para abrir o proximo lvl Cada transformaçao da uma nova outfist e um novo effect e os skill de cada uma transformaçao aumenta! @Bodak Reborn
  14. ZoR postou uma resposta no tópico em Suporte Tibia OTServer
    1 vez que posto 1 script
  15. ZoR postou uma resposta no tópico em Suporte Tibia OTServer
    Abra Pasta Mods e Crie um arquivo com os sequintos codigos <?xml version="1.0" encoding="UTF-8"?> <mod name="Experience Stages Scroll" version="1.0" author="TomCrusher" contact="otland.net" enabled="yes"> <action itemid="9004" event="script" value="expstagescroll.lua"/> <creatureevent type="think" name="ExpStage" event="script" value="expstagescroll.lua"/> <creatureevent type="login" name="ExpStageLogin" event="script" value="expstagescroll.lua"/> </mod> abra mods/scripts crie um arquivo e cole esses codigos = { rate = 2, storage = 1000, expstorage = 1100, register = 1200, time = 14400, } function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, config.storage) <= 0 then local rates = getPlayerRates(cid) setPlayerStorageValue(cid, config.expstorage, rates[SKILL__LEVEL]) setPlayerStorageValue(cid, config.register, 1) itemEx=itemid == 11577 doCreatureSay(cid, "Your extra experience rate has been activated! It now is: " .. config.rate .. "x added to your former experience rate.", TALKTYPE_ORANGE_1, true, cid) setPlayerStorageValue(cid, config.storage, os.time()+config.time) doPlayerSetExperienceRate(cid, rates[SKILL__LEVEL]*config.rate) doRemoveItem(item.uid,1) registerCreatureEvent(cid, "ExpStage") else doCreatureSay(cid, "You must finish first exp condition to start other exp condition !", TALKTYPE_ORANGE_1, true, cid) end return true end function onThink(cid, interval) if getPlayerStorageValue(cid, config.register) == 1 then if getPlayerStorageValue(cid, config.storage) <= os.time() then doCreatureSay(cid, "Your extra experience rate has finished! It is now normaly experience rate.", TALKTYPE_ORANGE_1, true, cid) setPlayerStorageValue(cid, config.storage, 0) setPlayerStorageValue(cid, config.register, 0) local oldexp = getPlayerStorageValue(cid, config.expstorage) doPlayerSetExperienceRate(cid, oldexp) unregisterCreatureEvent(cid, "ExpStage") end end return true end function onLogin(cid) if getPlayerStorageValue(cid, config.register) == 1 then registerCreatureEvent(cid, "ExpStage") local rates = getPlayerRates(cid) doCreatureSay(cid, "Your extra experience rate is still here! It is: " .. config.rate .. "x added to your former experience rate.", TALKTYPE_ORANGE_1, true, cid) if getPlayerStorageValue(cid, config.storage) > os.time() then local oldexp = getPlayerStorageValue(cid, config.expstorage) doPlayerSetExperienceRate(cid, oldexp+config.rate) end end return true end Configurar RATE = 2, -- número que irá ser multiplicado pela sua exp rate básica (funciona com números quebrados, tais como 1.5 ou 0.2). STORAGE = 1000 -- storage que irá guardar o tempo REGISTER = 1200 -- storage que indica se o player está registrado no mod TIME = -- tempo que falta para o buff do scroll acabar (o tempo é calculado em segundos, ex: 14400 segundos = 24 horas) CREDITOS TomCrusher (OTland) - Desenvolveu o sistema GBDIAS - Por traduzir o sistema. VERSOES TESTADAS TFS 0.4
  16. ZoR postou uma resposta no tópico em Suporte Tibia OTServer
    quantos de xp ta dando?
  17. ZoR postou uma resposta no tópico em Formação de Equipe
    https://www.facebook.com/NarutoFireOnline/?ref=bookmarks
  18. voçe alterou o client? tem que alterar o client tbm '-' por isso e so para a versao 8.60
  19. esse tutorial e para tfs 0.4 8.60 nao para tfs 0.3.6 8.54 so serve para tfs 0.4
  20. ZoR postou uma resposta no tópico em Suporte Tibia OTServer
    Erros [17:1:31.504] [Warning - Spells::registerEvent] Duplicate registered instant spell with words: Katon dragon furie [17:1:31.884] [Warning - Spells::registerEvent] Duplicate registered instant spell with words: Explosion Katon [17:1:31.887] [Warning - Spells::registerEvent] Duplicate registered instant spell with words: Explosion Katon script ... [16:37:56.078] [Error - Spell Interface] [16:37:56.084] data/spells/scripts/Kakashi/kamui me.lua:onCastSpell [16:37:56.086] Description: [16:37:56.094] (luaDoCreateTeleport) Tile not found [16:25:09.147] [Error - Spell Interface] [16:25:09.152] In a timer event called from: [16:25:09.156] data/spells/scripts/hinata/hakke kuushou.lua:onCastSpell [16:25:09.162] Description: [16:25:09.165] data/spells/scripts/hinata/hakke kuushou.lua:134: attempt to call global 'getPosfromArea1' (a nil value) [16:25:09.176] stack traceback: [16:25:09.178] data/spells/scripts/hinata/hakke kuushou.lua:134: in function <data/spells/scripts/hinata/hakke kuushou.lua:121> [16:14:18.698] [Error - Spell Interface] [16:14:18.703] In a timer event called from: [16:14:18.706] data/spells/scripts/gaara/sabaku kyusou.lua:onCastSpell [16:14:18.709] Description: [16:14:18.711] attempt to index a number value [16:14:18.721] stack traceback: [16:14:18.725] [C]: ? Spells Script TFS 0.4
  21. ZoR postou uma resposta no tópico em Suporte Tibia OTServer
    mesmo erro soq modern acc
  22. ZoR postou uma resposta no tópico em Suporte Tibia OTServer
    isso
  23. ZoR postou uma resposta no tópico em Suporte Tibia OTServer
    o que tem do TK nao e o que eu quero esse e uma spell ou seja o player usa e fica x tempo com o effect do refletir

Informação Importante

Confirmação de Termo