• 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 rune-npc won't sell with backpacks!

Johnwayne

New Member
Joined
Feb 9, 2009
Messages
33
Reaction score
0
Hello!

I need some quick help please;

My runesellers won't sell runes/potions with backpacks(ofcourse i choose "buy with backpacks")!

If someone could direct me to the right place i would be very happy!

Also i would like to know how to place items in a new players inventory, especially how to put items in a container (backpack, bag etc)

im using 8.31 Sql tfs 0.2.0 or something

Thanks in advance!
 
The backpack thing, I dont know.
But the starting player thingy.
Here.
In data/creaturescripts/scripts/firstitems.lua

Fill in the items you want.
Pretty self explanatory where the items in the backpack are :p
local bag = doPlayerAddItem(cid, 1988[The Bag ID], 1)
Code:
local firstItems =
{
	2173,
	2491,
	2476,
	2160,
	2536,
	2477,
	2544,
	2195
}

function onLogin(cid)
	if getPlayerStorageValue(cid, 30001) == -1 then
		for i = 1, table.maxn(firstItems) do
			doPlayerAddItem(cid, firstItems[i], 1)
		end

		local bag = doPlayerAddItem(cid, 1988, 1)
		doAddContainerItem(bag, 2554, 1)
		doAddContainerItem(bag, 2120, 1)
		doAddContainerItem(bag, 2182, 1)
		doAddContainerItem(bag, 2456, 1)
		doAddContainerItem(bag, 2190, 1)
		doAddContainerItem(bag, 2182, 1)
		doAddContainerItem(bag, 2392, 1)
		setPlayerStorageValue(cid, 30001, 1)
	end
 	return TRUE
end
 
Back
Top