• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Acc Manager where change start eq?

Nux

Yzeria Custom War
Joined
Jan 2, 2009
Messages
1,067
Reaction score
1
Well guys where do i change the start equipment when thay make an account with an account manager.. for example when thay create an account with the account manager and thay take paladin as example.. and the paladin starts with a crossbow.. inf bolts.. golden legs etc.. how do I change the start eq in an account manager`?
 
data/creaturescripts/scripts/firstitems.lua

Here's a pretty good script, it's eq for all vocations at level 8:
LUA:
function onLogin(cid)
	if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then
		if isSorcerer(cid) then
			local bag = doPlayerAddItem(cid, 1988, 1)
	
			doAddContainerItem(bag, 2120, 1)
			doAddContainerItem(bag, 2554, 1)
			doAddContainerItem(bag, 2152, 2)
		
			doPlayerAddItem(cid, 2175, 1)
			doPlayerAddItem(cid, 2190, 1)
			doPlayerAddItem(cid, 8819, 1)
			doPlayerAddItem(cid, 8820, 1)
			doPlayerAddItem(cid, 2468, 1)
			doPlayerAddItem(cid, 2643, 1)

		setPlayerStorageValue(cid, 50000, 1)

		elseif isDruid(cid) then
			local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2120, 1)
			doAddContainerItem(bag, 2554, 1)
			doAddContainerItem(bag, 2152, 2)
		
			doPlayerAddItem(cid, 2175, 1)
			doPlayerAddItem(cid, 2182, 1)
			doPlayerAddItem(cid, 8819, 1)
			doPlayerAddItem(cid, 8820, 1)
			doPlayerAddItem(cid, 2468, 1)
			doPlayerAddItem(cid, 2643, 1)

			setPlayerStorageValue(cid, 50000, 1)

		elseif isPaladin(cid) then
			local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2120, 1)
			doAddContainerItem(bag, 2554, 1)
			doAddContainerItem(bag, 2152, 2)
		
			doPlayerAddItem(cid, 2456, 1)
			doPlayerAddItem(cid, 2544, 100)
			doPlayerAddItem(cid, 2660, 1)
			doPlayerAddItem(cid, 2480, 1)
			doPlayerAddItem(cid, 8923, 1)
			doPlayerAddItem(cid, 2643, 1)

			setPlayerStorageValue(cid, 50000, 1)

		elseif isKnight(cid) then
			local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2120, 1)
			doAddContainerItem(bag, 2554, 1)
			doAddContainerItem(bag, 2152, 2)
			doAddContainerItem(bag, 2439, 1)
			doAddContainerItem(bag, 8601, 1)
		
			doPlayerAddItem(cid, 2509, 1)
			doPlayerAddItem(cid, 8602, 1)
			doPlayerAddItem(cid, 2465, 1)
			doPlayerAddItem(cid, 2481, 1)
			doPlayerAddItem(cid, 2478, 1)
			doPlayerAddItem(cid, 2643, 1)

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

Just add cash if you want them to start with money, rep if I helped ya :D
/Limannen
 
That script will work if you can figure out how to stop the players from getting items in the first place when they create their character. Could you tell us which ACC you are using so we can tell you where the starting items are located?

Normally they are located in the config for your ACC..

-Zeke
 
Oh.

Unless I am mistaken there is no way with TFS (Which I am assuming you are using) to change the players starting items based on their vocation. I think the way it works is that when you create a new character it makes a copy of the account manager in the database and just changes the vital information. If you want everyone to start with a certain something you just have to add that item to the account manager but again, someone correct me if I am wrong.. there is no way to change items based on vocations.

Few things you could to instead of changing the account manager
- The script that was posted above works very niceley but requires players to say the command when they first log in.
- Multiple Chests like they do in actual tibia where you enter a room for your vocation and then recieve their items
- Make a movement script that when you walk on a certain floor tile (Say a row of floor tiles out of the temple in your rookguard) it would give certain items based on their voc.

Hope this helps.
-Zeke
 
The latest versions come with a firstitems.xml mod if I remember correctly.
If you want to use that creaturescript, disable the mod.
Or you can just edit the mod however you like.
 
Back
Top