Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Estou com esse erro

http://prntscr.com/b74u1r

e tenho essa script


local config = {
percent = 2, --- porcentagem de mana que perde
}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
 
local pos = fromPosition
local topos = toPosition
local position1 = {x=getPlayerPosition(cid).x+0, y=getPlayerPosition(cid).y+0, z=getPlayerPosition(cid).z}
local position2 = {x=toPosition.x+1, y=toPosition.y+1, z=toPosition.z}
local aqui = getPlayerPosition(cid)
local vocs = {670, 671, 672, 673, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279}
local agua = {4610, 4612, 4611, 4664, 4613, 4666, 4646, 4654, 4609, 4665, 4608, 4625, 4665, 4666, 4645}
local parede = {1030, 1029, 1025, 1026, 1027, 1259, 1028, 1032, 1034, 1033, 1536, 1533, 873, 919, 874, 1037, 2700, 2708, 4472, 4475, 4471, 3388, 3373, 3363, 3398, 3408, 3417, 3420, 3407, 3368, 2701, 5130, 6170, 6166, 1596, 3361, 3362, 3363, 3364, 3365, 3366, 3367, 3368, 3369, 3370, 3371, 3372, 3373, 3374, 3375, 3376, 3377, 3378, 3379, 3380, 3381, 3382, 3383, 3384, 3385, 3386, 3387, 3388, 3389, 3390, 3391, 3392, 3393, 3394, 3395, 3396, 3397, 3398, 3399, 3400, 3401, 3402, 3403, 3404, 3405, 3406, 3407, 3408, 3409, 3410, 3411, 3412, 3413, 3414, 3415, 3416, 3417, 3418, 3419, 3420, 3421, 3422}
local pedra = {874, 919, 873, 2707, 2784, 2778, 3330, 4471, 4475, 4473, 4472, 4474, 4468, 4478, 4469, 4470, 4479, 2703, 2704, 1534, 2739, 3867, 5324, 5316, 5315, 5317, 1600, 1597, 1601}
 
if getDistanceBetween(aqui, toPosition) >= 8 then
doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.")
return true
end
 
if(not(isSightClear(aqui, toPosition, 1))) then
doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.")
return true
end
 
if(getTilePzInfo(aqui)) then
doPlayerSendCancel(cid, "Não pode usar a tecnica Deus Dragão em casas ou areas protegidas.")
return true
end
 
if(getTilePzInfo(toPosition)) then
doPlayerSendCancel(cid, "Não pode usar a tecnica Deus Dragão em casas ou areas protegidas.")
return true
end
 
if(isInArray(agua, itemEx.itemid)) then
doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.")
return true
end
 
if(isInArray(parede, itemEx.itemid)) then
doPlayerSendTextMessage(cid, 26, "you cannot throw there.")
return true
end
 
if(isInArray(pedra, itemEx.itemid)) then
doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.")
return true
end
 
if(not(isInArray(vocs, getPlayerVocation(cid)))) then
return true
end
 
if(doTeleportThing(cid, toPosition, false)) then
doSendMagicEffect(position1, 52)
doSendMagicEffect(position2, 52)
 
doCreatureSay(cid, "Shunshin", 19)
doSendDistanceShoot(pos, toPosition, 52)
if isCreature(cid) then
if getCreatureMaxMana(cid) then
local lifedraw = math.ceil(getCreatureMaxMana(cid) * (config.percent)/100)
doCreatureAddMana(cid, -lifedraw, 1)
end
end
return true
end
 
doPlayerSendCancel(cid, "Desculpe nao foi possivel.")
return true
end

 

 

 

erro nessa parte

 
local pos = fromPosition
local topos = toPosition
local position1 = {x=getPlayerPosition(cid).x+0, y=getPlayerPosition(cid).y+0, z=getPlayerPosition(cid).z}
local position2 = {x=toPosition.x+1, y=toPosition.y+1, z=toPosition.z}
local aqui = getPlayerPosition(cid)

 

quando eu aumento X+0 ou umas dessa a funçao nao vai fica assim

 

 

http://prntscr.com/b74vch

a sprite fica bugada

Link para o post
Compartilhar em outros sites
local config = {
percent = 2, --- porcentagem de mana que perde
}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local pos = fromPosition
	local topos = toPosition
	local position1 = {x=getPlayerPosition(cid).x, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z}
	local position2 = {x=toPosition.x, y=toPosition.y, z=toPosition.z}
	local aqui = getPlayerPosition(cid)
	local vocs = {670, 671, 672, 673, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279}
	local agua = {4610, 4612, 4611, 4664, 4613, 4666, 4646, 4654, 4609, 4665, 4608, 4625, 4665, 4666, 4645}
	local parede = {1030, 1029, 1025, 1026, 1027, 1259, 1028, 1032, 1034, 1033, 1536, 1533, 873, 919, 874, 1037, 2700, 2708, 4472, 4475, 4471, 3388, 3373, 3363, 3398, 3408, 3417, 3420, 3407, 3368, 2701, 5130, 6170, 6166, 1596, 3361, 3362, 3363, 3364, 3365, 3366, 3367, 3368, 3369, 3370, 3371, 3372, 3373, 3374, 3375, 3376, 3377, 3378, 3379, 3380, 3381, 3382, 3383, 3384, 3385, 3386, 3387, 3388, 3389, 3390, 3391, 3392, 3393, 3394, 3395, 3396, 3397, 3398, 3399, 3400, 3401, 3402, 3403, 3404, 3405, 3406, 3407, 3408, 3409, 3410, 3411, 3412, 3413, 3414, 3415, 3416, 3417, 3418, 3419, 3420, 3421, 3422}
	local pedra = {874, 919, 873, 2707, 2784, 2778, 3330, 4471, 4475, 4473, 4472, 4474, 4468, 4478, 4469, 4470, 4479, 2703, 2704, 1534, 2739, 3867, 5324, 5316, 5315, 5317, 1600, 1597, 1601}
	 
	if getDistanceBetween(aqui, toPosition) >= 8 then
		doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.")
		return true
	end
	 
	if not isSightClear(aqui, toPosition, 1) then
		doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.")
		return true
	end
	 
	if getTilePzInfo(aqui) then
		doPlayerSendCancel(cid, "Não pode usar a tecnica Deus Dragão em casas ou areas protegidas.")
		return true
	end
	 
	if getTilePzInfo(toPosition) then
		doPlayerSendCancel(cid, "Não pode usar a tecnica Deus Dragão em casas ou areas protegidas.")
		return true
	end
	 
	if isInArray(agua, itemEx.itemid) then
		doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.")
		return true
	end
	 
	if isInArray(parede, itemEx.itemid) then
		doPlayerSendTextMessage(cid, 26, "you cannot throw there.")
		return true
	end
	 
	if isInArray(pedra, itemEx.itemid) then
		doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.")
		return true
	end
	 
	if not isInArray(vocs, getPlayerVocation(cid)) then return true end
	 
	if doTeleportThing(cid, toPosition, false) then
		doSendMagicEffect(position1, 52)
		doSendMagicEffect(position2, 52) 
		doCreatureSay(cid, "Shunshin", 19)
		doSendDistanceShoot(pos, toPosition, 52)
		
		if isCreature(cid) then
			if getCreatureMaxMana(cid) then
				local lifedraw = math.ceil(getCreatureMaxMana(cid) * (config.percent)/100)
				doCreatureAddMana(cid, -lifedraw, 1)
			end
		end
	end
	doPlayerSendCancel(cid, "Desculpe nao foi possivel.")
return true
end

 

Não dou suporte via PM, crie um tópico caso tenha dúvidas.

Isso previne que outras pessoas com a mesma dúvida criem tópicos desnecessários.

Link para o post
Compartilhar em outros sites
2 minutos atrás, Talesigorvr disse:

local config = {
percent = 2, --- porcentagem de mana que perde
}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local pos = fromPosition
	local topos = toPosition
	local position1 = {x=getPlayerPosition(cid).x, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z}
	local position2 = {x=toPosition.x, y=toPosition.y, z=toPosition.z}
	local aqui = getPlayerPosition(cid)
	local vocs = {670, 671, 672, 673, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279}
	local agua = {4610, 4612, 4611, 4664, 4613, 4666, 4646, 4654, 4609, 4665, 4608, 4625, 4665, 4666, 4645}
	local parede = {1030, 1029, 1025, 1026, 1027, 1259, 1028, 1032, 1034, 1033, 1536, 1533, 873, 919, 874, 1037, 2700, 2708, 4472, 4475, 4471, 3388, 3373, 3363, 3398, 3408, 3417, 3420, 3407, 3368, 2701, 5130, 6170, 6166, 1596, 3361, 3362, 3363, 3364, 3365, 3366, 3367, 3368, 3369, 3370, 3371, 3372, 3373, 3374, 3375, 3376, 3377, 3378, 3379, 3380, 3381, 3382, 3383, 3384, 3385, 3386, 3387, 3388, 3389, 3390, 3391, 3392, 3393, 3394, 3395, 3396, 3397, 3398, 3399, 3400, 3401, 3402, 3403, 3404, 3405, 3406, 3407, 3408, 3409, 3410, 3411, 3412, 3413, 3414, 3415, 3416, 3417, 3418, 3419, 3420, 3421, 3422}
	local pedra = {874, 919, 873, 2707, 2784, 2778, 3330, 4471, 4475, 4473, 4472, 4474, 4468, 4478, 4469, 4470, 4479, 2703, 2704, 1534, 2739, 3867, 5324, 5316, 5315, 5317, 1600, 1597, 1601}
	 
	if getDistanceBetween(aqui, toPosition) >= 8 then
		doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.")
		return true
	end
	 
	if not isSightClear(aqui, toPosition, 1) then
		doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.")
		return true
	end
	 
	if getTilePzInfo(aqui) then
		doPlayerSendCancel(cid, "Não pode usar a tecnica Deus Dragão em casas ou areas protegidas.")
		return true
	end
	 
	if getTilePzInfo(toPosition) then
		doPlayerSendCancel(cid, "Não pode usar a tecnica Deus Dragão em casas ou areas protegidas.")
		return true
	end
	 
	if isInArray(agua, itemEx.itemid) then
		doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.")
		return true
	end
	 
	if isInArray(parede, itemEx.itemid) then
		doPlayerSendTextMessage(cid, 26, "you cannot throw there.")
		return true
	end
	 
	if isInArray(pedra, itemEx.itemid) then
		doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.")
		return true
	end
	 
	if not isInArray(vocs, getPlayerVocation(cid)) then return true end
	 
	if doTeleportThing(cid, toPosition, false) then
		doSendMagicEffect(position1, 52)
		doSendMagicEffect(position2, 52) 
		doCreatureSay(cid, "Shunshin", 19)
		doSendDistanceShoot(pos, toPosition, 52)
		
		if isCreature(cid) then
			if getCreatureMaxMana(cid) then
				local lifedraw = math.ceil(getCreatureMaxMana(cid) * (config.percent)/100)
				doCreatureAddMana(cid, -lifedraw, 1)
			end
		end
	end
	doPlayerSendCancel(cid, "Desculpe nao foi possivel.")
return true
end

 

ei cara me ajuda na minha script? responde meu post pf to desisperado atraz dakele sistema pfff

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por Jaurez
      .
    • Por Cat
      Em alguns casos, o tibia 8.60 comum não abre de jeito nenhum no map editor, mesmo desmarcando check file signatures e configurando o path corretamente.
       
      Este é o client 8.60 adaptado para o Remere's Map Editor. Resolvi postar já que ele foi removido do site oficial do RME. (ficou apenas a versão para linux lá)
      Se estiver tendo problemas para abrir a versão 8.60, tente utilizar este.
                                                                                                                     
      Baixar o Tibia Client 8.60 que funciona no Remere’s Map Editor
      Essa versão do Tibia 8.60 client resolve o erro unsupported client version ou Could not locate tibia.dat and/or tibia.spr, please navigate to your tibia 8.60 installation folder.
       
      Downloads
      https://tibiaking.com/applications/core/interface/file/attachment.php?id=47333

      Scan: https://www.virustotal.com/gui/file/333e172ac49ba2028db9eb5889994509e7d2de28ebccfa428c04e86defbe15cc
       
    • Por danilo belato
      Fala Galera To Com um problema aki 
       
      quero exporta umas sprites de um server para colocar em outro 
       
      eu clico na sprites ai aparece tds a forma delas do lado de la >>
       
      ai eu clico nela e ponho a opiçao de export mais quando salvo a sprite ela n abri 
       
      aparece isso quando tento vê-la 
       
      visualização não disponível ( no formatos png e bitmap)
       
      Agora no formato idc fala que o paint n pode ler 
       
      me ajudem ae...
    • Por Vitor Bicaleto
      Galera to com o script do addon doll aqui, quando eu digito apenas "!addon" ele aparece assim: Digite novamente, algo está errado!"
      quando digito por exemplo: "!addon citizen" ele não funciona e não da nenhum erro
       
      mesma coisa acontece com o mount doll.. 
    • Por Ayron5
      Substitui uma stone no serve, deu tudo certo fora  esse  erro ajudem  Valendo  Rep+  Grato  

      Erro: data/actions/scripts/boost.lua:557: table index is nil
       [Warning - Event::loadScript] Cannot load script (data/actions/scripts/boost.lua)

      Script:
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo