Ir para conteúdo

Featured Replies

Postado

Também não intendo de NPC, mas teste assim:

function creatureSayCallback(cid, type, msg)
	if(npcHandler.focus ~= cid) then
		return false
	end
	
	if msgcontains(msg, 'mission') then
	talk_state = 1
		if getPlayerStorageValue(cid, 47999) == 1 then
		npcHandler:say('Thank you in advance! Well I need you to bring me 3 pieces so that I can fix the electric starting... Well, the items are: (parafuse of adamantium), (motorcycle manual), (special toolbox). Back here, when you found this.')
		doSendMagicEffect(getThingPos(cid),10)
		doPlayerSendTextMessage(cid, TALKTYPE_ORANGE, "You started now, Dead'cycle quest. Good luck!")
		doPlayerSendTextMessage(cid, TALKTYPE_ORANGE, "You can use the command: !deadcycle quest, if you forget what items you need found!")
		setPlayerStorageValue(cid, 47999, -1)
		talk_state = 1
		elseif talk_state == 1 and msgcontains(msg, 'mission') and getPlayerStorageValue(cid, 47999) == -1 then
		npcHandler:say('Amazing! You already have the pieces?!', 1)
		talk_state = 2
		elseif talk_state == 2 and msgcontains(msg, 'yes') then
		npcHandler:say('Its so amazing!', 1)
		talk_state = 0
		end
		
	return false
	end
	return true	
end	

 

Te ajudei? Clique em  Gostei ! 

²²²d¬¬b²²²

 

 

"She's got a smile that it seems to me...."  ♪♪

Postado
  • Autor
1 hora atrás, luangop disse:

Também não intendo de NPC, mas teste assim:


function creatureSayCallback(cid, type, msg)
	if(npcHandler.focus ~= cid) then
		return false
	end
	
	if msgcontains(msg, 'mission') then
	talk_state = 1
		if getPlayerStorageValue(cid, 47999) == 1 then
		npcHandler:say('Thank you in advance! Well I need you to bring me 3 pieces so that I can fix the electric starting... Well, the items are: (parafuse of adamantium), (motorcycle manual), (special toolbox). Back here, when you found this.')
		doSendMagicEffect(getThingPos(cid),10)
		doPlayerSendTextMessage(cid, TALKTYPE_ORANGE, "You started now, Dead'cycle quest. Good luck!")
		doPlayerSendTextMessage(cid, TALKTYPE_ORANGE, "You can use the command: !deadcycle quest, if you forget what items you need found!")
		setPlayerStorageValue(cid, 47999, -1)
		talk_state = 1
		elseif talk_state == 1 and msgcontains(msg, 'mission') and getPlayerStorageValue(cid, 47999) == -1 then
		npcHandler:say('Amazing! You already have the pieces?!', 1)
		talk_state = 2
		elseif talk_state == 2 and msgcontains(msg, 'yes') then
		npcHandler:say('Its so amazing!', 1)
		talk_state = 0
		end
		
	return false
	end
	return true	
end	

 

Ohhh!

eu já fixei esse erro, mas obrigado! <(“)

 

@This life is filled with hurt

When happiness doesn't work

Trust me and take my hand

When the lights go out you will understand

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo