Ir para conteúdo
  • 0

[Resolvido] Bug Inquisition (Global 9.52)


rodrygosos

Pergunta

Galera estou criando um servidor mapa global full versão 9.52 esta tudo beleza só que na inquisition quest, quando eu passo em algum teleport la, tipo para ir nos bosses ou para sair de uma sala da dbug no char, e os trono da poi eu subo nele aparece a mensagem mais não consigo passar pelo bloquei para ir a sala de premios, jaja estarei postando o script da poi mais ja segue o script da inqui, creio que só precisa alterar alguma função.

 

 

local config = {

bosses={---aid of portal, position where it sends, value it sets, text it shows

[1001] = {pos={x=33069, y=31783, z=13, stackpos=1}, value=1, text="Entering The Crystal Caves"},

[1002] = {pos={x=33371, y=31613, z=14, stackpos=1}, value=2, text="Entering The Blood Halls"},

[1003] = {pos={x=33153, y=31781, z=12, stackpos=1}, value=3, text="Entering The Vats"},

[1004] = {pos={x=33038, y=31753, z=15, stackpos=1}, value=4, text="Entering The Arcanum"},

[1005] = {pos={x=33199, y=31686, z=12, stackpos=1}, value=5, text="Entering The Hive"},

[1006] = {pos={x=33111, y=31682, z=12, stackpos=1}, value=6, text="Entering The Shadow Nexus"}

},

mainroom={---aid, position, lowest value that can use this portal, text

[2001] = {pos={x=33069, y=31783, z=13, stackpos=1}, value=1, text="Entering The Crystal Caves"},

[2002] = {pos={x=33371, y=31613, z=14, stackpos=1}, value=2, text="Entering The Blood Halls"},

[2003] = {pos={x=33153, y=31781, z=12, stackpos=1}, value=3, text="Entering The Vats"},

[2004] = {pos={x=33038, y=31753, z=15, stackpos=1}, value=4, text="Entering The Arcanum"},

[2005] = {pos={x=33199, y=31686, z=12, stackpos=1}, value=5, text="Entering The Hive"} },

portals={---aid, position, text

[3000] = {pos={x=33163, y=31708, z=14}, text="Escaping back to the Retreat!"},

[3001] = {pos={x=33158, y=31728, z=11}, text="Entering The Ward of Ushuriel"},

[3002] = {pos={x=33169, y=31755, z=13}, text="Entering The Undersea Kingdom"},

[3003] = {pos={x=33124, y=31692, z=11}, text="Entering The Ward of Zugurosh"},

[3004] = {pos={x=33356, y=31590, z=11}, text="Entering The Foundry"},

[3005] = {pos={x=33197, y=31767, z=11}, text="Entering The Ward of Madareth"},

[3006] = {pos={x=33250, y=31632, z=13}, text="Entering The Battlefield"},

[3007] = {pos={x=33232, y=31733, z=11}, text="Entering The Ward of The Demon Twins"},

[3008] = {pos={x=33094, y=31575, z=11}, text="Entering The Soul Wells"},

[3009] = {pos={x=33197, y=31703, z=11}, text="Entering The Ward of Annihilon"},

[3010] = {pos={x=33105, y=31734, z=11}, text="Entering The Ward of Hellgorak"} },

storage=56123,---storage used in boss and mainroom portals

e={} }----dunno whats this but have to be like this to make doCreatureSayWithDelay working, DON'T TOUCH}

function onStepIn(cid, item, position, fromPosition)

if isPlayer(cid) == TRUE then

if(config.bosses[item.actionid]) then

local t= config.bosses[item.actionid]

if getPlayerStorageValue(cid, config.storage)< t.value then

setPlayerStorageValue(cid, config.storage, t.value)

end

doTeleportThing(cid, t.pos)

doSendMagicEffect(getCreaturePosition(cid),10)

doCreatureSay(cid,t.text,19,1, config.e)

elseif(config.mainroom[item.actionid]) then

local t= config.mainroom[item.actionid]

if getPlayerStorageValue(cid, config.storage)>=t.value then

doTeleportThing(cid, t.pos)

doSendMagicEffect(getCreaturePosition(cid),10)

doCreatureSay(cid,t.text,19,1,config.e)

else

doTeleportThing(cid, fromPosition)

doSendMagicEffect(getCreaturePosition(cid),10)

doCreatureSay(cid, 'You don\'t have enough energy to enter this portal', TALKTYPE_ORANGE_1)

end

elseif(config.portals[item.actionid]) then

local t= config.portals[item.actionid]

doTeleportThing(cid, t.pos)

doSendMagicEffect(getCreaturePosition(cid),10)

doCreatureSay(cid,t.text,19,1,config.e)

end

end

end

Link para o comentário
Compartilhar em outros sites

Posts Recomendados

  • 0

facil, é um bug no "doCreatureSay"

coloque esse script no lugar desse ai:

local config = {
bosses={---aid of portal, position where it sends, value it sets, text it shows
 [1001] = {pos={x=33069, y=31783, z=13, stackpos=1}, value=1, text="Entering The Crystal Caves"},
 [1002] = {pos={x=33371, y=31613, z=14, stackpos=1}, value=2, text="Entering The Blood Halls"},
 [1003] = {pos={x=33153, y=31781, z=12, stackpos=1}, value=3, text="Entering The Vats"},
 [1004] = {pos={x=33038, y=31753, z=15, stackpos=1}, value=4, text="Entering The Arcanum"},
 [1005] = {pos={x=33199, y=31686, z=12, stackpos=1}, value=5, text="Entering The Hive"},
 [1006] = {pos={x=33111, y=31682, z=12, stackpos=1}, value=6, text="Entering The Shadow Nexus"}
 },
mainroom={---aid, position, lowest value that can use this portal, text
 [2001] = {pos={x=33069, y=31783, z=13, stackpos=1}, value=1, text="Entering The Crystal Caves"},
 [2002] = {pos={x=33371, y=31613, z=14, stackpos=1}, value=2, text="Entering The Blood Halls"},
 [2003] = {pos={x=33153, y=31781, z=12, stackpos=1}, value=3, text="Entering The Vats"},
 [2004] = {pos={x=33038, y=31753, z=15, stackpos=1}, value=4, text="Entering The Arcanum"},
 [2005] = {pos={x=33199, y=31686, z=12, stackpos=1}, value=5, text="Entering The Hive"} },
portals={---aid, position, text
 [3000] = {pos={x=33163, y=31708, z=14}, text="Entering Inquisition Portals Room"},
 [3001] = {pos={x=33158, y=31728, z=11}, text="Entering The Ward of Ushuriel"},
 [3002] = {pos={x=33169, y=31755, z=13}, text="Entering The Undersea Kingdom"},
 [3003] = {pos={x=33124, y=31692, z=11}, text="Entering The Ward of Zugurosh"},
 [3004] = {pos={x=33356, y=31590, z=11}, text="Entering The Foundry"},
 [3005] = {pos={x=33197, y=31767, z=11}, text="Entering The Ward of Madareth"},
 [3006] = {pos={x=33250, y=31632, z=13}, text="Entering The Battlefield"},
 [3007] = {pos={x=33232, y=31733, z=11}, text="Entering The Ward of The Demon Twins"},
 [3008] = {pos={x=33094, y=31575, z=11}, text="Entering The Soul Wells"},
 [3009] = {pos={x=33197, y=31703, z=11}, text="Entering The Ward of Annihilon"},
 [3010] = {pos={x=33105, y=31734, z=11}, text="Entering The Ward of Hellgorak"} },
storage=56123,---storage used in boss and mainroom portals
e={} }----dunno whats this but have to be like this to make doCreatureSayWithDelay working, DON'T TOUCH}
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) == TRUE then
 if(config.bosses[item.actionid]) then
  local t= config.bosses[item.actionid]
  if getPlayerStorageValue(cid, config.storage)< t.value then
   setPlayerStorageValue(cid, config.storage, t.value)
  end
  doTeleportThing(cid, t.pos)
  doSendMagicEffect(getCreaturePosition(cid),10)
 elseif(config.mainroom[item.actionid]) then
  local t= config.mainroom[item.actionid]
  if getPlayerStorageValue(cid, config.storage)>=t.value then
   doTeleportThing(cid, t.pos)
   doSendMagicEffect(getCreaturePosition(cid),10)
  else
   doTeleportThing(cid, fromPosition)
   doSendMagicEffect(getCreaturePosition(cid),10)
   doCreatureSay(cid, 'You don\'t have enough energy to enter this portal', TALKTYPE_ORANGE_1)
  end
 elseif(config.portals[item.actionid]) then
  local t= config.portals[item.actionid]
  doTeleportThing(cid, t.pos)
  doSendMagicEffect(getCreaturePosition(cid),10)
 end
end
end

certamente ira funcionar..

 

o bug da poi, talves seja poruqe vc tem qe passar em cima do trono 2x

passe 2x em cima de cada trono, e me fala se funciona (:

ajudei rep++ ae (:

Link para o comentário
Compartilhar em outros sites

  • 0

a quest da fareworlk boots ta bugada também mano, so funciona se eu usa a pick na pedra com o god

 

 

function onDeath(cid, corpse, deathList)

if getCreatureName(cid):lower() == "pythius the rotten" then

for i = 1, #deathList do

if isPlayer(deathList) then

doCreatureSay(deathList, "NICE FIGHTING LITTLE WORM, YOUR VICTORY SHALL BE REWARDED!", TALKTYPE_ORANGE_1, nil, nil, {x=32577, y=31402, z=15})

doSendMagicEffect(getCreaturePosition(deathList), CONST_ME_TELEPORT)

doTeleportThing(deathList, {x=32577, y=31402, z=15})

doSendMagicEffect({x=32577, y=31402, z=15}, CONST_ME_TELEPORT)

break

end

end

end

return true

end

Link para o comentário
Compartilhar em outros sites

  • 0

segue ai o script do moviments espero que possa me ajudar auishuais vlw man

local condition = {}

for i = 1, 4 do

table.insert(condition, createConditionObject(CONDITION_FIRE))

addDamageCondition(condition, 1, 0, -(i == 1 and 20 or i==2 and 2 or i == 3 and 10 or i == 4 and 1))

addDamageCondition(condition, isInArray({1,3},i)==TRUE and 7 or 2, 9000, -(isInArray({1,3},i)==TRUE and 10 or 1))

end

 

function onStepIn(cid, item, position, fromPosition)

if isPlayer(cid) == FALSE or getPlayerFlagValue(cid, PlayerFlag_CannotBeAttacked) == FALSE then

return doRemoveCondition(cid, CONDITION_FIRE), doAddCondition(cid, isInArray({1487,1492},item.itemid) == TRUE and condition[isPlayer(cid) == TRUE and getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 9932 and 2 or 1] or condition[isPlayer(cid) == TRUE and getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 9932 and 4 or 3])

else

doSendMagicEffect(position, CONST_ME_POFF)

end

end

Link para o comentário
Compartilhar em outros sites

  • 0

achei kkkk

 

 

function getCreaturesInRange(position, radiusx, radiusy, showMonsters, showPlayers, showSummons)

local creaturesList = {}

for x = -radiusx, radiusx do

for y = -radiusy, radiusy do

if not (x == 0 and y == 0) then

local creature = getTopCreature({x = position.x+x, y = position.y+y, z = position.z})

if (creature.type == 1 and showPlayers) or (creature.type == 2 and showMonsters and (not showSummons or (showSummons and getCreatureMaster(creature.uid) == (creature.uid)))) then

table.insert(creaturesList, creature.uid)

end

end

end

end

 

local creature = getTopCreature(position)

if (creature.type == 1 and showPlayers) or (creature.type == 2 and showMonsters and (not showSummons or (showSummons and getCreatureMaster(creature.uid) == (creature.uid)))) then

if not(table.find(creaturesList, creature.uid)) then

table.insert(creaturesList, creature.uid)

end

end

return creaturesList

end

 

local once = true

local tiles = {{x=32550,y=31373,z=15}, {x=32550,y=31374,z=15}, {x=32550,y=31375,z=15}, {x=32550,y=31376,z=15}, {x=32550,y=31377,z=15}, {x=32550,y=31378,z=15}, {x=32550,y=31379,z=15}, {x=32551,y=31373,z=15}, {x=32551,y=31374,z=15}, {x=32551,y=31375,z=15}, {x=32551,y=31376,z=15}, {x=32551,y=31377,z=15}, {x=32551,y=31378,z=15}, {x=32551,y=31379,z=15}}

 

function onStepIn(cid, item, position, fromPosition)

if 99 < getPlayerLevel(cid) then

if(getPlayerStorageValue(cid, 13101) < 1 and once or not once) then

local players = getCreaturesInRange({x=32566, y=31406, z=15}, 6, 7, FALSE, TRUE)

if #players == 0 then

local creatures = getCreaturesInRange({x=32566, y=31406, z=15}, 6, 7, TRUE, FALSE)

for i = 1, #creatures do

doRemoveCreature(creatures)

end

doRemoveItem(item.uid)

doSendMagicEffect(position, CONST_ME_TELEPORT)

doTeleportThing(cid, {x=32560, y=31404,z=15})

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)

doCreatureSay(doSummonCreature("Pythius the Rotten", {x=32572, y=31405, z=15}), "WHO IS SNEAKING AROUND BEHIND MY TREASURE?", TALKTYPE_ORANGE_2)

for i = 1, #tiles do

if i > 8 and i < 15 then

doRelocate(tiles, {x=tiles.x+1, y=i == 14 and tiles.y-1 or tiles.y, z=tiles.z})

end

doCreateItem(i == 14 and 1509 or 598, 1, tiles)

end

doCreateItem(1304, 1, {x=32551,y=31379,z=15})

doCreateItem(9341, 1, {x=32551,y=31379,z=15})

return TRUE

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "There is someone else in the quest room.")

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have already completed this quest.")

end

end

doTeleportThing(cid, {x=32553, y=31376, z=15})

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)

return TRUE

end

 

function onAddItem(moveitem, tileitem, pos)

doSendMagicEffect(pos, CONST_ME_TELEPORT)

doRelocate(pos, {x=32560, y=31404,z=15})

doSendMagicEffect({x=32560, y=31404,z=15}, CONST_ME_TELEPORT)

return TRUE

end

Link para o comentário
Compartilhar em outros sites

  • 0

coloque assim qe ira funcionar.

function getCreaturesInRange(position, radiusx, radiusy, showMonsters, showPlayers, showSummons)

local creaturesList = {}

for x = -radiusx, radiusx do

for y = -radiusy, radiusy do

if not (x == 0 and y == 0) then

local creature = getTopCreature({x = position.x+x, y = position.y+y, z = position.z})

if (creature.type == 1 and showPlayers) or (creature.type == 2 and showMonsters and (not showSummons or (showSummons and getCreatureMaster(creature.uid) == (creature.uid)))) then

table.insert(creaturesList, creature.uid)

end

end

end

end

 

local creature = getTopCreature(position)

if (creature.type == 1 and showPlayers) or (creature.type == 2 and showMonsters and (not showSummons or (showSummons and getCreatureMaster(creature.uid) == (creature.uid)))) then

if not(table.find(creaturesList, creature.uid)) then

table.insert(creaturesList, creature.uid)

end

end

return creaturesList

end

 

local once = true

local tiles = {{x=32550,y=31373,z=15}, {x=32550,y=31374,z=15}, {x=32550,y=31375,z=15}, {x=32550,y=31376,z=15}, {x=32550,y=31377,z=15}, {x=32550,y=31378,z=15}, {x=32550,y=31379,z=15}, {x=32551,y=31373,z=15}, {x=32551,y=31374,z=15}, {x=32551,y=31375,z=15}, {x=32551,y=31376,z=15}, {x=32551,y=31377,z=15}, {x=32551,y=31378,z=15}, {x=32551,y=31379,z=15}}

 

function onStepIn(cid, item, position, fromPosition)

if 99 < getPlayerLevel(cid) then

if(getPlayerStorageValue(cid, 13101) < 1 and once or not once) then

local players = getCreaturesInRange({x=32566, y=31406, z=15}, 6, 7, FALSE, TRUE)

if #players == 0 then

local creatures = getCreaturesInRange({x=32566, y=31406, z=15}, 6, 7, TRUE, FALSE)

for i = 1, #creatures do

doRemoveCreature(creatures)

end

doRemoveItem(item.uid)

doSendMagicEffect(position, CONST_ME_TELEPORT)

doTeleportThing(cid, {x=32560, y=31404,z=15})

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)

doCreatureSay(doSummonCreature("Pythius the Rotten", {x=32572, y=31405, z=15}), "WHO IS SNEAKING AROUND BEHIND MY TREASURE?", TALKTYPE_ORANGE_2)

for i = 1, #tiles do

if i > 8 and i < 15 then

doRelocate(tiles, {x=tiles.x+1, y=i == 14 and tiles.y-1 or tiles.y, z=tiles.z})

end

doCreateItem(i == 14 and 1509 or 598, 1, tiles)

end

doCreateItem(1304, 1, {x=32551,y=31379,z=15})

doCreateItem(9341, 1, {x=32551,y=31379,z=15})

return TRUE

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "There is someone else in the quest room.")

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have already completed this quest.")

end

end

doTeleportThing(cid, {x=32553, y=31376, z=15})

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)

return TRUE

end

 

function onAddItem(moveitem, tileitem, pos)

doSendMagicEffect(pos, CONST_ME_TELEPORT)

doRelocate(pos, {x=32560, y=31404,z=15})

doSendMagicEffect({x=32560, y=31404,z=15}, CONST_ME_TELEPORT)

return TRUE

end

 

verifique tbm as tags em moviments.xml

<movevent type="AddItem" tileitem="1" actionid="60126" event="script" value="Nome_Script.lua"/>
<movevent type="StepIn" actionid="60126" event="script" value="Nome_Script.lua"/>

 

ajudei rep++

 

obs: se nao funcionar fale aqui que sei como arrumar.

Editado por öKTöBëR
Link para o comentário
Compartilhar em outros sites

  • 0

Vlw jaja irei testar só por me ajuda outro rep+ pra tu rs

 

Tem como tu me conseguir um npc de bank sem bug :s, os meus tem aquele bug de fazer um monte de dinheiro

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

×
×
  • Criar Novo...