• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Firstitems.lua request

IGURZINHO

New Member
Joined
Oct 18, 2009
Messages
4
Reaction score
0
I need the firstitems file, since TFS 0.3.5 doesn't have it.
i'm using tfs 0.3.5 for tibia 8.50
 
Here is it!

Add this file in TFS 0.3.5/Data/Creaturescript/

firstitems [lua file]
local commonItems =
{
2457, -- Steel helmet
2463, -- Plate Armor
2525, -- Dwarf
2647, -- Plate Legs
2643 -- Leather Boots
}
local containerItems =
{
2160, -- Rope
2120, -- Rope
5710 -- Light Shovel
}

function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
if isSorcerer(cid) then
-- Wand of Dragonbreath
doPlayerAddItem(cid, 2190, 1)
elseif isDruid(cid) then
-- Moonlight Rod
doPlayerAddItem(cid, 2543, 4)
elseif isPaladin(cid) then
-- Crossbow
doPlayerAddItem(cid, 2455, 4)
elseif isKnight(cid) then
-- Fire Sword
doPlayerAddItem(cid, 2383, 1)
end


for i = 1, table.maxn(commonItems) do
doPlayerAddItem(cid, commonItems, 1)
end
-- Backpack
local bag = doPlayerAddItem(cid, 2001, 1)
for i = 1, table.maxn(containerItems) do
doAddContainerItem(bag, containerItems, 1)
end
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end


and also ADD this in creaturescripts.xml
<event type="login" name="FirstItems" script="firstitems.lua"/>

Rep++ if I helped ;)
 
Last edited:
Back
Top