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

Tibia 8.6 start eq help!

vikkevikz

New Member
Joined
Nov 14, 2011
Messages
51
Reaction score
0
Hello!

I got an Tibia 8.6 server ( tfs ). I dont use website as Account Creation, I use ingame Account Manager (1/1).

But the problem is, after you have made an account and a character and logging in to it. There is no EQ!

Okey fine, no EQ what the problem then? Make starting zone with chests?
And I did! So.. I made a starting zone.


Look at this Picture and see if you know the problem!
hjalpmig.jpg


Okey, what I want for help is: I want to make all new characters get an Backpack as a starting items! Please help me out asap!

Regard, Vikke!
 
rep++ if helped!

Or just try to add this in creaturescripts and then in scripts and create a new .lua called "firstitems"
Then add this
Lua:
registerCreatureEvent(cid, "firstitems")
in "login.lua"
and then add this the creaturescripts.xml

XML:
	<event type="login" name="FirstItems" event="script" value="firstitems.lua"/>

Lua:
function onLogin(cid)
	if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then
		if isSorcerer(cid) then
			local bag = doPlayerAddItem(cid, 9774, 1)
	
			doAddContainerItem(bag, 2120, 1)
			doAddContainerItem(bag, 2554, 1)
			doAddContainerItem(bag, 2152, 20)
		
			doPlayerAddItem(cid, 2525, 1)
			doPlayerAddItem(cid, 2190, 1)
			doPlayerAddItem(cid, 2463, 1)
			doPlayerAddItem(cid, 2457, 1)
			doPlayerAddItem(cid, 2647, 1)
			doPlayerAddItem(cid, 2643, 1)

		setPlayerStorageValue(cid, 50000, 1)

		elseif isDruid(cid) then
			local bag = doPlayerAddItem(cid, 9774, 1)
			doAddContainerItem(bag, 2120, 1)
			doAddContainerItem(bag, 2554, 1)
			doAddContainerItem(bag, 2152, 20)
		
			doPlayerAddItem(cid, 2525, 1)
			doPlayerAddItem(cid, 2182, 1)
			doPlayerAddItem(cid, 2463, 1)
			doPlayerAddItem(cid, 2457, 1)
			doPlayerAddItem(cid, 2647, 1)
			doPlayerAddItem(cid, 2643, 1)

			setPlayerStorageValue(cid, 50000, 1)

		elseif isPaladin(cid) then
			local bag = doPlayerAddItem(cid, 9774, 1)
			doAddContainerItem(bag, 2120, 1)
			doAddContainerItem(bag, 2554, 1)
			doAddContainerItem(bag, 2152, 20)
		
			doPlayerAddItem(cid, 2389, 3)
			doPlayerAddItem(cid, 2525, 1)
			doPlayerAddItem(cid, 2457, 1)
			doPlayerAddItem(cid, 2643, 1)
			doPlayerAddItem(cid, 2647, 1)
                  doPlayerAddItem(cid, 2463, 1)
			setPlayerStorageValue(cid, 50000, 1)

		elseif isKnight(cid) then
			local bag = doPlayerAddItem(cid, 9774, 1)
			doAddContainerItem(bag, 2120, 1)
			doAddContainerItem(bag, 2554, 1)
			doAddContainerItem(bag, 2152, 20)
			doAddContainerItem(bag, 8601, 1)
		
	            doPlayerAddItem(cid, 2525, 1)
			doPlayerAddItem(cid, 2463, 1)
			doPlayerAddItem(cid, 2457, 1)
			doPlayerAddItem(cid, 2647, 1)
			doPlayerAddItem(cid, 2643, 1)

			setPlayerStorageValue(cid, 50000, 1)
		end
	end
 	return TRUE
end
 
Last edited:
rep++ if helped!

Or just try to add this in creaturescripts and then in scripts and create a new .lua called "firstitems"
Then add this
Lua:
registerCreatureEvent(cid, "firstitems")
in "login.lua"
and then add this the creaturescripts.xml

XML:
	<event type="login" name="FirstItems" event="script" value="firstitems.lua"/>

Lua:
function onLogin(cid)
	if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then
		if isSorcerer(cid) then
			local bag = doPlayerAddItem(cid, 9774, 1)
	
			doAddContainerItem(bag, 2120, 1)
			doAddContainerItem(bag, 2554, 1)
			doAddContainerItem(bag, 2152, 20)
		
			doPlayerAddItem(cid, 2525, 1)
			doPlayerAddItem(cid, 2190, 1)
			doPlayerAddItem(cid, 2463, 1)
			doPlayerAddItem(cid, 2457, 1)
			doPlayerAddItem(cid, 2647, 1)
			doPlayerAddItem(cid, 2643, 1)

		setPlayerStorageValue(cid, 50000, 1)

		elseif isDruid(cid) then
			local bag = doPlayerAddItem(cid, 9774, 1)
			doAddContainerItem(bag, 2120, 1)
			doAddContainerItem(bag, 2554, 1)
			doAddContainerItem(bag, 2152, 20)
		
			doPlayerAddItem(cid, 2525, 1)
			doPlayerAddItem(cid, 2182, 1)
			doPlayerAddItem(cid, 2463, 1)
			doPlayerAddItem(cid, 2457, 1)
			doPlayerAddItem(cid, 2647, 1)
			doPlayerAddItem(cid, 2643, 1)

			setPlayerStorageValue(cid, 50000, 1)

		elseif isPaladin(cid) then
			local bag = doPlayerAddItem(cid, 9774, 1)
			doAddContainerItem(bag, 2120, 1)
			doAddContainerItem(bag, 2554, 1)
			doAddContainerItem(bag, 2152, 20)
		
			doPlayerAddItem(cid, 2389, 3)
			doPlayerAddItem(cid, 2525, 1)
			doPlayerAddItem(cid, 2457, 1)
			doPlayerAddItem(cid, 2643, 1)
			doPlayerAddItem(cid, 2647, 1)
                  doPlayerAddItem(cid, 2463, 1)
			setPlayerStorageValue(cid, 50000, 1)

		elseif isKnight(cid) then
			local bag = doPlayerAddItem(cid, 9774, 1)
			doAddContainerItem(bag, 2120, 1)
			doAddContainerItem(bag, 2554, 1)
			doAddContainerItem(bag, 2152, 20)
			doAddContainerItem(bag, 8601, 1)
		
	            doPlayerAddItem(cid, 2525, 1)
			doPlayerAddItem(cid, 2463, 1)
			doPlayerAddItem(cid, 2457, 1)
			doPlayerAddItem(cid, 2647, 1)
			doPlayerAddItem(cid, 2643, 1)

			setPlayerStorageValue(cid, 50000, 1)
		end
	end
 	return TRUE
end

Nope, dont work! :( I just want to add an backpack, then they can walk to the start zone! Do you guys know any script so when they press at a chest with a backpack inside, the backpack will go to the backpack slot?
 
There is a bug in your distro, so it just doesn't work. And since you probable going to use the additem function more in your ot, I advice you to just download an other one, unless you know how to compile.
 
Back
Top