PS

Sem Eqps

Por Psyco, 25 de mai. de 2010 em Archived

3
478
PsycoP
25 de maio de 2010 às 02:23

Quando crio char eles vem sem eqps.. como faço para arrumar isso ?

Henrique MouraH
27 de maio de 2010 às 06:37

Movido para Dúvidas sobre Scripts

matheus1000M
27 de maio de 2010 às 08:15

Vá em data/creaturescripts/scripts/firstitems e terá um script assim ( ou parecido ):

 

local firstItems =
{
2173,
2525,
          2399,
          2124,
          2457,
          2647,
          2643
}

function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
	for i = 1, table.maxn(firstItems) do
		doPlayerAddItem(cid, firstItems[i], 1)
	end
	if getPlayerSex(cid) == 0 then
		doPlayerAddItem(cid, 2463, 1)
	else
		doPlayerAddItem(cid, 2463, 1)
	end
	local bag = doPlayerAddItem(cid, 7342, 1)
	doAddContainerItem(bag, 2160, 3)
	doAddContainerItem(bag, 2554, 1)
	doAddContainerItem(bag, 2120, 1)
	doAddContainerItem(bag, 2190, 1)
	doAddContainerItem(bag, 2182, 1)
	doAddContainerItem(bag, 2428, 1)
	doAddContainerItem(bag, 2383, 1)
	doAddContainerItem(bag, 2394, 1)
	setPlayerStorageValue(cid, 30001, 1)
end
	return TRUE
end

 

Então é só você editar os items para qual você quizer.

 

Espero ter ajudado