Ir para conteúdo
  • 0
Entre para seguir isso  
AND3RSONREMIX

Scripting BUG - Player nasce sem itens mesmo com o script no creaturescripts

Pergunta

AND3RSONREMIX    0
AND3RSONREMIX

Pessoal coloquei um ot online e uns amigos fizeram suas contas e vieram sem nenhum item mesmo com o script no creaturescripts funcionando mas depois nao funciona mais o que faço ?

alguem tem o script de quest com os itens iniciais ? ja que nao ta dando certo

Editado por AND3RSONREMIX

Compartilhar este post


Link para o post
Compartilhar em outros sites

5 respostass a esta questão

Recommended Posts

  • 0
AND3RSONREMIX    0
AND3RSONREMIX

Recomendo que leia este tópico: http://forums.otserv.com.br/index.php/topic/165121-como-fazer-uma-pergunta-ou-o-grande-guia-do-usu%C3%A1rio-com-d%C3%BAvidas/

 

Favor postar o OTServ que utiliza, versão, script, etc. 

Versão 8.6 -

otserv é esse aqui : http://forums.otserv.com.br/index.php/topic/166555-860-new-4fun-server/

 

Compartilhar este post


Link para o post
Compartilhar em outros sites
  • 0
Majesty    1755
Majesty

O script referente ao itens iniciais é o firstitems.lua:

local firstItems =
{
	2460,
	2465,
	2531,
	2554,
	2120,
	2643,
	2478,
	2173
}

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)
		local voca = getPlayerVocation(cid)

		if voca == 1 then
		doPlayerAddItem(cid, 2190, 1)
		doAddContainerItem(bag, 7620, 1)
		doPlayerAddItem(cid, 2160, 1)
		doPlayerAddItem(cid, 2789, 20)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Use o comando !info para saber mais sobre o servidor.')

		elseif voca == 2 then
		doPlayerAddItem(cid, 2182, 1)
		doAddContainerItem(bag, 7620, 1)
		doPlayerAddItem(cid, 2160, 1)
		doPlayerAddItem(cid, 2789, 20)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Use o comando !info para saber mais sobre o servidor.')

		elseif voca == 3 then
		doPlayerAddItem(cid, 2389, 1)
		doAddContainerItem(bag, 7618, 1)
		doPlayerAddItem(cid, 2160, 1)
		doPlayerAddItem(cid, 2789, 20)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Use o comando !info para saber mais sobre o servidor.')

		elseif voca == 4 then
		doPlayerAddItem(cid, 8602, 1)
		doPlayerAddItem(cid, 8601, 1)
		doAddContainerItem(bag, 7618, 1)
		doPlayerAddItem(cid, 2160, 1)
		doPlayerAddItem(cid, 2789, 20)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Use o comando !info para saber mais sobre o servidor.')

		end
		
		setPlayerStorageValue(cid, 30001, 1)

	end
 	return TRUE
end

Você coloca as IDs dos itens para cada vocação e mesmo assim não aparecem?

Compartilhar este post


Link para o post
Compartilhar em outros sites
  • 0
AND3RSONREMIX    0
AND3RSONREMIX

O script referente ao itens iniciais é o firstitems.lua:

local firstItems =
{
	2460,
	2465,
	2531,
	2554,
	2120,
	2643,
	2478,
	2173
}

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)
		local voca = getPlayerVocation(cid)

		if voca == 1 then
		doPlayerAddItem(cid, 2190, 1)
		doAddContainerItem(bag, 7620, 1)
		doPlayerAddItem(cid, 2160, 1)
		doPlayerAddItem(cid, 2789, 20)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Use o comando !info para saber mais sobre o servidor.')

		elseif voca == 2 then
		doPlayerAddItem(cid, 2182, 1)
		doAddContainerItem(bag, 7620, 1)
		doPlayerAddItem(cid, 2160, 1)
		doPlayerAddItem(cid, 2789, 20)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Use o comando !info para saber mais sobre o servidor.')

		elseif voca == 3 then
		doPlayerAddItem(cid, 2389, 1)
		doAddContainerItem(bag, 7618, 1)
		doPlayerAddItem(cid, 2160, 1)
		doPlayerAddItem(cid, 2789, 20)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Use o comando !info para saber mais sobre o servidor.')

		elseif voca == 4 then
		doPlayerAddItem(cid, 8602, 1)
		doPlayerAddItem(cid, 8601, 1)
		doAddContainerItem(bag, 7618, 1)
		doPlayerAddItem(cid, 2160, 1)
		doPlayerAddItem(cid, 2789, 20)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Use o comando !info para saber mais sobre o servidor.')

		end
		
		setPlayerStorageValue(cid, 30001, 1)

	end
 	return TRUE
end

Você coloca as IDs dos itens para cada vocação e mesmo assim não aparecem?

 

 

o que uso é esse modelo :

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, 2173, 1)
doAddContainerItem(bag, 2160, 1)


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, 2173, 1)
doAddContainerItem(bag, 2160, 1)


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, 2173, 1)
doAddContainerItem(bag, 2160, 1)


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, 2173, 1)
doAddContainerItem(bag, 2160, 1)
doAddContainerItem(bag, 8601, 1)
doAddContainerItem(bag, 2383, 1)
doAddContainerItem(bag, 2417, 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

Compartilhar este post


Link para o post
Compartilhar em outros sites
Visitante
Este tópico está impedido de receber novos posts.
Entre para seguir isso  

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×