Ir para conteúdo
  • Cadastre-se

11.x [WIP] OTXServer 12.31 Global Full + Kilmaresh (Issavi) + BESTIARY - QUICKLOOT


Posts Recomendados

@malucooo

I get "Segmentation fault (core dumped)" with expert PVP, anybody have this crash too?,

 

I dont know how reproduce it, because is random...

 

Editado por darkjav (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • Respostas 5k
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

OTXServer Global Full Kilmaresh by Malucooo   [CLIENTS COMPATÍVEIS]   http://www.gitlab.com/guilhermesidney/cliente10/   [DOWNLOAD] BAIXEM EM: https://github.com/malucooo

Adicionado Imbuing System, Inspection System por Charles (Eternal-Scripts) Corrigido e atualizado Prey System por Charles (Eternal-Scripts)   Obrigado pela colaboração, acredito que no

Atualizações de Médio Porte:   - Items.otb 11.31 (adicionado os novos barris de potion e mais uns 700 items adicionado..) - Client 10 Atualizado - Adicionado a categoria carpet...

Posted Images

1 hora atrás, DevMorgan disse:

Bug Escada que não sobe
Bug Bueiro Desce e fica preso

 

Cordenadas nas prints ~~

a1.png

a2.png

 

Krailos né?

AQUI VAI A SOLUÇÃO PARA QUEM ESTÁ COM BUG NA GREAT FIREBALL RUNE:

Spoiler

local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
combat:setArea(createCombatArea(AREA_CIRCLE3X3))

function onGetFormulaValues(player, level, maglevel)
    local min = (level / 5) + (maglevel * 1.2) + 7
    local max = (level / 5) + (maglevel * 2.85) + 16
    return -min, -max
end

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(creature, var, isHotkey)
    return combat:execute(creature, var)
end
 

 

Link para o post
Compartilhar em outros sites

O que acham então de contribuirmos todos com o projeto? Vamos juntos nessa acabar com esse negocio de vendas de otserv! Usem a hashtag #AquiVai. Começarei então agora!

 

#AquiVai o NPC Yana que fiz, não tem chance de falha mas posso colocar isso futuramente, enfim, está idêntico ao global, só configurar os items do ot de vocês!

 

Spoiler

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

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 IdToken = 25377 -- Configurar id do token
local items = {
	["mayhem"] = {
		["wand"] = {itemId = 26261, tokens_cost = 50, charged = 26271, heavycharged = 26281, overcharged = 26291},
		["rod"] = {itemId = 26262, tokens_cost = 50, charged = 26272, heavycharged = 26282, overcharged = 26292},
		["sword"] = {itemId = 26253, tokens_cost = 50, charged = 26263, heavycharged = 26273, overcharged = 26283},
		["slayer"] = {itemId = 26254, tokens_cost = 50, charged = 26264, heavycharged = 26274, overcharged = 26284},
		["axe"] = {itemId = 26255, tokens_cost = 50, charged = 26265, heavycharged = 26275, overcharged = 26285},
		["chopper"] = {itemId = 26256, tokens_cost = 50, charged = 26266, heavycharged = 26276, overcharged = 26286},
		["club"] = {itemId = 26257, tokens_cost = 50, charged = 26267, heavycharged = 26277, overcharged = 26287},
		["hammer"] = {itemId = 26258, tokens_cost = 50, charged = 26268, heavycharged = 26278, overcharged = 26288},
		["bow"] = {itemId = 26259, tokens_cost = 50, charged = 26269, heavycharged = 26280, overcharged = 26289},
		["crossbow"] = {itemId = 26361, tokens_cost = 50, charged = 26362, heavycharged = 26363, overcharged = 26364},
	},
	["carving"] = {
		["wand"] = {itemId = 26365, tokens_cost = 50, charged = 26366, heavycharged = 26367, overcharged = 26367},
		["rod"] = {itemId = 26369, tokens_cost = 50, charged = 26370, heavycharged = 26371, overcharged = 26372},
		["sword"] = {itemId = 26333, tokens_cost = 50, charged = 26334, heavycharged = 26335, overcharged = 26336},
		["slayer"] = {itemId = 26337, tokens_cost = 50, charged = 26338, heavycharged = 26339, overcharged = 26340},
		["axe"] = {itemId = 26341, tokens_cost = 50, charged = 26342, heavycharged = 26343, overcharged = 26344},
		["chopper"] = {itemId = 26345, tokens_cost = 50, charged = 26346, heavycharged = 26347, overcharged = 26348},
		["club"] = {itemId = 26349, tokens_cost = 50, charged = 26350, heavycharged = 26351, overcharged = 26352},
		["hammer"] = {itemId = 26353, tokens_cost = 50, charged = 26354, heavycharged = 26355, overcharged = 26356},
		["bow"] = {itemId = 26357, tokens_cost = 50, charged = 26358, heavycharged = 26359, overcharged = 26360},
		["crossbow"] = {itemId = 26361, tokens_cost = 50, charged = 26362, heavycharged = 26363, overcharged = 26364},
	},
	["remedy"] = {
		["wand"] = {itemId = 26325, tokens_cost = 50, charged = 26326, heavycharged = 26327, overcharged = 26328},
		["rod"] = {itemId = 26329, tokens_cost = 50, charged = 26330, heavycharged = 26331, overcharged = 26332},
		["sword"] = {itemId = 26293, tokens_cost = 50, charged = 26294, heavycharged = 26295, overcharged = 26296},
		["slayer"] = {itemId = 26297, tokens_cost = 50, charged = 26298, heavycharged = 26299, overcharged = 26300},
		["axe"] = {itemId = 26301, tokens_cost = 50, charged = 26302, heavycharged = 26303, overcharged = 26304},
		["chopper"] = {itemId = 26305, tokens_cost = 50, charged = 26306, heavycharged = 26307, overcharged = 26308},
		["club"] = {itemId = 26309, tokens_cost = 50, charged = 26310, heavycharged = 26311, overcharged = 26312},
		["hammer"] = {itemId = 26313, tokens_cost = 50, charged = 26314, heavycharged = 26315, overcharged = 26316},
		["bow"] = {itemId = 26317, tokens_cost = 50, charged = 26318, heavycharged = 26319, overcharged = 26320},
		["crossbow"] = {itemId = 26321, tokens_cost = 50, charged = 26322, heavycharged = 26323, overcharged = 26324},	
	}
}



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

	if npcHandler.topic[cid] == 1 then
		if msgcontains(msg, "mayhem") then
			npcHandler:say("Ah, very good. I can offer you a one-handed weapon: {sword}, {axe} or {club}. You may also take a two-handed weapon: {slayer}, {chopper} or {hammer}. I also can offer you a {bow}, {crossbow}, {wand} or {rod}. Which one do you choose?", cid)
			npcHandler.topic[cid] = 2
		elseif msgcontains(msg, "carving") then
			npcHandler:say("Ah, very good. I can offer you a one-handed weapon: {sword}, {axe} or {club}. You may also take a two-handed weapon: {slayer}, {chopper} or {hammer}. I also can offer you a {bow}, {crossbow}, {wand} or {rod}. Which one do you choose?", cid)
			npcHandler.topic[cid] = 3
		elseif msgcontains(msg, "remedy") then
			npcHandler:say("Ah, very good. I can offer you a one-handed weapon: {sword}, {axe} or {club}. You may also take a two-handed weapon: {slayer}, {chopper} or {hammer}. I also can offer you a {bow}, {crossbow}, {wand} or {rod}. Which one do you choose?", cid)
			npcHandler.topic[cid] = 4
		end
	elseif npcHandler.topic[cid] == 2 then
		local itemsDisp = items["mayhem"]
		local finally = itemsDisp[msg]

		if finally then
			if player:removeItem(IdToken, finally.tokens_cost) then
				npcHandler:say("Ah, excellent. Here is your "..msg.." of mayhem.", cid)
				player:addItem(finally.itemId, 1)
				npcHandler.topic[cid] = 0
			else
				npcHandler:say("You don't have enough of tokens.", cid)
				npcHandler.topic[cid] = 0
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	elseif npcHandler.topic[cid] == 3 then
		local itemsDisp = items["carving"]
		local finally = itemsDisp[msg]

		if finally then
			if player:removeItem(IdToken, finally.tokens_cost) then
				npcHandler:say("Ah, excellent. Here is your "..msg.." of carving.", cid)
				player:addItem(finally.itemId, 1)
				npcHandler.topic[cid] = 0
			else
				npcHandler:say("You don't have enough of tokens.", cid)
				npcHandler.topic[cid] = 0
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	elseif npcHandler.topic[cid] == 4 then
		local itemsDisp = items["remedy"]
		local finally = itemsDisp[msg]

		if finally then
			if player:removeItem(IdToken, finally.tokens_cost) then
				npcHandler:say("Ah, excellent. Here is your "..msg.." of remedy.", cid)
				player:addItem(finally.itemId, 1)
				npcHandler.topic[cid] = 0
			else
				npcHandler:say("You don't have enough of tokens.", cid)
				npcHandler.topic[cid] = 0
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	elseif npcHandler.topic[cid] == 5 then
		if msgcontains(msg, "risk") then
			npcHandler:say({
				'If I overcharge your weapon, there\'s a risk that the charging doesn\'t succeed. See, the complex process of charging a weapon with this kind of {energy} is very challenging. ...',
				'It can make the weapon\'s substance very instable and in this case the charging won\'t succeed. Yet I\'d have to keep your tokens for my effort so they will be lost for you anyway. I hope you understand this. ...',
				'Of course, if it works your weapon will be remarkably more powerful for a certain time. It\'s up to you, make your choice.'
			}, cid)
		elseif msgcontains(msg, "energy") then
			npcHandler:say({
				'I\'m sorry but I won\'t reveal the exact process of charging a weapon. It\'s about keeping business secrets, you know. All I can tell you is that I use a special kind of energetic-based enchantment magic. ...',
				'It is consigned in my family for many generations. This is the reason why only special weapons, which I can offer you in exchange for {gold} tokens, can be charged with this method.'
			}, cid)
			npcHandler.topic[cid] = 0
		elseif msgcontains(msg, "mayhem") then
			npcHandler:say("As you wish. Which kind of item do you want to charge: {sword}, {axe}, {club}, {slayer}, {chopper}, {hammer}, {bow}, {crossbow}, {wand} or {rod}?", cid)
			npcHandler.topic[cid] = 6
		elseif msgcontains(msg, "carving") then
			npcHandler:say("As you wish. Which kind of item do you want to charge: {sword}, {axe}, {club}, {slayer}, {chopper}, {hammer}, {bow}, {crossbow}, {wand} or {rod}?", cid)
			npcHandler.topic[cid] = 7
		elseif msgcontains(msg, "remedy") then
			npcHandler:say("As you wish. Which kind of item do you want to charge: {sword}, {axe}, {club}, {slayer}, {chopper}, {hammer}, {bow}, {crossbow}, {wand} or {rod}?", cid)
			npcHandler.topic[cid] = 8
		end
	elseif npcHandler.topic[cid] == 6 then
		local itemsDisp = items["mayhem"]
		local finally = itemsDisp[msg]
		
		if finally then
			if player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.itemId) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.itemId, 1)
				player:addItem(finally.charged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.charged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.charged, 1)
				player:addItem(finally.heavycharged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.heavycharged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.heavycharged, 1)
				player:addItem(finally.overcharged, 1)
			else
				npcHandler:say("I'm sorry but you don't have the appropriate weapon. Come back if you're in the possession of a "..msg.." of mayhem.", cid)
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	elseif npcHandler.topic[cid] == 7 then
		local itemsDisp = items["carving"]
		local finally = itemsDisp[msg]
		
		if finally then
			if player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.itemId) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.itemId, 1)
				player:addItem(finally.charged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.charged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.charged, 1)
				player:addItem(finally.heavycharged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.heavycharged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.heavycharged, 1)
				player:addItem(finally.overcharged, 1)
			else
				npcHandler:say("I'm sorry but you don't have the appropriate weapon. Come back if you're in the possession of a "..msg.." of carving.", cid)
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	elseif npcHandler.topic[cid] == 8 then
		local itemsDisp = items["remedy"]
		local finally = itemsDisp[msg]
		
		if finally then
			if player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.itemId) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.itemId, 1)
				player:addItem(finally.charged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.charged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.charged, 1)
				player:addItem(finally.heavycharged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.heavycharged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.heavycharged, 1)
				player:addItem(finally.overcharged, 1)
			else
				npcHandler:say("I'm sorry but you don't have the appropriate weapon. Come back if you're in the possession of a "..msg.." of remedy.", cid)
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	end

	if msgcontains(msg, "information") then
			npcHandler:say({
				'{Token}s are small objects made of metal or other materials. You can use them to buy superior equipment from {token} traders like me. ...',
				'There are several ways to obtain the tokens Im interested in - killing certain bosses, for example. In exchange for a certain amount of tokens, I can offer you some first-class items. ...'
			}, cid)
	elseif msgcontains(msg, "token") then
				npcHandler:say("If you have any {gold} tokens with you, let's have a look! Maybe I can offer you something in exchange.", cid)
	elseif msgcontains(msg, "gold") then
			npcHandler:say({
				'Here\'s the deal, Jess Leewyn. For 50 of your gold tokens, I can offer you some special equipment pieces which you can {charge} with a certain item type. I have the following item types to offer: {mayhem}, {remedy} or {carving}. ...',
				'I may also give you a short {description} what these labels mean. So, which item type are you most interested in?'
			}, cid)
		   npcHandler.topic[cid] = 1
	elseif msgcontains(msg, "charge") then
			npcHandler:say({
				'I may charge your equipment in the exchange of {gold} tokens. This gives your weapon some temporary improvements. For five tokens you\'ll get a charged weapon and for ten tokens a heavily charged one. ...',
				'For the cost of fifteen tokens I can also overcharge your weapon but that comes with a certain {risk}. There are three equipment types I can charge: {mayhem}, {remedy} or {carving}. What kind of weapon would you like to charge?'
			}, cid)
		   npcHandler.topic[cid] = 5
	elseif msgcontains(msg, "description") then
			npcHandler:say({
				'A weapon of mayhem increases your chance to hit harder and to enhance the damage you inflict. A weapon of remedy gives you a certain chance to gain a part of a creature\'s life energy for yourself. ...',
				'And a weapon of carving does the same with a creature\'s mana.'
			}, cid)
	end
	return true
end

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

 

 

Editado por smowking (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
1 hora atrás, smowking disse:

O que acham então de contribuirmos todos com o projeto? Vamos juntos nessa acabar com esse negocio de vendas de otserv! Usem a hashtag #AquiVai. Começarei então agora!

 

#AquiVai o NPC Yana que fiz, não tem chance de falha mas posso colocar isso futuramente, enfim, está idêntico ao global, só configurar os items do ot de vocês!

 

  Ocultar conteúdo


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

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 IdToken = 25377 -- Configurar id do token
local items = {
	["mayhem"] = {
		["wand"] = {itemId = 26261, tokens_cost = 50, charged = 26271, heavycharged = 26281, overcharged = 26291},
		["rod"] = {itemId = 26262, tokens_cost = 50, charged = 26272, heavycharged = 26282, overcharged = 26292},
		["sword"] = {itemId = 26253, tokens_cost = 50, charged = 26263, heavycharged = 26273, overcharged = 26283},
		["slayer"] = {itemId = 26254, tokens_cost = 50, charged = 26264, heavycharged = 26274, overcharged = 26284},
		["axe"] = {itemId = 26255, tokens_cost = 50, charged = 26265, heavycharged = 26275, overcharged = 26285},
		["chopper"] = {itemId = 26256, tokens_cost = 50, charged = 26266, heavycharged = 26276, overcharged = 26286},
		["club"] = {itemId = 26257, tokens_cost = 50, charged = 26267, heavycharged = 26277, overcharged = 26287},
		["hammer"] = {itemId = 26258, tokens_cost = 50, charged = 26268, heavycharged = 26278, overcharged = 26288},
		["bow"] = {itemId = 26259, tokens_cost = 50, charged = 26269, heavycharged = 26280, overcharged = 26289},
		["crossbow"] = {itemId = 26361, tokens_cost = 50, charged = 26362, heavycharged = 26363, overcharged = 26364},
	},
	["carving"] = {
		["wand"] = {itemId = 26365, tokens_cost = 50, charged = 26366, heavycharged = 26367, overcharged = 26367},
		["rod"] = {itemId = 26369, tokens_cost = 50, charged = 26370, heavycharged = 26371, overcharged = 26372},
		["sword"] = {itemId = 26333, tokens_cost = 50, charged = 26334, heavycharged = 26335, overcharged = 26336},
		["slayer"] = {itemId = 26337, tokens_cost = 50, charged = 26338, heavycharged = 26339, overcharged = 26340},
		["axe"] = {itemId = 26341, tokens_cost = 50, charged = 26342, heavycharged = 26343, overcharged = 26344},
		["chopper"] = {itemId = 26345, tokens_cost = 50, charged = 26346, heavycharged = 26347, overcharged = 26348},
		["club"] = {itemId = 26349, tokens_cost = 50, charged = 26350, heavycharged = 26351, overcharged = 26352},
		["hammer"] = {itemId = 26353, tokens_cost = 50, charged = 26354, heavycharged = 26355, overcharged = 26356},
		["bow"] = {itemId = 26357, tokens_cost = 50, charged = 26358, heavycharged = 26359, overcharged = 26360},
		["crossbow"] = {itemId = 26361, tokens_cost = 50, charged = 26362, heavycharged = 26363, overcharged = 26364},
	},
	["remedy"] = {
		["wand"] = {itemId = 26325, tokens_cost = 50, charged = 26326, heavycharged = 26327, overcharged = 26328},
		["rod"] = {itemId = 26329, tokens_cost = 50, charged = 26330, heavycharged = 26331, overcharged = 26332},
		["sword"] = {itemId = 26293, tokens_cost = 50, charged = 26294, heavycharged = 26295, overcharged = 26296},
		["slayer"] = {itemId = 26297, tokens_cost = 50, charged = 26298, heavycharged = 26299, overcharged = 26300},
		["axe"] = {itemId = 26301, tokens_cost = 50, charged = 26302, heavycharged = 26303, overcharged = 26304},
		["chopper"] = {itemId = 26305, tokens_cost = 50, charged = 26306, heavycharged = 26307, overcharged = 26308},
		["club"] = {itemId = 26309, tokens_cost = 50, charged = 26310, heavycharged = 26311, overcharged = 26312},
		["hammer"] = {itemId = 26313, tokens_cost = 50, charged = 26314, heavycharged = 26315, overcharged = 26316},
		["bow"] = {itemId = 26317, tokens_cost = 50, charged = 26318, heavycharged = 26319, overcharged = 26320},
		["crossbow"] = {itemId = 26321, tokens_cost = 50, charged = 26322, heavycharged = 26323, overcharged = 26324},	
	}
}



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

	if npcHandler.topic[cid] == 1 then
		if msgcontains(msg, "mayhem") then
			npcHandler:say("Ah, very good. I can offer you a one-handed weapon: {sword}, {axe} or {club}. You may also take a two-handed weapon: {slayer}, {chopper} or {hammer}. I also can offer you a {bow}, {crossbow}, {wand} or {rod}. Which one do you choose?", cid)
			npcHandler.topic[cid] = 2
		elseif msgcontains(msg, "carving") then
			npcHandler:say("Ah, very good. I can offer you a one-handed weapon: {sword}, {axe} or {club}. You may also take a two-handed weapon: {slayer}, {chopper} or {hammer}. I also can offer you a {bow}, {crossbow}, {wand} or {rod}. Which one do you choose?", cid)
			npcHandler.topic[cid] = 3
		elseif msgcontains(msg, "remedy") then
			npcHandler:say("Ah, very good. I can offer you a one-handed weapon: {sword}, {axe} or {club}. You may also take a two-handed weapon: {slayer}, {chopper} or {hammer}. I also can offer you a {bow}, {crossbow}, {wand} or {rod}. Which one do you choose?", cid)
			npcHandler.topic[cid] = 4
		end
	elseif npcHandler.topic[cid] == 2 then
		local itemsDisp = items["mayhem"]
		local finally = itemsDisp[msg]

		if finally then
			if player:removeItem(IdToken, finally.tokens_cost) then
				npcHandler:say("Ah, excellent. Here is your "..msg.." of mayhem.", cid)
				player:addItem(finally.itemId, 1)
				npcHandler.topic[cid] = 0
			else
				npcHandler:say("You don't have enough of tokens.", cid)
				npcHandler.topic[cid] = 0
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	elseif npcHandler.topic[cid] == 3 then
		local itemsDisp = items["carving"]
		local finally = itemsDisp[msg]

		if finally then
			if player:removeItem(IdToken, finally.tokens_cost) then
				npcHandler:say("Ah, excellent. Here is your "..msg.." of carving.", cid)
				player:addItem(finally.itemId, 1)
				npcHandler.topic[cid] = 0
			else
				npcHandler:say("You don't have enough of tokens.", cid)
				npcHandler.topic[cid] = 0
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	elseif npcHandler.topic[cid] == 4 then
		local itemsDisp = items["remedy"]
		local finally = itemsDisp[msg]

		if finally then
			if player:removeItem(IdToken, finally.tokens_cost) then
				npcHandler:say("Ah, excellent. Here is your "..msg.." of remedy.", cid)
				player:addItem(finally.itemId, 1)
				npcHandler.topic[cid] = 0
			else
				npcHandler:say("You don't have enough of tokens.", cid)
				npcHandler.topic[cid] = 0
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	elseif npcHandler.topic[cid] == 5 then
		if msgcontains(msg, "risk") then
			npcHandler:say({
				'If I overcharge your weapon, there\'s a risk that the charging doesn\'t succeed. See, the complex process of charging a weapon with this kind of {energy} is very challenging. ...',
				'It can make the weapon\'s substance very instable and in this case the charging won\'t succeed. Yet I\'d have to keep your tokens for my effort so they will be lost for you anyway. I hope you understand this. ...',
				'Of course, if it works your weapon will be remarkably more powerful for a certain time. It\'s up to you, make your choice.'
			}, cid)
		elseif msgcontains(msg, "energy") then
			npcHandler:say({
				'I\'m sorry but I won\'t reveal the exact process of charging a weapon. It\'s about keeping business secrets, you know. All I can tell you is that I use a special kind of energetic-based enchantment magic. ...',
				'It is consigned in my family for many generations. This is the reason why only special weapons, which I can offer you in exchange for {gold} tokens, can be charged with this method.'
			}, cid)
			npcHandler.topic[cid] = 0
		elseif msgcontains(msg, "mayhem") then
			npcHandler:say("As you wish. Which kind of item do you want to charge: {sword}, {axe}, {club}, {slayer}, {chopper}, {hammer}, {bow}, {crossbow}, {wand} or {rod}?", cid)
			npcHandler.topic[cid] = 6
		elseif msgcontains(msg, "carving") then
			npcHandler:say("As you wish. Which kind of item do you want to charge: {sword}, {axe}, {club}, {slayer}, {chopper}, {hammer}, {bow}, {crossbow}, {wand} or {rod}?", cid)
			npcHandler.topic[cid] = 7
		elseif msgcontains(msg, "remedy") then
			npcHandler:say("As you wish. Which kind of item do you want to charge: {sword}, {axe}, {club}, {slayer}, {chopper}, {hammer}, {bow}, {crossbow}, {wand} or {rod}?", cid)
			npcHandler.topic[cid] = 8
		end
	elseif npcHandler.topic[cid] == 6 then
		local itemsDisp = items["mayhem"]
		local finally = itemsDisp[msg]
		
		if finally then
			if player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.itemId) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.itemId, 1)
				player:addItem(finally.charged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.charged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.charged, 1)
				player:addItem(finally.heavycharged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.heavycharged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.heavycharged, 1)
				player:addItem(finally.overcharged, 1)
			else
				npcHandler:say("I'm sorry but you don't have the appropriate weapon. Come back if you're in the possession of a "..msg.." of mayhem.", cid)
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	elseif npcHandler.topic[cid] == 7 then
		local itemsDisp = items["carving"]
		local finally = itemsDisp[msg]
		
		if finally then
			if player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.itemId) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.itemId, 1)
				player:addItem(finally.charged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.charged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.charged, 1)
				player:addItem(finally.heavycharged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.heavycharged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.heavycharged, 1)
				player:addItem(finally.overcharged, 1)
			else
				npcHandler:say("I'm sorry but you don't have the appropriate weapon. Come back if you're in the possession of a "..msg.." of carving.", cid)
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	elseif npcHandler.topic[cid] == 8 then
		local itemsDisp = items["remedy"]
		local finally = itemsDisp[msg]
		
		if finally then
			if player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.itemId) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.itemId, 1)
				player:addItem(finally.charged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.charged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.charged, 1)
				player:addItem(finally.heavycharged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.heavycharged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.heavycharged, 1)
				player:addItem(finally.overcharged, 1)
			else
				npcHandler:say("I'm sorry but you don't have the appropriate weapon. Come back if you're in the possession of a "..msg.." of remedy.", cid)
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	end

	if msgcontains(msg, "information") then
			npcHandler:say({
				'{Token}s are small objects made of metal or other materials. You can use them to buy superior equipment from {token} traders like me. ...',
				'There are several ways to obtain the tokens Im interested in - killing certain bosses, for example. In exchange for a certain amount of tokens, I can offer you some first-class items. ...'
			}, cid)
	elseif msgcontains(msg, "token") then
				npcHandler:say("If you have any {gold} tokens with you, let's have a look! Maybe I can offer you something in exchange.", cid)
	elseif msgcontains(msg, "gold") then
			npcHandler:say({
				'Here\'s the deal, Jess Leewyn. For 50 of your gold tokens, I can offer you some special equipment pieces which you can {charge} with a certain item type. I have the following item types to offer: {mayhem}, {remedy} or {carving}. ...',
				'I may also give you a short {description} what these labels mean. So, which item type are you most interested in?'
			}, cid)
		   npcHandler.topic[cid] = 1
	elseif msgcontains(msg, "charge") then
			npcHandler:say({
				'I may charge your equipment in the exchange of {gold} tokens. This gives your weapon some temporary improvements. For five tokens you\'ll get a charged weapon and for ten tokens a heavily charged one. ...',
				'For the cost of fifteen tokens I can also overcharge your weapon but that comes with a certain {risk}. There are three equipment types I can charge: {mayhem}, {remedy} or {carving}. What kind of weapon would you like to charge?'
			}, cid)
		   npcHandler.topic[cid] = 5
	elseif msgcontains(msg, "description") then
			npcHandler:say({
				'A weapon of mayhem increases your chance to hit harder and to enhance the damage you inflict. A weapon of remedy gives you a certain chance to gain a part of a creature\'s life energy for yourself. ...',
				'And a weapon of carving does the same with a creature\'s mana.'
			}, cid)
	end
	return true
end

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

 

 

 

 

Signed, vamos fazer uma corrente contra venda de otservers!

Link para o post
Compartilhar em outros sites

AI ACHEI MAS UM BUG AI VAI O PRINT , NAO DA PRA DESCER NESTE BURACO SOBE MAIS NAO DESCE

ti.png

OUTRO BUG AS RUNAS NAO ESTAO ACABANDO , TIPO COMPRO 100 E ELAS NAO SE GASTAO .ESTA COM CARGA ENFINITA

Link para o post
Compartilhar em outros sites
12 minutos atrás, gabitutox disse:

AI ACHEI MAS UM BUG AI VAI O PRINT , NAO DA PRA DESCER NESTE BURACO SOBE MAIS NAO DESCE

ti.png

OUTRO BUG AS RUNAS NAO ESTAO ACABANDO , TIPO COMPRO 100 E ELAS NAO SE GASTAO .ESTA COM CARGA ENFINITA

 

No config.lua tem essa opção:

removeChargesFromRunes = false

 

Se voce deseja que acabe, você coloca True.

___________________________________________________

 

#AquiVai 

- Galera atenção em Krailos está com varios bugs de mapa pequenos, na cave de Watter Elemental, não esta dando pra voltar, eu coloquei umas escadas.

x: 33503, y: 31578, z: 8

 

- Na cave de Wailing Widow, tem alguns buracos nas paredes, que ao descer fica preso eternamente, aconselho remover todos.

 

Link para o post
Compartilhar em outros sites
Agora, ADM Argel disse:

 

No config.lua tem essa opção:

removeChargesFromRunes = false

 

Se voce deseja que acabe, você coloca True.

___________________________________________________

 

#AquiVai 

- Galera atenção em Krailos está com varios bugs de mapa pequenos, na cave de Watter Elemental, não esta dando pra voltar, eu coloquei umas escadas.

x: 33503, y: 31578, z: 8

 

- Na cave de Wailing Widow, tem alguns buracos nas paredes, que ao descer fica preso eternamente, aconselho remover todos.

 

valeuuu 

Link para o post
Compartilhar em outros sites

Galera estou testando o servidor do Malucoo, ta online aqui, quem quiser entrar pra dar uma olhada testar e contribuir com o post estamos de braços abertos!

Spoiler

Nordestinos.sytes.net

 

Previsão de lançamento de Malucos OTX para client 11?

Link para o post
Compartilhar em outros sites
Em 11/09/2016 ás 17:09, malucooo disse:

- Iniciado os trabalhos no site...

 

/\ ELE EDITO O TEXTO MAS ELE FALOU QUE 500 REP ELE POSTA COISAS JA MAIS VISTAS .......

 

VAMOS LA GALERA SÓ PARA RELEMBRAR KKKKKKKKK

 

MASS REP PRO MALUCOOO !!! KKKKKKKK

Malblofor REP+

tk-melhor.png

Citar

[ADMINISTRAÇÃO DE SERVIDORES]

Link para o post
Compartilhar em outros sites

Meu computador tem as seguintes especificações:

 

sistema_zpsgkoqzff5.png

Após tentar carregar o mapa a TFS trava e aparece um erro enought memory... sabe me dizer o mínimo de Ram pra rodar o servidor ?


Medalhas:
1, 2

Qo5DnNn.png

stonedshowoff2_zpsf5409854.png

Link para o post
Compartilhar em outros sites

 

4 minutos atrás, Beyond Sky disse:

Meu computador tem as seguintes especificações:

 

sistema_zpsgkoqzff5.png

Após tentar carregar o mapa a TFS trava e aparece um erro enought memory... sabe me dizer o mínimo de Ram pra rodar o servidor ?

Se tiver usando sistema x32 so funciona em x64 win 8 10

 

@Edit

nao vi que é x64 então ja disse acima que funciona em win 8 ou 10

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

                                          King is Back !                                  Está vendo esse coraçãozinho? Dar um Voto Positivo?                                                                                                                                                                                                       clica ali se eu te ajudei muito. Obrigado !

 

[Tutorial] Colocando sua senha no novo XAMPP

[Tutorial] Como compilar tfs 1.2 no Visual Studio 2015

------------------------------------------

  • Contato:

                    Discord: Lirosz#6563

                      Ts3: 104.154.235.159

 

 

Link para o post
Compartilhar em outros sites
7 minutos atrás, murilao disse:

 

Se tiver usando sistema x32 so funciona em x64 win 8 10

 

@Edit

nao vi que é x64 então ja disse acima que funciona em win 8 ou 10

 Tem certeza que é só o sistema operacional que está interferindo as especificações do computador são o suficiente ?

 


Medalhas:
1, 2

Qo5DnNn.png

stonedshowoff2_zpsf5409854.png

Link para o post
Compartilhar em outros sites
Agora, Beyond Sky disse:

 Tem certeza que é só o sistema operacional que está interferindo as especificações do computador são o suficiente ?

 

EU editei o post

                                          King is Back !                                  Está vendo esse coraçãozinho? Dar um Voto Positivo?                                                                                                                                                                                                       clica ali se eu te ajudei muito. Obrigado !

 

[Tutorial] Colocando sua senha no novo XAMPP

[Tutorial] Como compilar tfs 1.2 no Visual Studio 2015

------------------------------------------

  • Contato:

                    Discord: Lirosz#6563

                      Ts3: 104.154.235.159

 

 

Link para o post
Compartilhar em outros sites
24 minutos atrás, Beyond Sky disse:

 Tem certeza que é só o sistema operacional que está interferindo as especificações do computador são o suficiente ?

 

Utilize o windows 10 amigo e nao tera mais este problema

1583290_1.png

Link para o post
Compartilhar em outros sites
49 minutos atrás, Beyond Sky disse:

 Tem certeza que é só o sistema operacional que está interferindo as especificações do computador são o suficiente ?

 

 

Sim, o proprio criador do topico avisa no começo do mesmo, que pra rodar o servidor em windows, rode com no mínimo Windows 8 ou 10.

Link para o post
Compartilhar em outros sites
6 horas atrás, smowking disse:

O que acham então de contribuirmos todos com o projeto? Vamos juntos nessa acabar com esse negocio de vendas de otserv! Usem a hashtag #AquiVai. Começarei então agora!

 

#AquiVai o NPC Yana que fiz, não tem chance de falha mas posso colocar isso futuramente, enfim, está idêntico ao global, só configurar os items do ot de vocês!

 

  Mostrar conteúdo oculto


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

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 IdToken = 25377 -- Configurar id do token
local items = {
	["mayhem"] = {
		["wand"] = {itemId = 26261, tokens_cost = 50, charged = 26271, heavycharged = 26281, overcharged = 26291},
		["rod"] = {itemId = 26262, tokens_cost = 50, charged = 26272, heavycharged = 26282, overcharged = 26292},
		["sword"] = {itemId = 26253, tokens_cost = 50, charged = 26263, heavycharged = 26273, overcharged = 26283},
		["slayer"] = {itemId = 26254, tokens_cost = 50, charged = 26264, heavycharged = 26274, overcharged = 26284},
		["axe"] = {itemId = 26255, tokens_cost = 50, charged = 26265, heavycharged = 26275, overcharged = 26285},
		["chopper"] = {itemId = 26256, tokens_cost = 50, charged = 26266, heavycharged = 26276, overcharged = 26286},
		["club"] = {itemId = 26257, tokens_cost = 50, charged = 26267, heavycharged = 26277, overcharged = 26287},
		["hammer"] = {itemId = 26258, tokens_cost = 50, charged = 26268, heavycharged = 26278, overcharged = 26288},
		["bow"] = {itemId = 26259, tokens_cost = 50, charged = 26269, heavycharged = 26280, overcharged = 26289},
		["crossbow"] = {itemId = 26361, tokens_cost = 50, charged = 26362, heavycharged = 26363, overcharged = 26364},
	},
	["carving"] = {
		["wand"] = {itemId = 26365, tokens_cost = 50, charged = 26366, heavycharged = 26367, overcharged = 26367},
		["rod"] = {itemId = 26369, tokens_cost = 50, charged = 26370, heavycharged = 26371, overcharged = 26372},
		["sword"] = {itemId = 26333, tokens_cost = 50, charged = 26334, heavycharged = 26335, overcharged = 26336},
		["slayer"] = {itemId = 26337, tokens_cost = 50, charged = 26338, heavycharged = 26339, overcharged = 26340},
		["axe"] = {itemId = 26341, tokens_cost = 50, charged = 26342, heavycharged = 26343, overcharged = 26344},
		["chopper"] = {itemId = 26345, tokens_cost = 50, charged = 26346, heavycharged = 26347, overcharged = 26348},
		["club"] = {itemId = 26349, tokens_cost = 50, charged = 26350, heavycharged = 26351, overcharged = 26352},
		["hammer"] = {itemId = 26353, tokens_cost = 50, charged = 26354, heavycharged = 26355, overcharged = 26356},
		["bow"] = {itemId = 26357, tokens_cost = 50, charged = 26358, heavycharged = 26359, overcharged = 26360},
		["crossbow"] = {itemId = 26361, tokens_cost = 50, charged = 26362, heavycharged = 26363, overcharged = 26364},
	},
	["remedy"] = {
		["wand"] = {itemId = 26325, tokens_cost = 50, charged = 26326, heavycharged = 26327, overcharged = 26328},
		["rod"] = {itemId = 26329, tokens_cost = 50, charged = 26330, heavycharged = 26331, overcharged = 26332},
		["sword"] = {itemId = 26293, tokens_cost = 50, charged = 26294, heavycharged = 26295, overcharged = 26296},
		["slayer"] = {itemId = 26297, tokens_cost = 50, charged = 26298, heavycharged = 26299, overcharged = 26300},
		["axe"] = {itemId = 26301, tokens_cost = 50, charged = 26302, heavycharged = 26303, overcharged = 26304},
		["chopper"] = {itemId = 26305, tokens_cost = 50, charged = 26306, heavycharged = 26307, overcharged = 26308},
		["club"] = {itemId = 26309, tokens_cost = 50, charged = 26310, heavycharged = 26311, overcharged = 26312},
		["hammer"] = {itemId = 26313, tokens_cost = 50, charged = 26314, heavycharged = 26315, overcharged = 26316},
		["bow"] = {itemId = 26317, tokens_cost = 50, charged = 26318, heavycharged = 26319, overcharged = 26320},
		["crossbow"] = {itemId = 26321, tokens_cost = 50, charged = 26322, heavycharged = 26323, overcharged = 26324},	
	}
}



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

	if npcHandler.topic[cid] == 1 then
		if msgcontains(msg, "mayhem") then
			npcHandler:say("Ah, very good. I can offer you a one-handed weapon: {sword}, {axe} or {club}. You may also take a two-handed weapon: {slayer}, {chopper} or {hammer}. I also can offer you a {bow}, {crossbow}, {wand} or {rod}. Which one do you choose?", cid)
			npcHandler.topic[cid] = 2
		elseif msgcontains(msg, "carving") then
			npcHandler:say("Ah, very good. I can offer you a one-handed weapon: {sword}, {axe} or {club}. You may also take a two-handed weapon: {slayer}, {chopper} or {hammer}. I also can offer you a {bow}, {crossbow}, {wand} or {rod}. Which one do you choose?", cid)
			npcHandler.topic[cid] = 3
		elseif msgcontains(msg, "remedy") then
			npcHandler:say("Ah, very good. I can offer you a one-handed weapon: {sword}, {axe} or {club}. You may also take a two-handed weapon: {slayer}, {chopper} or {hammer}. I also can offer you a {bow}, {crossbow}, {wand} or {rod}. Which one do you choose?", cid)
			npcHandler.topic[cid] = 4
		end
	elseif npcHandler.topic[cid] == 2 then
		local itemsDisp = items["mayhem"]
		local finally = itemsDisp[msg]

		if finally then
			if player:removeItem(IdToken, finally.tokens_cost) then
				npcHandler:say("Ah, excellent. Here is your "..msg.." of mayhem.", cid)
				player:addItem(finally.itemId, 1)
				npcHandler.topic[cid] = 0
			else
				npcHandler:say("You don't have enough of tokens.", cid)
				npcHandler.topic[cid] = 0
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	elseif npcHandler.topic[cid] == 3 then
		local itemsDisp = items["carving"]
		local finally = itemsDisp[msg]

		if finally then
			if player:removeItem(IdToken, finally.tokens_cost) then
				npcHandler:say("Ah, excellent. Here is your "..msg.." of carving.", cid)
				player:addItem(finally.itemId, 1)
				npcHandler.topic[cid] = 0
			else
				npcHandler:say("You don't have enough of tokens.", cid)
				npcHandler.topic[cid] = 0
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	elseif npcHandler.topic[cid] == 4 then
		local itemsDisp = items["remedy"]
		local finally = itemsDisp[msg]

		if finally then
			if player:removeItem(IdToken, finally.tokens_cost) then
				npcHandler:say("Ah, excellent. Here is your "..msg.." of remedy.", cid)
				player:addItem(finally.itemId, 1)
				npcHandler.topic[cid] = 0
			else
				npcHandler:say("You don't have enough of tokens.", cid)
				npcHandler.topic[cid] = 0
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	elseif npcHandler.topic[cid] == 5 then
		if msgcontains(msg, "risk") then
			npcHandler:say({
				'If I overcharge your weapon, there\'s a risk that the charging doesn\'t succeed. See, the complex process of charging a weapon with this kind of {energy} is very challenging. ...',
				'It can make the weapon\'s substance very instable and in this case the charging won\'t succeed. Yet I\'d have to keep your tokens for my effort so they will be lost for you anyway. I hope you understand this. ...',
				'Of course, if it works your weapon will be remarkably more powerful for a certain time. It\'s up to you, make your choice.'
			}, cid)
		elseif msgcontains(msg, "energy") then
			npcHandler:say({
				'I\'m sorry but I won\'t reveal the exact process of charging a weapon. It\'s about keeping business secrets, you know. All I can tell you is that I use a special kind of energetic-based enchantment magic. ...',
				'It is consigned in my family for many generations. This is the reason why only special weapons, which I can offer you in exchange for {gold} tokens, can be charged with this method.'
			}, cid)
			npcHandler.topic[cid] = 0
		elseif msgcontains(msg, "mayhem") then
			npcHandler:say("As you wish. Which kind of item do you want to charge: {sword}, {axe}, {club}, {slayer}, {chopper}, {hammer}, {bow}, {crossbow}, {wand} or {rod}?", cid)
			npcHandler.topic[cid] = 6
		elseif msgcontains(msg, "carving") then
			npcHandler:say("As you wish. Which kind of item do you want to charge: {sword}, {axe}, {club}, {slayer}, {chopper}, {hammer}, {bow}, {crossbow}, {wand} or {rod}?", cid)
			npcHandler.topic[cid] = 7
		elseif msgcontains(msg, "remedy") then
			npcHandler:say("As you wish. Which kind of item do you want to charge: {sword}, {axe}, {club}, {slayer}, {chopper}, {hammer}, {bow}, {crossbow}, {wand} or {rod}?", cid)
			npcHandler.topic[cid] = 8
		end
	elseif npcHandler.topic[cid] == 6 then
		local itemsDisp = items["mayhem"]
		local finally = itemsDisp[msg]
		
		if finally then
			if player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.itemId) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.itemId, 1)
				player:addItem(finally.charged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.charged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.charged, 1)
				player:addItem(finally.heavycharged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.heavycharged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.heavycharged, 1)
				player:addItem(finally.overcharged, 1)
			else
				npcHandler:say("I'm sorry but you don't have the appropriate weapon. Come back if you're in the possession of a "..msg.." of mayhem.", cid)
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	elseif npcHandler.topic[cid] == 7 then
		local itemsDisp = items["carving"]
		local finally = itemsDisp[msg]
		
		if finally then
			if player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.itemId) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.itemId, 1)
				player:addItem(finally.charged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.charged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.charged, 1)
				player:addItem(finally.heavycharged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.heavycharged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.heavycharged, 1)
				player:addItem(finally.overcharged, 1)
			else
				npcHandler:say("I'm sorry but you don't have the appropriate weapon. Come back if you're in the possession of a "..msg.." of carving.", cid)
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	elseif npcHandler.topic[cid] == 8 then
		local itemsDisp = items["remedy"]
		local finally = itemsDisp[msg]
		
		if finally then
			if player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.itemId) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.itemId, 1)
				player:addItem(finally.charged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.charged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.charged, 1)
				player:addItem(finally.heavycharged, 1)
			elseif player:getItemCount(IdToken) >= 5 and player:getItemCount(finally.heavycharged) >= 1 then
				player:removeItem(IdToken, 5) 
				player:removeItem(finally.heavycharged, 1)
				player:addItem(finally.overcharged, 1)
			else
				npcHandler:say("I'm sorry but you don't have the appropriate weapon. Come back if you're in the possession of a "..msg.." of remedy.", cid)
			end
		else
			npcHandler:say("I\'m sorry but I did not understand what you said...", cid)
		end
	end

	if msgcontains(msg, "information") then
			npcHandler:say({
				'{Token}s are small objects made of metal or other materials. You can use them to buy superior equipment from {token} traders like me. ...',
				'There are several ways to obtain the tokens Im interested in - killing certain bosses, for example. In exchange for a certain amount of tokens, I can offer you some first-class items. ...'
			}, cid)
	elseif msgcontains(msg, "token") then
				npcHandler:say("If you have any {gold} tokens with you, let's have a look! Maybe I can offer you something in exchange.", cid)
	elseif msgcontains(msg, "gold") then
			npcHandler:say({
				'Here\'s the deal, Jess Leewyn. For 50 of your gold tokens, I can offer you some special equipment pieces which you can {charge} with a certain item type. I have the following item types to offer: {mayhem}, {remedy} or {carving}. ...',
				'I may also give you a short {description} what these labels mean. So, which item type are you most interested in?'
			}, cid)
		   npcHandler.topic[cid] = 1
	elseif msgcontains(msg, "charge") then
			npcHandler:say({
				'I may charge your equipment in the exchange of {gold} tokens. This gives your weapon some temporary improvements. For five tokens you\'ll get a charged weapon and for ten tokens a heavily charged one. ...',
				'For the cost of fifteen tokens I can also overcharge your weapon but that comes with a certain {risk}. There are three equipment types I can charge: {mayhem}, {remedy} or {carving}. What kind of weapon would you like to charge?'
			}, cid)
		   npcHandler.topic[cid] = 5
	elseif msgcontains(msg, "description") then
			npcHandler:say({
				'A weapon of mayhem increases your chance to hit harder and to enhance the damage you inflict. A weapon of remedy gives you a certain chance to gain a part of a creature\'s life energy for yourself. ...',
				'And a weapon of carving does the same with a creature\'s mana.'
			}, cid)
	end
	return true
end

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

 

 


@smowking
You have fixed NPC Cledwyn?
Thanks for shared NPC Yana!

Link para o post
Compartilhar em outros sites

Pessoal, estamos dando todo suporte para o Malucooo.

 

Com a criação do Github todos podem contribuir, tando editando diretamente pelo Github e submetendo uma request ou clonando e submetendo uma request. Também estaremos usando o Issue Tracker do Github.

 

Criamos recentemente uma página que da um suporte básico para os que nunca mexeram com Github: https://github.com/malucooo/Otxserver-Global/wiki/Desenvolvimento


Peço a todos que tiverem melhorias e correções, para submeterem elas no github :D

Link para o post
Compartilhar em outros sites
  • Erimyth pinned this tópico
  • Erimyth featured this tópico
  • Erimyth unfeatured e unpinned this tópico

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.


  • Conteúdo Similar

    • Por Johncore
      Olá galera, é com muita dedicação que trago para este forum uma exclusividade que só eu tinha.
      Mapa Dragonsouls 11x 99%, tem alguns detalhes de sqm ou borda que você possa precisar fazer,
      Dragonsouls é um servidor ATS Custom, baseado em senhor dos aneis. via muita gente perguntando por esse mapa e eu tinha a muitos anos, resolvi converter.
      mas ele está 99% pronto para uso.
       
      Esse mapa é 100% compativel para rodar na Datapack Otg Server 11,
      Otg Server é um projeto que trabalha com varias datapacks de tibia rl e ATS Custom.
       
      Github:
      https://github.com/otg-br/
       
      Participe do grupo Otg Server:  
      https://chat.whatsapp.com/EWV3dVvS6nt1em7q23FGu7
       
       
      MAPA:
       
      INICIAL ISLAND

       
      CARLIN

       
      CIDADE TIRITH

       
      CIDADE BREE

       
       
       
       
      world.zip
    • Por Johncore
      Olá pessoas, estou disponibilizando aqui mais uma exclusividade que é o Mapa Evolunia, ele é baseado no servidor Evolunia.net
       
      Esse mapa é 100% compativel para rodar na Datapack Otg Server 11x,
      Otg Server é um projeto que trabalha com varias datapacks de tibia rl e ATS Custom.
       
      Participe do grupo Otg Server:  
      https://chat.whatsapp.com/EWV3dVvS6nt1em7q23FGu7
       
      Creditos:
      evolunia
      world.zip
    • Por Johncore
      Otg Server é um projeto fork do The Forgotten Server 1.3, feito por brasileiros que visam sempre por estabilidade, um código mais clean, temos no projeto várias Datapacks como
      Global 11.0, Global 8.6, Global 8.0, RadBR 11.0, Evolutions 11.0, Yurots Classic 11.0, nossa base também é excelente para rodar projetos que são mapa Baiak ou ATS Custom pelo baixissimo uso de cpu e fix do Decay de itens.

      Todos são bem vindos para colaborar com o projeto... que não visa nenhum lucro financeiro, queremos apenas colaborar com a comunidade OTSERV,
      temos ouvido de muitas pessoas que procuram uma base estável, limpa, esse é o nosso objetivo nesse projeto.
       
      Estamos a procura de programadores/dev/webmaster que queiram ajudar / que tenham tempo e serão recompensados por isso.
       
      Nossa Datapack principal Global 11.00 contem as seguintes features:
      CAST SYSTEM ✅
      AUTOLOOT ✅
      WINTER UPDATE 2023 ✅
      SUMMER UPDATE 2023 ✅
      ADDONS 13.22 UPDATE ✅
      MONTARIAS 13.22 UPDATE ✅
      ITEMS 13.22 UPDATE ✅
      DAILY REWARD ✅
      IMBUEMENTS ✅
      PREY ✅
      EXERCISE WEAPONS ✅
      HIRELINGS NPCS ✅
      ANTI ROLLBACK ✅
       
       
      Github Global 11x:  💾
      https://github.com/otg-br/global-11x
      Clients e outras ferramentas:  💾
      https://github.com/otg-br/tools
      Github Otg Gesior:  💾
      https://github.com/otg-br/gesior
      Github Otg Otclientv8:  💾
      https://github.com/otg-br/otclientv8
      Wiki Otg:  💾
      https://github.com/otg-br/global-11x/wiki
       
       
      Creditos:
      TFS Team Erick Nunes Gui Bruxo Worthdavi LuSKT Leo Pereira Luan Luciano Cjaker Comedinhas Nekiro OTG Colaborators
    • Por Dnzk21
      COMO POSSO IMPORTAR UMA CITY EMCIMA DE OUTRA CITY SEM PERDER AS HOUSES
      ALGUEM PODE M,E AJUDAR 
      E A MESMA CITY MJAIS QUANDO IMPORTO PERDE TODAS CASAS QUANDO SALVA E ABRE O SERVIDOR
    • Por Johncore
      Arcadia é uma cidade custom bem bonita que pode ser encontrada no servidor AureraGlobal,
      Por ter esse conteudo aqui em primeira mão, resolvi disponibilizar para a comunidade.
       


       
      Creditos:
      Aurera Team
      Johncorex
      Arcadia-spawn.xml Arcadia-house.xml Arcadia.otbm

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo