• 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!

Help i need Firstitems.xml for TFS 0.3.5pl1 (real Map)

XaTaR

قناص بغداد
Joined
May 20, 2009
Messages
1,280
Reaction score
2
Location
Austria
i need firstitems.xml for tfs 0.3.5pl1 its for my real map pleas!!
 
Use this ...
Code:
<event type="login" name="FirstItemsVocs" event="script" value="firstitemsvoc_default.lua" />

Code:
function onLogin(cid)
if getPlayerStorageValue(cid, 40045) == -1 then
	if getPlayerVocation(cid) == 1 then
		doPlayerAddItem(cid, 2518, 1)--Beholder Shield
		doPlayerAddItem(cid, 8820, 1)--Mage hat
		doPlayerAddItem(cid, 8819, 1)--Magician's robe
		doPlayerAddItem(cid, 2478, 1)--Brass Legs
		doPlayerAddItem(cid, 2643, 1)--Leather Boots
		local container = doPlayerAddItem(cid, 2000, 1)
		doAddContainerItem(container, 2190, 1)--Wand Of Vortex
		doAddContainerItem(container, 2175, 1)--Spell Book
		doAddContainerItem(container, 2671, 3)--Ham
		doAddContainerItem(container, 2120, 1)--Rope
		doAddContainerItem(container, 2160, 1)--Crystal Coin
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." ahora tienes los primeros items de "..getPlayerVocationName(cid)..".")
	end
	if getPlayerVocation(cid) == 2 then
		doPlayerAddItem(cid, 2518, 1)--Beholder Shield
		doPlayerAddItem(cid, 8820, 1)--Mage hat
		doPlayerAddItem(cid, 8819, 1)--Magician's robe
		doPlayerAddItem(cid, 2478, 1)--Brass Legs
		doPlayerAddItem(cid, 2643, 1)--Leather Boots
		local container = doPlayerAddItem(cid, 2000, 1)
		doAddContainerItem(container, 2182, 1)--Snakekbite Rod
		doAddContainerItem(container, 2175, 1)--Spell Book
		doAddContainerItem(container, 2671, 3)--Ham
		doAddContainerItem(container, 2120, 1)--Rope
		doAddContainerItem(container, 2160, 1)--Crystal Coin
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." ahora tienes los primeros items de "..getPlayerVocationName(cid)..".")
	end
	if getPlayerVocation(cid) == 3 then
		doPlayerAddItem(cid, 2518, 1)--Beholder Shield
		doPlayerAddItem(cid, 2457, 1)--Steel Helmet
		doPlayerAddItem(cid, 2465, 1)--Brass Armor
		doPlayerAddItem(cid, 2478, 1)--Brass Legs
		doPlayerAddItem(cid, 2643, 1)--Leather Boots
		local container = doPlayerAddItem(cid, 2000, 1)
		doAddContainerItem(container, 8602, 1)--Jagged Sword
		doAddContainerItem(container, 2389, 2)--Spear
		doAddContainerItem(container, 2456, 1)--Bow
		doAddContainerItem(container, 2671, 3)--Ham
		doAddContainerItem(container, 2120, 1)--Rope
		doAddContainerItem(container, 2160, 1)--Crystal Coin
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." ahora tienes los primeros items de "..getPlayerVocationName(cid)..".")
	end
	if getPlayerVocation(cid) == 4 then
		doPlayerAddItem(cid, 2518, 1)--Beholder Shield
		doPlayerAddItem(cid, 2457, 1)--Steel Helmet
		doPlayerAddItem(cid, 2465, 1)--Brass Armor
		doPlayerAddItem(cid, 2478, 1)--Brass Legs
		doPlayerAddItem(cid, 2643, 1)--Leather Boots
		local container = doPlayerAddItem(cid, 2000, 1)
		doAddContainerItem(container, 8602, 1)--Jagged Sword
		doAddContainerItem(container, 2439, 1)--Daramanian mace
		doAddContainerItem(container, 8601, 1)--Steel Axe
		doAddContainerItem(container, 2671, 3)--Ham
		doAddContainerItem(container, 2120, 1)--Rope
		doAddContainerItem(container, 2160, 1)--Crystal Coin
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." ahora tienes los primeros items de "..getPlayerVocationName(cid)..".")
	end
		setPlayerStorageValue(cid, 40045, 1)
	end
return true
end

Or use this ...
Code:
local commonItems = {
-- ITEMS ALL VOCS RECEIVE
	{itemid=2478, count=1}, -- brass legs
	{itemid=2643, count=1}, -- leather boots
	{itemid=2518, count=1}, -- beholder shield
	{itemid=2120, count=1}, -- rope
	{itemid=2160, count=1}, -- crystal coin
	{itemid=5710, count=1} -- shovel
}

local firstItems = {
	{ -- SORC ITEMS
	{itemid=2190, count=1}, -- wand of vortex
	{itemid=8819, count=1}, -- magician robe
	{itemid=8820, count=1}, -- mage hat
	{itemid=2175, count=1} -- spellbook
},
	{ -- DRUID ITEMS
	{itemid=2182, count=1}, -- snakebite rod
	{itemid=8819, count=1}, -- magician robe
	{itemid=8820, count=1}, -- mage hat
	{itemid=2175, count=1} -- spellbook
},
	{ -- PALADIN ITEMS
	{itemid=2457, count=1}, -- steel helmet
	{itemid=2465, count=1}, -- brass armor
	{itemid=2456, count=1}, -- bow
	{itemid=8602, count=1}, -- jagged sword
	{itemid=2389, count=2} -- 2 spear
},
	{ -- KNIGHT ITEMS
	{itemid=2457, count=1}, -- steel helmet
	{itemid=2465, count=1}, -- brass armor
	{itemid=8602, count=1}, -- jagged sword
	{itemid=2439, count=1}, -- daramanian mace
	{itemid=8601, count=1} -- steel axe
}
}

for _, items in ipairs(firstItems) do
  for _, item in ipairs(commonItems) do
    table.insert(items, item)
  end
end

function onLogin(cid)
	if getPlayerGroupId(cid) < 2 then
	local hasReceivedFirstItems = getPlayerStorageValue(cid, 40045)

	if hasReceivedFirstItems ~= 1 then
	--[[local backpack = ]]doPlayerAddItem(cid, 1988, 1)
	
	local giveItems = firstItems[getPlayerVocation(cid)]
	if giveItems ~= nil then
		for _, v in ipairs(giveItems) do
		--doAddContainerItem(backpack, v.itemid, v.count or 1)
		doPlayerAddItem(cid, v.itemid, v.count or 1)
	end
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have recieved your first items!")
		end
	setPlayerStorageValue(cid, 40045, 1)
	end
end
return true
end
 
Last edited:
Back
Top Bottom