Ir para conteúdo

The Demon Oak Quest 2.1 (tfs 0.4)


tibiaa4e

Posts Recomendados

  • Respostas 103
  • Created
  • Última resposta

Top Posters In This Topic

bom consegui usar o hallowed pra entrar pq entendi so o começo aki

 

basepos = {x=1867, y=975, z=7}

local starting={x=480, y=1038, z=7, stackpos=253} <<

local ending={x=479, y=1046, z=7, stackpos=253}

local trash= {x=1169, y=725, z=13}

 

me explica o que poe em cada um desse ae de cima /\

 

e de baxo \/

 

 

local fourposition1 = {x=basepos.x-4, y=basepos.y-4, z=7}

local fourposition2 = {x=basepos.x-4, y=basepos.y+1, z=7}

local fourposition3 = {x=basepos.x+3, y=basepos.y-4, z=7}

local fourposition4 = {x=basepos.x+3, y=basepos.y+1, z=7}

local modpos1 = {x=basepos.x-3, y=basepos.y-5, z=7}

local modpos2 = {x=basepos.x, y=basepos.y-4, z=7}

local modpos3 = {x=basepos.x+2, y=basepos.y-5, z=7}

local threeposition1 = {x=basepos.x+3, y=basepos.y+4, z=7}

local threeposition2 = {x=basepos.x+5, y=basepos.y+4, z=7}

local threeposition3 = {x=basepos.x+3, y=basepos.y+5, z=7}

local twopos ={x=basepos.x+5, y=basepos.y+1, z=7}

local twopos1 = {x=basepos.x+2, y=basepos.y+2, z=7}

local doublepos = {x=basepos.x-3, y=basepos.y-1, z=7}

local leftpos = {x=basepos.x-4, y=basepos.y-5, z=7}

local crepos = {x=basepos.x-3, y=basepos.y-7, z=7}

local gopos = {x=basepos.x-2, y=basepos.y-17, z=7}

------------------------------------------------------------------------------------------------------------------------------

local gtotal = getPlayerStorageValue(cid, 15005)

local gcorvo = getPlayerStorageValue(cid, 15001)

local gleft = getPlayerStorageValue(cid, 15002)

local gright = getPlayerStorageValue(cid, 15003)

local gface = getPlayerStorageValue(cid, 15004)

checking={x=starting.x, y=starting.y, z=starting.z, stackpos=starting.stackpos}

 

 

 

pq ela nao ta gritando e nem o hallowed ta usando nela ;/

 

 

ajuda ae kra

 

flw abraço

 

 

tipo nao teria como vc postar isso ja configurado com as cordenadas do seu mapa ai vc falaria pra por em tal lugar sei la

 

vlw se nao der entao me explica ;p

Editado por pincelli
Link para o comentário
Compartilhar em outros sites

e aonde fica as cordenadas pra min por os 5 pontos pra arvores gritas e talz?

 

oque poe nessas ae?

 

flw

 

e quando eu uso o axe na arvore da isso no console

 

[08/07/2009 17:07:48] data/actions/scripts/Hallowed Axe.lua:132: attempt to call global 'effect' (a nil value)

[08/07/2009 17:07:48] stack traceback:

[08/07/2009 17:07:48] data/actions/scripts/Hallowed Axe.lua:132: in function <data/actions/scripts/Hallowed Axe.lua:4>

Editado por pincelli
Link para o comentário
Compartilhar em outros sites

tipo

 

peguei esse hallowed axe.lua q o kra posto ali do post em ingles

 

 

--- Made by Mazen ---

function onUse(cid, item, fromPosition, itemEx, toPosition)

 

--- Config --

levelneeded = 120 --- How much level you need to enter the arena ---

 

--- First part ---

summonweak1Position = {x=XXX, y=XXX, z=X}

summonweak2Position = {x=XXX, y=XXX, z=X}

summonweak3Position = {x=XXX, y=XXX, z=X}

summonweak4Position = {x=XXX, y=XXX, z=X}

summonweakone1Position = {x=XXX, y=XXX, z=X}

summonweakone2Position = {x=XXX, y=XXX, z=X}

summonweakone3Position = {x=XXX, y=XXX, z=X}

summonweakone4Position = {x=XXX, y=XXX, z=X}

summonweaktwo1Position = {x=XXX, y=XXX, z=X}

summonweaktwo2Position = {x=XXX, y=XXX, z=X}

summonweaktwo3Position = {x=XXX, y=XXX, z=X}

summonweaktwo4Position = {x=XXX, y=XXX, z=X}

 

--- Second Part ---

summonnormal1Position = {x=XXX, y=XXX, z=X}

summonnormal2Position = {x=XXX, y=XXX, z=X}

summonnormal3Position = {x=XXX, y=XXX, z=X}

summonnormal4Position = {x=XXX, y=XXX, z=X}

summonnormalone1Position = {x=XXX, y=XXX, z=X}

summonnormalone2Position = {x=XXX, y=XXX, z=X}

summonnormalone3Position = {x=XXX, y=XXX, z=X}

summonnormalone4Position = {x=XXX, y=XXX, z=X}

summonnormaltwo1Position = {x=XXX, y=XXX, z=X}

summonnormaltwo2Position = {x=XXX, y=XXX, z=X}

summonnormaltwo3Position = {x=XXX, y=XXX, z=X}

summonnormaltwo4Position = {x=XXX, y=XXX, z=X}

 

--- Third Part ---

summonmedium1Position = {x=XXX, y=XXX, z=X}

summonmedium2Position = {x=XXX, y=XXX, z=X}

summonmedium3Position = {x=XXX, y=XXX, z=X}

summonmedium4Position = {x=XXX, y=XXX, z=X}

summonmediumone1Position = {x=XXX, y=XXX, z=X}

summonmediumone2Position = {x=XXX, y=XXX, z=X}

summonmediumone3Position = {x=XXX, y=XXX, z=X}

summonmediumone4Position = {x=XXX, y=XXX, z=X}

summonmediumtwo1Position = {x=XXX, y=XXX, z=X}

summonmediumtwo2Position = {x=XXX, y=XXX, z=X}

summonmediumtwo3Position = {x=XXX, y=XXX, z=X}

summonmediumtwo4Position = {x=XXX, y=XXX, z=X}

 

--- Fourth Part ---

summonhard1Position = {x=XXX, y=XXX, z=X}

summonhard2Position = {x=XXX, y=XXX, z=X}

summonhard3Position = {x=XXX, y=XXX, z=X}

summonhard4Position = {x=XXX, y=XXX, z=X}

summonhardone1Position = {x=XXX, y=XXX, z=X}

summonhardone2Position = {x=XXX, y=XXX, z=X}

summonhardone3Position = {x=XXX, y=XXX, z=X}

summonhardone4Position = {x=XXX, y=XXX, z=X}

 

--- Teleport Back Positions ---

back1Position = {x=XXX, y=XXX, z=X}

back2Position = {x=XXX, y=XXX, z=X}

back3Position = {x=XXX, y=XXX, z=X}

back4Position = {x=XXX, y=XXX, z=X}

back5Position = {x=XXX, y=XXX, z=X}

 

--- End Config ---

 

demonoak = {8288, 8289, 8290, 8291}

 

if itemEx.itemid == 2709 and itemEx.uid == 32193 and getPlayerLevel(cid) >= levelneeded then

if getPlayerStorageValue(cid, 21545) <= 1 and getPlayerStorageValue(cid,29061) == 1 then

doTransformItem(itemEx.uid, 3669)

doTeleportThing(cid, toPosition, TRUE)

else

doSendMagicEffect(toPosition, 2)

end

elseif itemEx.itemid == 8288 or itemEx.itemid == 8289 or itemEx.itemid == 8290 or itemEx.itemid == 8291 then

if getPlayerStorageValue(cid, itemEx.itemid) == -1 and getPlayerStorageValue(cid, 21541) == -1 then

if math.random(1, 2) == 1 then

setPlayerStorageValue(cid, 21541, 1)

doSendMagicEffect(toPosition, 0)

doSummonCreature("", summonweak1Position)

doSummonCreature("", summonweak2Position)

doSummonCreature("", summonweak3Position)

doSummonCreature("", summonweak4Position)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

elseif math.random(1, 2) == 2 then

doSendMagicEffect(toPosition, 0)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

end

elseif getPlayerStorageValue(cid, itemEx.itemid) == -1 and getPlayerStorageValue(cid, 21541) == 1 then

if math.random(1, 2) == 1 then

setPlayerStorageValue(cid, 21541, 2)

doSendMagicEffect(toPosition, 0)

doSummonCreature("", summonweakone1Position)

doSummonCreature("", summonweakone2Position)

doSummonCreature("", summonweakone3Position)

doSummonCreature("", summonweakone4Position)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

elseif math.random(1, 2) == 2 then

doSendMagicEffect(toPosition, 0)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

end

elseif getPlayerStorageValue(cid, itemEx.itemid) == -1 and getPlayerStorageValue(cid, 21541) == 2 then

if math.random(1, 2) == 1 then

setPlayerStorageValue(cid, 21541, 3)

doSendMagicEffect(toPosition, 0)

doSummonCreature("", summonweaktwo1Position)

doSummonCreature("", summonweaktwo2Position)

doSummonCreature("", summonweaktwo3Position)

doSummonCreature("", summonweaktwo4Position)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

if itemEx.itemid == 8288 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

elseif itemEx.itemid == 8289 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

elseif itemEx.itemid == 8290 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

elseif itemEx.itemid == 8291 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

end

elseif math.random(1, 2) == 2 then

doSendMagicEffect(toPosition, 0)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

end

elseif getPlayerStorageValue(cid, itemEx.itemid) == -1 and getPlayerStorageValue(cid, 21541) == 3 and getPlayerStorageValue(cid, 21542) == -1 then

if math.random(1, 2) == 1 then

setPlayerStorageValue(cid, 21542, 1)

doSendMagicEffect(toPosition, 0)

doSummonCreature("", summonnormal1Position)

doSummonCreature("", summonnormal2Position)

doSummonCreature("", summonnormal3Position)

doSummonCreature("", summonnormal4Position)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

elseif math.random(1, 2) == 2 then

doSendMagicEffect(toPosition, 0)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

end

elseif getPlayerStorageValue(cid, itemEx.itemid) == -1 and getPlayerStorageValue(cid, 21541) == 3 and getPlayerStorageValue(cid, 21542) == 1 then

if math.random(1, 2) == 1 then

setPlayerStorageValue(cid, 21542, 2)

doSendMagicEffect(toPosition, 0)

doSummonCreature("", summonnormalone1Position)

doSummonCreature("", summonnormalone2Position)

doSummonCreature("", summonnormalone3Position)

doSummonCreature("", summonnormalone4Position)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

elseif math.random(1, 2) == 2 then

doSendMagicEffect(toPosition, 0)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

end

elseif getPlayerStorageValue(cid, itemEx.itemid) == -1 and getPlayerStorageValue(cid, 21541) == 3 and getPlayerStorageValue(cid, 21542) == 2 then

if math.random(1, 2) == 1 then

setPlayerStorageValue(cid, 21542, 3)

doSendMagicEffect(toPosition, 0)

doSummonCreature("", summonnormaltwo1Position)

doSummonCreature("", summonnormaltwo2Position)

doSummonCreature("", summonnormaltwo3Position)

doSummonCreature("", summonnormaltwo4Position)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

if itemEx.itemid == 8288 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

elseif itemEx.itemid == 8289 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

elseif itemEx.itemid == 8290 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

elseif itemEx.itemid == 8291 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

end

elseif math.random(1, 2) == 2 then

doSendMagicEffect(toPosition, 0)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

end

elseif getPlayerStorageValue(cid, itemEx.itemid) == -1 and getPlayerStorageValue(cid, 21541) == 3 and getPlayerStorageValue(cid, 21542) == 3 and getPlayerStorageValue(cid, 21543) == -1 then

if math.random(1, 2) == 1 then

setPlayerStorageValue(cid, 21543, 1)

doSendMagicEffect(toPosition, 0)

doSummonCreature("", summonmedium1Position)

doSummonCreature("", summonmedium2Position)

doSummonCreature("", summonmedium3Position)

doSummonCreature("", summonmedium4Position)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

elseif math.random(1, 2) == 2 then

doSendMagicEffect(toPosition, 0)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

end

elseif getPlayerStorageValue(cid, itemEx.itemid) == -1 and getPlayerStorageValue(cid, 21541) == 3 and getPlayerStorageValue(cid, 21542) == 3 and getPlayerStorageValue(cid, 21543) == 1 then

if math.random(1, 2) == 1 then

setPlayerStorageValue(cid, 21543, 2)

doSendMagicEffect(toPosition, 0)

doSummonCreature("", summonmediumone1Position)

doSummonCreature("", summonmediumone2Position)

doSummonCreature("", summonmediumone3Position)

doSummonCreature("", summonmediumone4Position)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

elseif math.random(1, 2) == 2 then

doSendMagicEffect(toPosition, 0)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

end

elseif getPlayerStorageValue(cid, itemEx.itemid) == -1 and getPlayerStorageValue(cid, 21541) == 3 and getPlayerStorageValue(cid, 21542) == 3 and getPlayerStorageValue(cid, 21543) == 2 then

if math.random(1, 2) == 1 then

setPlayerStorageValue(cid, 21543, 3)

doSendMagicEffect(toPosition, 0)

doSummonCreature("", summonmediumtwo1Position)

doSummonCreature("", summonmediumtwo2Position)

doSummonCreature("", summonmediumtwo3Position)

doSummonCreature("", summonmediumtwo4Position)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

if itemEx.itemid == 8288 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

elseif itemEx.itemid == 8289 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

elseif itemEx.itemid == 8290 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

elseif itemEx.itemid == 8291 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

end

elseif math.random(1, 2) == 2 then

doSendMagicEffect(toPosition, 0)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

end

elseif getPlayerStorageValue(cid, itemEx.itemid) == -1 and getPlayerStorageValue(cid, 21541) == 3 and getPlayerStorageValue(cid, 21542) == 3 and getPlayerStorageValue(cid, 21543) == 3 and getPlayerStorageValue(cid, 21544) == -1 then

if math.random(1, 2) == 1 then

setPlayerStorageValue(cid, 21544, 1)

doSendMagicEffect(toPosition, 0)

doSummonCreature("", summonmedium1Position)

doSummonCreature("", summonmedium2Position)

doSummonCreature("", summonmedium3Position)

doSummonCreature("", summonmedium4Position)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

 

elseif math.random(1, 2) == 2 then

doSendMagicEffect(toPosition, 0)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

end

elseif getPlayerStorageValue(cid, itemEx.itemid) == -1 and getPlayerStorageValue(cid, 21541) == 3 and getPlayerStorageValue(cid, 21542) == 3 and getPlayerStorageValue(cid, 21543) == 3 and getPlayerStorageValue(cid, 21544) == 1 then

if math.random(1, 2) == 1 then

setPlayerStorageValue(cid, 21544, 2)

doSendMagicEffect(toPosition, 0)

doSummonCreature("", summonmediumone1Position)

doSummonCreature("", summonmediumone2Position)

doSummonCreature("", summonmediumone3Position)

doSummonCreature("", summonmediumone4Position)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

elseif math.random(1, 2) == 2 then

doSendMagicEffect(toPosition, 0)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

end

elseif getPlayerStorageValue(cid, itemEx.itemid) == -1 and getPlayerStorageValue(cid, 21541) == 3 and getPlayerStorageValue(cid, 21542) == 3 and getPlayerStorageValue(cid, 21543) == 3 and getPlayerStorageValue(cid, 21544) == 2 then

if math.random(1, 2) == 1 then

setPlayerStorageValue(cid, 21544, 3)

doSendMagicEffect(toPosition, 0)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

if itemEx.itemid == 8288 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

setPlayerStorageValue(cid, 21545, 1)

if getPlayerStorageValue(cid, 8288) == 1 then

setPlayerStorageValue(cid, 21545, 1)

if math.random(1, 5) == 1 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back1Position)

elseif math.random(1, 5) == 2 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back2Position)

elseif math.random(1, 5) == 3 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back3Position)

elseif math.random(1, 5) == 4 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back4Position)

elseif math.random(1, 5) == 5 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back5Position)

end

end

elseif itemEx.itemid == 8289 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

if getPlayerStorageValue(cid, 8289) == 1 then

setPlayerStorageValue(cid, 21545, 1)

if math.random(1, 5) == 1 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back1Position)

elseif math.random(1, 5) == 2 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back2Position)

elseif math.random(1, 5) == 3 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back3Position)

elseif math.random(1, 5) == 4 then

 

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back4Position)

elseif math.random(1, 5) == 5 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back5Position)

end

end

elseif itemEx.itemid == 8290 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

if getPlayerStorageValue(cid, 8290) == 1 then

setPlayerStorageValue(cid, 21545, 1)

if math.random(1, 5) == 1 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back1Position)

elseif math.random(1, 5) == 2 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back2Position)

elseif math.random(1, 5) == 3 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back3Position)

elseif math.random(1, 5) == 4 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back4Position)

elseif math.random(1, 5) == 5 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back5Position)

end

end

elseif itemEx.itemid == 8291 then

setPlayerStorageValue(cid, itemEx.itemid, 1)

if getPlayerStorageValue(cid, 8291) == 1 then

setPlayerStorageValue(cid, 21545, 1)

if math.random(1, 5) == 1 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back1Position)

elseif math.random(1, 5) == 2 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back2Position)

elseif math.random(1, 5) == 3 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back3Position)

elseif math.random(1, 5) == 4 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back4Position)

elseif math.random(1, 5) == 5 then

doSendMagicEffect(fromPosition, 10)

doTeleportThing(cid,back5Position)

end

end

end

elseif math.random(1, 2) == 2 then

doSendMagicEffect(toPosition, 0)

doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS)

end

else

doSendMagicEffect(toPosition, 2)

end

end

return TRUE

end

 

 

 

 

agora deu pra bater na arvore e ela deu o danod e veneno la mas os 5 pontos la ela nao grita ainda no mapa q vc mando ja ta certinho ;x

 

 

eu piso la nao acontece nada

 

help :x

 

se tem que usar o seu script msm tenta arrumar pra min eu copiei denovo da os erro das linhas la

 

 

ou poe pra baixar ele e o npc q n pega tb ;(

Editado por pincelli
Link para o comentário
Compartilhar em outros sites

  • 10 months later...

Tudo Bugado!

Nao Grita!

gravestone zuado o storageid qualquer player pode clica!

 

Amigo

Temos aqui uma boa parte de comentarios

E esse script sim funciona perfeitamente

 

Você deve ter errado no metodo de inseri-lo no ot

 

Veja novamente como o fez

E se há erros no console

 

E não fale que está bugado

Isso não ajuda em nada.

Link para o comentário
Compartilhar em outros sites

  • 9 years later...

×
×
  • Criar Novo...