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...