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

My Server

anubis131

New Member
Joined
Nov 4, 2009
Messages
117
Reaction score
0
Location
england
Hello i need help with some stuff for my server

World ID = 0 But i want it to World ID = 1 i have id = 1 in config but when people create characters they cant log in them

other problem

people start with nothing :/ and I don't know how to change that if anyone can help do i have to do summot on database? or stuff in actions

( not second post ) bumped my last thread.. didn't mean to
 
this is for ur second problem

add this in creaturescripts/firstitems.lua

Lua:
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)--Backpack
		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, 5)--Crystal Coin
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." now you have the first items of "..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)--Backpack
		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, 5)--Crystal Coin
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." now you have the first items of "..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)--Backpack
		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, 5)--Crystal Coin
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." now you have the first items of "..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)--Backpack
		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, 5)--Crystal Coin
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." now you have the first items of "..getPlayerVocationName(cid)..".")
	end
		setPlayerStorageValue(cid, 40045, 1)
	end
return true
end
 
Make sure that when they create their chars, they have more than 0 cap. It might get set up wrong in the database when people create chars, it starts them with 0 cap therefore all the items they should start with will be on the floors. I am not sure if thats the case but thats all I can think of at the moment.


Edit: And please don't make 2 posts about the same issue...

http://otland.net/f16/characters-world-142205/
 
Back
Top