Ir para conteúdo

Featured Replies

Postado

Galera to com 3 erros aque no meu server , Queria sabe se alguem pode me ajuda a resolve tudo.

Espero que me ajudem porque tem topico que crio e nem tentão ajuda não só eu como outras pessoas

REP++++ QUEM AJUDA

Primeiro:

[16/09/2012 09:18:48] > Broadcasted message: "Blood castle aberto!.".

[16/09/2012 09:18:49] > Broadcasted message: "Somente para jogadores experientes.".

[16/09/2012 09:18:49] [Error - GlobalEvent Interface]

[16/09/2012 09:18:49] In a timer event called from:

[16/09/2012 09:18:49] data/globalevents/scripts/event.lua:onThink

[16/09/2012 09:18:49] Description:

[16/09/2012 09:18:49] (luaDoRemoveItem) Item not found

[16/09/2012 09:18:49] [Error - GlobalEvent Interface]

[16/09/2012 09:18:49] In a timer event called from:

[16/09/2012 09:18:49] data/globalevents/scripts/event.lua:onThink

[16/09/2012 09:18:50] Description:

[16/09/2012 09:18:50] (luaDoRemoveItem) Item not found

Cod do Primeiro:


local timeToCreate = 1 -- minutes

local Walls = {

{ x = 417, y = 65, z = 7, stackpos = STACKPOS_FIRST_ITEM_ABOVE_GROUNDTILE },

{ x = 417, y = 67, z = 7, stackpos = STACKPOS_FIRST_ITEM_ABOVE_GROUNDTILE }

}

function removeWalls(item, position)

doBroadcastMessage("Somente para jogadores experientes.")

addEvent(createWalls, timeToCreate * 100000000)

for i = 1, table.maxn(walls) do

doRemoveItem(getThingfromPos(walls[i]).uid)

doSendMagicEffect(walls[i], CONST_ME_MAGIC_RED)

end

return TRUE

end

function createWalls(item, position)

for i = 1,table.maxn(walls) do

doCreateItem(9485, 1, walls[i])

doSendMagicEffect(walls[i], CONST_ME_MAGIC_GREEN)

end

return TRUE

end

function onThink(interval, lastExecution)

doBroadcastMessage("Blood castle aberto!.")

addEvent(removeWalls, 1000)

return TRUE

end

Segundo:
[23/09/2012 00:40:09] [Error - CreatureScript Interface] [23/09/2012 00:40:09] In a timer event called from: [23/09/2012 00:40:09] data/creaturescripts/scripts/antimbcrash.lua:onLogin [23/09/2012 00:40:09] Description: [23/09/2012 00:40:09] (internalGetPlayerInfo) Player not found when requesting player info #28
Cod do segundo:

local config = {

	 max = 5,

	 text = "Magebomb is not allowed.",

	 group_id = 1 -- it will only kick player whit that id (1=Players, 2=tutor, 3=seniortutors, 4=Gm's, 5=Cm's and 6=God's

}

local accepted_ip_list = "" -- here put the Ip you whant to be allowed to use Mc/Magebomb..

local function antiMC(p)

	 if #getPlayersByIp(getPlayerIp(p.pid)) >= p.max then

			 doRemoveCreature(p.pid)

	 end

	 return TRUE

end

function onLogin(cid)

	 if getPlayerGroupId(cid) <= config.group_id then

			 if isInArray(accepted_ip_list,getPlayerIp(cid)) == FALSE then

					 addEvent(antiMC, 1000, {pid = cid, max = config.max+1})

					 doPlayerPopupFYI(cid, config.text)

			 end

	 end

	 return TRUE

end

Terceiro:
[22/09/2012 22:02:52] [Error - Spell Interface] [22/09/2012 22:02:52] data/spells/scripts/support/destroy field rune.lua:onCastSpell [22/09/2012 22:02:52] Description: [22/09/2012 22:02:52] (luaDoRemoveItem) Item not found
Cod do terceiro:

UNREMOVABLE_FIELDS = {1497, 1498, 1499, 1505, 1506, 1507, 1508, 7465, 7466, 7467, 7468, 7469, 7470, 7471, 7472, 7473, 11094, 11095}

local function doRemoveField(cid, pos)

local field = getTileItemByType(pos, ITEM_TYPE_MAGICFIELD)

if(not isInArray(UNREMOVABLE_FIELDS, field.itemid)) then

doRemoveItem(field.uid)

doSendMagicEffect(pos, CONST_ME_POFF)

return true

end

doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)

return false

end

function onCastSpell(cid, var)

local pos = variantToPosition(var)

if(pos.x == CONTAINER_POSITION) then

pos = getThingPos(cid)

end

if(pos.x ~= 0 and pos.y ~= 0) then

return doRemoveField(cid, pos)

end

doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)

return false

end

Editado por rollback (veja o histórico de edições)

tk-melhor.pngpolitico_mensalao.gif

5wwbk5.gif

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

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo