Ir para conteúdo

[Encerrado] Script Dando Erro Mais Funcionando


Tonyyx

Posts Recomendados

Como Diz O Titulo O Script Funciona Mais Diversas Vezes Da Esse Error

[1:38:04.751] [Error - CreatureScript Interface] [1:38:04.751] data/creaturescripts/scripts/semattack.lua:onThink[1:38:04.751] Description: [1:38:04.751] (luaGetThingPosition) Thing not found

vou deixa o script ai para voces da uma olhada meu server e 8.60

 

SemAttack.lua

function onThink(cid, interval)    if(getTilePzInfo(getCreaturePosition(cid))) then         addEvent(function()            if isPlayer(cid) and (getTilePzInfo(getCreaturePosition(cid))) and getCreatureHealth(cid) < getCreatureMaxHealth(cid) then                            doCreatureAddHealth(cid, getCreatureMaxHealth(cid))                addEvent(doRemoveCreature, 1, cid)            end        end, 1 * 1)    endend

 

Link para o comentário
Compartilhar em outros sites

function onThink(cid, interval)    if isPlayer(cid) then        if (getTilePzInfo(getCreaturePosition(cid))) then             if getCreatureHealth(cid) < getCreatureMaxHealth(cid) then                            doCreatureAddHealth(cid, getCreatureMaxHealth(cid))                doRemoveCreature(cid)            end        end    endend

 

Link para o comentário
Compartilhar em outros sites

1 hora atrás, Ed'Specter disse:
function onThink(cid, interval)    if isPlayer(cid) then        if (getTilePzInfo(getCreaturePosition(cid))) then             if getCreatureHealth(cid) < getCreatureMaxHealth(cid) then                            doCreatureAddHealth(cid, getCreatureMaxHealth(cid))                doRemoveCreature(cid)            end        end    endend

 

 

 

vlw funcionou mais tam bem to com problema nesse script ele funciona mais aparece error

[14:35:00.459] [Error - MoveEvents Interface] [14:35:00.459] data/movements/scripts/closingdoor.lua:onStepOut[14:35:00.459] Description: [14:35:00.459] (luaDoTransformItem) Item not found

pode concerta pra min vou deixa o script ae

 

closingdoor.lua

function onStepOut(cid, item, position, fromPosition)	local newPosition = {x = position.x, y = position.y, z = position.z}	if(isInArray(verticalOpenDoors, item.itemid)) then		newPosition.x = newPosition.x + 1	else		newPosition.y = newPosition.y + 1	end	doRelocate(position, newPosition)	local tmpPos = {x = position.x, y = position.y, z = position.z, stackpos = -1}	local tileCount = getTileThingByPos(tmpPos)	local i = 1	local tmpItem = {uid = 1}	while(tmpItem.uid ~= 0 and i < tileCount) do		tmpPos.stackpos = i		tmpItem = getTileThingByPos(tmpPos)		if(tmpItem.uid ~= item.uid and tmpItem.uid ~= 0 and isMoveable(tmpItem.uid)) then			doRemoveItem(tmpItem.uid)		else			i = i + 1		end	end	doTransformItem(item.uid, item.itemid - 1)	return trueend

 

 

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

17 minutos atrás, Tonyyx disse:

 

 

vlw funcionou mais tam bem to com problema nesse script olha o error

[14:35:00.459] [Error - MoveEvents Interface] [14:35:00.459] data/movements/scripts/closingdoor.lua:onStepOut[14:35:00.459] Description: [14:35:00.459] (luaDoTransformItem) Item not found

pode concerta pra min vou deixa o script ae

 

closingdoor.lua

function onStepOut(cid, item, position, fromPosition)	local newPosition = {x = position.x, y = position.y, z = position.z}	if(isInArray(verticalOpenDoors, item.itemid)) then		newPosition.x = newPosition.x + 1	else		newPosition.y = newPosition.y + 1	end	doRelocate(position, newPosition)	local tmpPos = {x = position.x, y = position.y, z = position.z, stackpos = -1}	local tileCount = getTileThingByPos(tmpPos)	local i = 1	local tmpItem = {uid = 1}	while(tmpItem.uid ~= 0 and i < tileCount) do		tmpPos.stackpos = i		tmpItem = getTileThingByPos(tmpPos)		if(tmpItem.uid ~= item.uid and tmpItem.uid ~= 0 and isMoveable(tmpItem.uid)) then			doRemoveItem(tmpItem.uid)		else			i = i + 1		end	end	doTransformItem(item.uid, item.itemid - 1)	return trueend

 

 

 

Verifica o id da porta aberta e fechada;

Link para o comentário
Compartilhar em outros sites

2 minutos atrás, Ed'Specter disse:

 

Verifica o id da porta aberta e fechada;

 

<!-- (Level & quest) doors -->	<movevent type="StepOut" itemid="1228" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="1230" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="1246" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="1248" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="1260" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="1262" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="3541" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="3550" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="5104" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="5113" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="5122" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="5131" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="5293" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="5295" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="1224" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="1226" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="1242" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="1244" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="1256" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="1258" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="3543" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="3552" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="5106" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="5115" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="5124" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="5133" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="5289" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="5291" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="5746" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="5749" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="6203" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="6205" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="6207" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="6209" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="6260" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="6262" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="6264" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="6266" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="6897" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="6899" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="6906" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="6908" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="7039" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="7041" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="7048" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="7050" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="8552" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="8554" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="8556" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="8558" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="9176" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="9178" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="9180" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="9182" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="9278" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="9280" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="9282" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="9284" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="10279" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="10281" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="10283" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="10285" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="10474" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="10476" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="10483" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="10485" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="10783" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="10785" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="10792" event="script" value="closingdoor.lua"/>	<movevent type="StepOut" itemid="10794" event="script" value="closingdoor.lua"/>

 

Link para o comentário
Compartilhar em outros sites

  • 8 months later...
Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

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