Ir para conteúdo

Tchubaka

Visconde
  • Total de itens

    395
  • Registro em

  • Última visita

  • Dias Ganhos

    4

Tudo que Tchubaka postou

  1. local teleportar_para = {x=1000,y=1000,z=7} local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, 31) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) function removeTeleport(pos) tp = getTileItemById(pos, 1387) doRemoveItem(tp.uid, 1) doSendMagicEffect(pos, 2) end function onCastSpell(cid, var) local pos = getCreaturePosition(cid) doCreateTeleport(1387, teleportar_para, pos) doTeleportThing(cid, teleportar_para) for i = 1, 5 do addEvent(doSendMagicEffect, i*1000, pos, 1) end addEvent(removeTeleport, 5000, pos) return doCombat(cid, combat, var) end
  2. lembrando que esse dai de cima so cria o chat. torça para que na soucers tenha ele ja.
  3. Tchubaka

    War System

    Amg so funciona com mysql que eu conheça. o baiak podia ter 1 site de base so pra rodar isso. http://www.xtibia.com/forum/topic/155489-gesior-acc-guild-war-system-com-escudos/ espero ter ajudado.
  4. Tchubaka

    Escudo De War

    ai amg. http://www.xtibia.com/forum/topic/155489-gesior-acc-guild-war-system-com-escudos/
  5. Tchubaka

    Arena Svargrond

    tem a script ai? da arena?
  6. Vá em Data>MoveMents>Scripts crie uma pasta.lua chamada changetile.lua e coloque isso: local female = {lookType = 269, lookHead = 79, lookBody = 91, lookLegs = 91, lookFeet = 91, lookTypeEx = 0, lookAddons = 3} -- Outfit Female local male = {lookType = 268, lookHead = 86, lookBody = 86, lookLegs = 86, lookFeet = 86, lookTypeEx = 0, lookAddons = 3} -- Outfit Male function onStepIn(cid, item, pos) if isPlayer(cid) == TRUE then if getPlayerSex(cid) == 0 then doCreatureChangeOutfit(cid, female) else doCreatureChangeOutfit(cid, male) end doSendMagicEffect(getThingPos(cid), 29) -- Efeito que dara quando o Player Pisar no Tile ou ItemId. doSendAnimatedText(getPlayerPosition(cid),"Wooaahh!", math.random(01,255)) -- Oque o Player vai Falar quando Mudar de Outfit. end return TRUE end Agora vá em Data>Movements.xml Adicione essa tag: <movevent type="StepIn" actionid="2020" event="script" value="changetile.lua"/> Feche e Salve!!
  7. de tarde eu entro e tento resolver pra tu pelo msn. vamos resolver isso ^^
  8. Nada brother. ^^ Duvida Sanada. Reportado para que movam.
  9. qualquer erro comentai que tentarei concertar amg ^^
  10. no potions.xml substirua por isso.. local config = { removeOnUse = "no", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "no", realAnimation = "no", -- make text effect visible only for players in range 1x1 healthMultiplier = 1.0, manaMultiplier = 1.0 } config.removeOnUse = getBooleanFromString(config.removeOnUse) config.usableOnTarget = getBooleanFromString(config.usableOnTarget) config.splashable = getBooleanFromString(config.splashable) config.realAnimation = getBooleanFromString(config.realAnimation) local POTIONS = { [8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion [7618] = {empty = 7636, splash = 2, health = {100, 200}}, -- health potion [7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4, 8}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {800, 1000}, level = 130, vocations = {4, 8}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {70, 130}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {110, 190}, level = 50, vocations = {1, 2, 3, 5, 6, 7}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {200, 300}, level = 80, vocations = {1, 2, 5, 6}, vocStr = "sorcerers and druids"}, -- great mana potion [8472] = {empty = 7635, splash = 3, health = {200, 400}, mana = {110, 190}, level = 80, vocations = {3, 7}, vocStr = "paladins"} -- great spirit potion } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) local potion = POTIONS[item.itemid] if(not potion) then return false end if(not isPlayer(itemEx.uid) or (not config.usableOnTarget and cid ~= itemEx.uid)) then if(not config.splashable) then return false end if(toPosition.x == CONTAINER_POSITION) then toPosition = getThingPos(item.uid) end doDecayItem(doCreateItem(2016, potion.splash, toPosition)) return TRUE end if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end if(((potion.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_ORANGE_1) return TRUE end local health = potion.health if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.healthMultiplier))) then return false end local mana = potion.mana if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier))) then return false end doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) if(not realAnimation) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1, false, tid) end end end end spells.xml sudden death. <rune name="Sudden Death" id="2268" allowfaruse="1" charges="3" lvl="45" maglv="15" exhaustion="2000" needtarget="1" blocktype="solid" event="script" value="attack/sudden death.lua"/> da rep+?
  11. notle2012 ele pediu pra quando encostar na bola ela se mover. esse dai e de dominio. tem que dar use na bola. mais atenção nas duvidas. vai em data/movements/scripts crie 1 arquivo com nome ball.lua e cole isso. function onStepIn(cid, item, pos) dir = getPlayerLookDir(cid) if dir == 0 then doRemoveItem(item.uid,1) pos.y = pos.y-1 doCreateItem(2109,1,pos) elseif dir == 1 then doRemoveItem(item.uid,1) pos.x = pos.x+1 doCreateItem(2109,1,pos) elseif dir == 2 then doRemoveItem(item.uid,1) pos.y = pos.y+1 doCreateItem(2109,1,pos) elseif dir == 3 then doRemoveItem(item.uid,1) pos.x = pos.x-1 doCreateItem(2109,1,pos) end end agora em movements.xml cole isso. <movevent type="StepIn" itemid="2109" script="ball.lua" /> tentai cara
  12. poste seu potions.lua e seu script de suddent death ai;
  13. local config = { Tp = {{x=158, y=57, z=7},{x = 160, y = 54, z = 7}} , TpTime = 2 -- em minutos } function removeTp(config) local t = getTileItemById(config.Tp[1], 1387) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(config.Tp[1], CONST_ME_POFF) broadcastMessage("O teleporte se fechou.",22) end end function onThink(interval, lastExecution) doCreateTeleport(1387, config.Tp[2], config.Tp[1]) broadcastMessage("O evento foi aberto, você tem "..config.TpTime.." minutos para entrar no teleport.",22) addEvent(removeTp, config.TpTime*60*1000, config) break end end return true end
  14. faz assim. vai na tua talkactions.xml aperta CTRL+F e coloca !bless ai vc muda . !bless por !blessing ve se da certo'
  15. sim sim. essas efeitos enjoam. porque nao pode trocar e talz =/. vou tentar te ajudar e me ajudar tbm lek. tentar adc pra akbar rep+?
  16. sim sim. que erro? salve o primeiro arquivo com nome autobuyer.lua
  17. so editar aki. local time = 30 * 60 * 1000
  18. tenta isso. function onThink(interval, lastExecution, thinkInterval) local time = 30 * 60 * 1000 doCreateTeleport(1387, {x=677, y=17, z=7}, {x=153, y=47, z=7}) doBroadcastMessage("O portal do evento da vip5 'gratis' foi aberto ele durara 30 minutos.") setGlobalStorageValue(21973, os.time()+time) addEvent(doFinishEvent, time, {x=162, y=40, z=7}) end function doFinishEvent(pos) doBroadcastMessage("O portal do evento foi fechado. Próximo evento em 3 horas.") if getThingfromPos({x = 153, y=47, z=7, stackpos=1}).itemid == 1387 then doRemoveItem(getThingfromPos({x=677, y=17, z=7, stackpos=1}).uid,1) doSendMagicEffect({x=153, y=47, z=7, stackpos=1}, CONST_ME_POFF) end end ou isso. function onThink(interval, lastExecution, thinkInterval) local time = 30 * 60 * 1000 doCreateTeleport(1387, {x=677, y=17, z=7}, {x=153, y=47, z=7}) doBroadcastMessage("O portal do evento da vip5 'gratis' foi aberto ele durara 30 minutos.") setGlobalStorageValue(21973, os.time()+time) addEvent(doFinishEvent, time, {x=162, y=40, z=7}) end function doFinishEvent(pos) doBroadcastMessage("O portal do evento foi fechado. Próximo evento em 3 horas.") if getThingfromPos({x = 153, y=47, z=7, stackpos=1}).itemid == 1387 then doRemoveItem(getThingfromPos({x=153, y=47, z=7, stackpos=1}).uid,1) doSendMagicEffect({x=153, y=47, z=7, stackpos=1}, CONST_ME_POFF) end end
  19. [Data/spells/scripts/attack] Copie e cole qualquer arquivo .lua e renomeie-o para lover. Abra-o, apague tudo que tem lá e cole isso: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1498) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -9.9, -99, -9.9, 6) local arr = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 1, 0, 2, 0, 1, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} } local area = createCombatArea(arr) setCombatArea(combat, area) function onCastSpell(cid, var) return doCombat(cid, combat, var) end Agora salve e feche, e em spells.xml cole isto: <instant name="Lover" words="loving" lvl="0" mana="0" direction="1" exhaustion="1200" needlearn="0" script="attack/lover.lua"> <vocation name="Knight" /> <vocation name="Elite Knight" /> </instant> tentai
  20. local autoBlessStorage = 57927 local autoAOLStorage = 57928 function onLogin(cid) local templePosition = getTownTemplePosition(getPlayerTown(cid)) local playerPosition = getThingPosition(cid) local fyi = {} local msg = {} if(getDistanceBetween(templePosition, playerPosition) <= 2) then if(getCreatureStorage(cid, autoAOLStorage) == 1 and getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 0) then if(doPlayerRemoveMoney(cid,10000)) then doPlayerAddItem(cid,2173,1) doCreatureSay(cid,'AOL',TALKTYPE_ORANGE_1) doSendMagicEffect(getThingPosition(cid),CONST_ME_BATS) table.insert(msg, 'You have bought Amulet of Loss!') else table.insert(fyi, 'You got no money for Amulet of Loss! It cost 1 crystal coin!') end end if(getCreatureStorage(cid, autoBlessStorage) == 1 and not getPlayerBlessing(cid,1)) then if(doPlayerRemoveMoney(cid,50000)) then for b=1,5 do doPlayerAddBlessing(cid,b) end doCreatureSay(cid,'BLESS',TALKTYPE_ORANGE_1) doSendMagicEffect(getThingPosition(cid),CONST_ME_HOLYDAMAGE) table.insert(msg, 'You have been blessed by the gods!') else table.insert(fyi, 'You got no money for Bless! It cost 5 crystal coin!') end end end if(#fyi > 0) then doPlayerPopupFYI(cid, table.concat(fyi, '\n')) end if(#msg > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, table.concat(msg, '\n')) end if(#msg > 0 or #fyi > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You can turn off auto buyer by commands:\n!aol off\n!bless off') end return true end <event type="login" name="AutoBuyerAfterDeath" event="script" value="autobuyer.lua"/>
  21. Tchubaka

    Duvida Restart

    amg isso e bug do serve. algum script errado. bug de tiles.
  22. cara le o topico la expliquei isso ja :S
  23. é ;x, se não vai usar delta lek. esses arquivos que nao vai usar. so pesa ot. precisa de mais M ram. etc. x;
  24. config = { Tp = {{x=677, y=17, z=7},{x = 153, y = 47, z = 7}} , TpTime = 7 -- em minutos } function onThink(interval, lastExecution) local t = getTileItemById(config.Tp[1], 1387) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(config.Tp[1], CONST_ME_POFF) broadcastMessage("O teleporte se fechou.",22) end end doCreateTeleport(1387, config.Tp[2], config.Tp[1]) broadcastMessage("O evento foi aberto, você tem "..config.TpTime.." minutos para entrar no teleport.",22) addEvent(removeTp, config.TpTime*1000*60, config) end break end return true end tentai.
  25. juniorrek pra diminuir eu sei. vai em configaura.lua e mude aki. auexchance = 20 -- chance de acontecer uma explosão de aura(maixmo 100)
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...