Ir para conteúdo

Featured Replies

  • 2 weeks later...
  • Respostas 11
  • Visualizações 1.5k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

Postado
Em 31/01/2017 ás 16:19, Saymon Kopolsky disse:

Sim, mas não vai vender pra baitola.

 

 

oraclepacocanaoprabaitola.lua

 

Spoiler

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

local vocation = {}
local town = {}
local destination = {}

function onCreatureAppear(cid)              npcHandler:onCreatureAppear(cid)            end
function onCreatureDisappear(cid)           npcHandler:onCreatureDisappear(cid)         end
function onCreatureSay(cid, type, msg)      npcHandler:onCreatureSay(cid, type, msg)    end
function onThink()                          npcHandler:onThink()                        end

local function greetCallback(cid)
	local player = Player(cid)
	local level = player:getLevel()
	if level < 8 then
		npcHandler:say("SAIA DAQUI SEU MERDA NAO TEM NEM LVL!", cid)
		return false
	elseif player:getSex()  == 1 then
		npcHandler:say("NAO NEGOCIO COM MULIERES!", cid)
		return false
	end
	return true
end

local function creatureSayCallback(cid, type, msg)
	if not npcHandler:isFocused(cid) then
		return false
	end

	if msgcontains(msg, "yes") and npcHandler.topic[cid] == 0 then
		npcHandler:say("VOCE QUER COMPRA {PACOCA}?", cid)
		npcHandler.topic[cid] = 1
	elseif npcHandler.topic[cid] == 1 then
		if msgcontains(msg, "PACOCA") then
			town[cid] = 2 
			destination[cid] = Position(159, 387, 6)
			npcHandler:say("LEGAL MAS EU NAO VENDO PRA BAITOLAS, VOCE E {BAITOLA}, {SIM} OU {NAO}?", cid)
			npcHandler.topic[cid] = 2
		else
			npcHandler:say("VOCE QUER COMPRA {PACOCA} OU NAO SEU CORNO", cid)
		end
	elseif npcHandler.topic[cid] == 2 then
		if msgcontains(msg, "SIM") then
			npcHandler:say("VOCE NAO PODE COMPRAR PACOCAS VOLTE AMANHA", cid)
			npcHandler.topic[cid] = 3
			vocation[cid] = 1
		elseif msgcontains(msg, "NAO") then
			npcHandler:say("AS QUER MESMO UMA PACOCA?", cid)
			npcHandler.topic[cid] = 3
			vocation[cid] = 2
		else
			npcHandler:say("vai querer a {pacoca} ou nao seu filho de uma puta aidetica do caralho?", cid)
		end
	elseif npcHandler.topic[cid] == 3 then
		if msgcontains(msg, "yes") then
			local player = Player(cid)
			npcHandler:say("ah q se foda ja comi mesmo", cid)
			
		else
			npcHandler:say("vai querer a {pacoca} ou nao seu filho de uma puta aidetica do caralho?", cid)
			npcHandler.topic[cid] = 2
		end
	end
	return true
end

local function onAddFocus(cid)
	town[cid] = 0
	vocation[cid] = 0
	destination[cid] = 0
end

local function onReleaseFocus(cid)
	town[cid] = nil
	vocation[cid] = nil
	destination[cid] = nil
end

npcHandler:setCallback(CALLBACK_ONADDFOCUS, onAddFocus)
npcHandler:setCallback(CALLBACK_ONRELEASEFOCUS, onReleaseFocus)

npcHandler:setCallback(CALLBACK_GREET, greetCallback)
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

 

 

Editado por rogaforyn2 (veja o histórico de edições)

Life is so meaningless, there is nothing worth a smile
So goodbye, I'll miss you

 

 

sugestões?

 

 

Postado
  • Autor
Em 15/03/2017 ás 13:49, rogaforyn2 disse:

Qual o client

Opa, não tinha visto seu comentário, é 8.6

 

 

---

 

 

Gostaria de agradecer aos usuários  @carlinhosvrb e @Forgiven2012 por ajudarem com o mapa do projeto.

 

 

Quem quiser ver mais imagens do servidor, entre no tópico show off na seção mapping.

 

vlw icon_cool.gificon_cool.gificon_cool.gif

https://www.youtube.com/SaymonKopolsky

 

589f09a9e1af9_SemTtulo-1.png.ddf1b437984d72bd5d4124b7e90762fa.png

https://www.youtube.com/SaymonKopolsky

 

 

 

Easy Mapper Map Editor 8.60: Clique aqui

[8.60] BeastXHunter: Clique aqui

 

5494899_orig.gif

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.7k

Informação Importante

Confirmação de Termo