Ir para conteúdo

First Itens


godoyxd

Posts Recomendados

tenho o tsf mystic spirit mais recente e esses script nao esta funcionando

aki o script:

--Script by Shynzo
local DruidItems =
{
getConfigInfo("newPlayerHelmet"),
getConfigInfo("newPlayerArmor"),
getConfigInfo("newPlayerLegs"),
getConfigInfo("newPlayerBoots"),
getConfigInfo("newPlayerShield"),
getConfigInfo("newPlayerAmulet"),
getConfigInfo("newPlayerDruidRod"),
2120, --rope
2160 --10k
}
local SorcererItems =
{
getConfigInfo("newPlayerHelmet"),
getConfigInfo("newPlayerArmor"),
getConfigInfo("newPlayerLegs"),
getConfigInfo("newPlayerBoots"),
getConfigInfo("newPlayerShield"),
getConfigInfo("newPlayerAmulet"),
getConfigInfo("newPlayerSorcererWand"),
2120, --rope
2160 --10k
}
local PaladinItems =
{
getConfigInfo("newPlayerHelmet"),
getConfigInfo("newPlayerArmor"),
getConfigInfo("newPlayerLegs"),
getConfigInfo("newPlayerBoots"),
getConfigInfo("newPlayerShield"),
getConfigInfo("newPlayerAmulet"),
getConfigInfo("newPlayerPaladinAmmo"),
getConfigInfo("newPlayerPaladinAmmonation"),
2120, --rope
2160 --10k

}
local KnightItems =
{
getConfigInfo("newPlayerHelmet"),
getConfigInfo("newPlayerArmor"),
getConfigInfo("newPlayerLegs"),
getConfigInfo("newPlayerBoots"),
getConfigInfo("newPlayerShield"),
getConfigInfo("newPlayerAmulet"),
getConfigInfo("newPlayerKnightSword"),
getConfigInfo("newPlayerKnightAxe"),
2160, --10k
2120 --rope
}
local Stor = 30001 --storage value
local backpack = getConfigInfo("newPlayerbackpack")

function onLogin(cid)
if getPlayerStorageValue(cid, Stor) == -1 then
if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 then
container = doPlayerAddItem(cid, backpack, 1)
	for i = 1, 9 do
		doAddContainerItem(container, SorcererItems[i], 1)
		setPlayerStorageValue(cid, Stor, 0)
	end

		elseif getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 then
container = doPlayerAddItem(cid, backpack, 1)
	for i = 1, 9 do
		doAddContainerItem(container, DruidItems[i], 1)
		setPlayerStorageValue(cid, Stor, 0)
	end

				elseif getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
container = doPlayerAddItem(cid, backpack, 1)
	for i = 1, 10 do
		doAddContainerItem(container, PaladinItems[i], 1)
		setPlayerStorageValue(cid, Stor, 0)
	end

				elseif getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then
container = doPlayerAddItem(cid, backpack, 1)
	for i = 1, 9 do
		doAddContainerItem(container, KnightItems[i], 1)
		setPlayerStorageValue(cid, Stor, 0)
	end
	else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_SMALL, "You don\'t have the required vocation!.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_SMALL, "You already recieved your items!.")
end
return TRUE
end

 

e aki a mensagem do erro:

[13/02/2009  10:28:22] Lua Script Error: [CreatureScript Interface] 
[13/02/2009  10:28:22] data/creaturescripts/scripts/firstitems.lua:onLogin

[13/02/2009  10:28:22] luaDoPlayerAddItem(). Item not found

[13/02/2009  10:28:22] Lua Script Error: [CreatureScript Interface] 
[13/02/2009  10:28:22] data/creaturescripts/scripts/firstitems.lua:onLogin

[13/02/2009  10:28:22] luaDoAddContainerItem(). Container not found

[13/02/2009  10:28:22] Lua Script Error: [CreatureScript Interface] 
[13/02/2009  10:28:22] data/creaturescripts/scripts/firstitems.lua:onLogin

[13/02/2009  10:28:22] luaDoAddContainerItem(). Container not found

[13/02/2009  10:28:22] Lua Script Error: [CreatureScript Interface] 
[13/02/2009  10:28:22] data/creaturescripts/scripts/firstitems.lua:onLogin

[13/02/2009  10:28:22] luaDoAddContainerItem(). Container not found

[13/02/2009  10:28:22] Lua Script Error: [CreatureScript Interface] 
[13/02/2009  10:28:22] data/creaturescripts/scripts/firstitems.lua:onLogin

[13/02/2009  10:28:22] luaDoAddContainerItem(). Container not found

[13/02/2009  10:28:22] Lua Script Error: [CreatureScript Interface] 
[13/02/2009  10:28:22] data/creaturescripts/scripts/firstitems.lua:onLogin

[13/02/2009  10:28:22] luaDoAddContainerItem(). Container not found

[13/02/2009  10:28:22] Lua Script Error: [CreatureScript Interface] 
[13/02/2009  10:28:22] data/creaturescripts/scripts/firstitems.lua:onLogin

[13/02/2009  10:28:22] luaDoAddContainerItem(). Container not found

[13/02/2009  10:28:22] Lua Script Error: [CreatureScript Interface] 
[13/02/2009  10:28:22] data/creaturescripts/scripts/firstitems.lua:onLogin

[13/02/2009  10:28:22] luaDoAddContainerItem(). Container not found

[13/02/2009  10:28:22] Lua Script Error: [CreatureScript Interface] 
[13/02/2009  10:28:22] data/creaturescripts/scripts/firstitems.lua:onLogin

[13/02/2009  10:28:22] luaDoAddContainerItem(). Container not found

[13/02/2009  10:28:22] Lua Script Error: [CreatureScript Interface] 
[13/02/2009  10:28:22] data/creaturescripts/scripts/firstitems.lua:onLogin

[13/02/2009  10:28:22] luaDoAddContainerItem(). Container not found

[13/02/2009  10:28:22] Lua Script Error: [CreatureScript Interface] 
[13/02/2009  10:28:22] data/creaturescripts/scripts/firstitems.lua:onLogin

[13/02/2009  10:28:22] luaDoAddContainerItem(). Container not found

 

tentem me ajudar...

Link para o comentário
Compartilhar em outros sites

-- configuração do char

local newPlayerItems = {
  Knight = {
  helmet = '0000', -- id do capacete de knight
  armor = '0000', -- id da armadura de knight
  legs = '0000', -- id da legs de knight
  boots = '0000', -- id da bota de knight
  necklace = '0000', -- id do colar
  ammo = '0000', -- slot da flecha
  backpack = '0000', -- slot da bp
  weapon = '0000', -- arma
  shield = '0000', -- escudo
  ring = '0000', -- anel
  },

  Paladin = {
  helmet = '0000',
  armor = '0000',
  legs = '0000',
  boots = '0000',
  necklace = '0000',
  ammo = '0000',
  backpack = '0000',
  weapon = '0000',
  shield = '0000',
  ring = '0000'
  },

  Druid = {
  helmet = '0000',
  armor = '0000',
  legs = '0000',
  boots = '0000',
  necklace = '0000',
  ammo = '0000',
  backpack = '0000',
  weapon = '0000',
  shield = '0000',
  ring = '0000'
  },

  Sorcerer = {
  helmet = '0000',
  armor = '0000',
  legs = '0000',
  boots = '0000',
  necklace = '0000',
  ammo = '0000',
  backpack = '0000',
  weapon = '0000',
  shield = '0000',
  ring = '0000'
  }
  }

local containerContents = {'0000','0000','0000'} -- aqui vc coloca os items iniciais que ficarão DENTRO DA BP

function onLogin(cid)
  local handleItem = newPlayerItems[getPlayerVocationName(cid)]
  for i = 1,#order do if handleItem[i] ~= 0000 then doPlayerAddItem(cid, handleItem[i]) end end
  local container = getPlayerSlotItem(cid,3)
  for i = 1,#containerContents do if containerContents[i] ~= 0000 then doAddContainerItem(container,containerContents[i]) end end
end



feito pra TFS 3.0
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...