-
Total de itens
926 -
Registro em
-
Última visita
-
Dias Ganhos
18
Tudo que Danihcv postou
-
Mande o script original. Sem nenhuma edição (de uma forma que ele esteja funcionando)
-
Mas ainda seria necessário acrescentar o return false, ne isso?
-
[Encerrado]Pokémon mysterion - junte-se a nós!
tópico respondeu ao LLossavaro de Danihcv em Formação de Equipes
Atenção! Evitem postar comentários que destoem do objetivo do tópico. Qualquer próximo comentário que não contribua com o conteúdo e finalidade do tópico, está passível de ser punido. -
Manda o teu globalevents.xml
-
Tenta ae: local vocs = {9, 10, 11, 12} --vocacoes que podem usar a talkaction function onSay(cid, words, param, channel) if isInArray(vocs, getPlayerVocation(cid)) then if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") return true end local t = string.explode(param, ",") t[1] = tonumber(t[1]) if(not t[1]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires numeric param.") return true end local failout = {"73","75","302","266","45","10"} -- outfits proibidas for i = 1, #failout do if string.find(tostring(param), failout[i]) then doPlayerSendCancel(cid,"Não pode usar estas outfit.") return TRUE end end if(t[1] <= 1 or t[1] == 135 or (t[1] > 160 and t[1] < 192) or t[1] > 351) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such outfit does not exist.") return true end local tmp = getCreatureOutfit(cid) tmp.lookType = t[1] doCreatureChangeOutfit(cid, tmp)] else doPlayerSendCancel(cid,"Sua vocação não pode usar este comando.") end return true end
-
[Encerrado] Testando Itens Loja Gesior
tópico respondeu ao Adriez de Danihcv em Tópicos Sem Resposta
Essa mensagem aparece onde? Em qual etapa do processo? -
Tópico movido para dúvidas / pedidos resolvidos.
-
sahusahuas, que nada. Era só uns detalhezinhos... ^^ Tópico movido para dúvidas / pedidos resolvidos.
-
Tópico movido para dúvidas / pedidos resolvidos.
-
Tópico Movido Este tópico foi movido de "OTServ → Downloads → Servidores OTServ → OTserv 8.x" para "OTServ → Mapping → Downloads Mapas → Mapas 8.6x e 8.7x".
-
@@Dandjes, tranquilo então. ^^ Tópico movido para dúvidas / pedidos resolvidos.
- 8 respostas
-
- gesior
- quantidades
-
(e 1 mais)
Tags:
-
@, acredito que estejam com as counts individuais.
-
@@Arranca Prega, manda o script dele.
-
Tenta ae: Primeiro script: Segundo:
-
@@Dandjes, manda o arquivo php da pagina do shop do seu site.
- 8 respostas
-
- gesior
- quantidades
-
(e 1 mais)
Tags:
-
Vá em data\globalevents\scripts e substitua o seu shop.lua por esse: local SHOP_MSG_TYPE = MESSAGE_EVENT_ORANGE local SQL_interval = 30 function onThink(interval, lastExecution) local result_plr = db.getResult("SELECT * FROM z_ots_comunication WHERE `type` = 'login';") if(result_plr:getID() ~= -1) then while(true) do local id = tonumber(result_plr:getDataInt("id")) local action = tostring(result_plr:getDataString("action")) local delete = tonumber(result_plr:getDataInt("delete_it")) local cid = getCreatureByName(tostring(result_plr:getDataString("name"))) if isPlayer(cid) then local itemtogive_id = tonumber(result_plr:getDataInt("param1")) local itemtogive_count = tonumber(result_plr:getDataInt("param2")) local container_id = tonumber(result_plr:getDataInt("param3")) local container_count = tonumber(result_plr:getDataInt("param4")) local add_item_type = tostring(result_plr:getDataString("param5")) local add_item_name = getItemNameById(tonumber(result_plr:getDataInt("param1"))) local add_item_count = tostring(result_plr:getDataInt("param2")) local received_item = 0 local full_weight = 0 if add_item_type == 'container' then container_weight = getItemWeightById(container_id, 1) if isItemRune(itemtogive_id) == TRUE then items_weight = container_count * getItemWeightById(itemtogive_id, 1) else items_weight = container_count * getItemWeightById(itemtogive_id, itemtogive_count) end full_weight = items_weight + container_weight else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) if isItemRune(itemtogive_id) == TRUE then full_weight = getItemWeightById(itemtogive_id, 1) else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) end end local free_cap = getPlayerFreeCap(cid) if full_weight <= free_cap then if add_item_type == 'container' then local new_container = doCreateItemEx(container_id, 1) local iter = 0 while iter ~= container_count do doAddContainerItem(new_container, itemtogive_id, itemtogive_count) iter = iter + 1 end received_item = doPlayerAddItemEx(cid, new_container) else local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) doItemSetAttribute(new_item, "description", "This item can only be used by the player ".. getPlayerName(cid) .."!") doItemSetAttribute(new_item, "aid", getPlayerGUID(cid)+10000) received_item = doPlayerAddItemEx(cid, new_item) end if received_item == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'Você recebeu >> '.. add_item_count ..' '.. add_item_name ..' << do Hospice shop.') db.executeQuery("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.executeQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";") else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_count ..' '.. add_item_name ..' << from Hospice shop is waiting for you. Please make place for this item in your backpack/hands and wait about '.. SQL_interval ..' seconds to get it.') end else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_count ..' '.. add_item_name ..' << from Hospice shop is waiting for you. It weight is '.. full_weight ..' oz., you have only '.. free_cap ..' oz. free capacity. Put some items in depot and wait about '.. SQL_interval ..' seconds to get it.') end end if not(result_plr:next()) then break end end result_plr:free() end return true end OBS: NÃO ESQUEÇA DE FAZER BACKUP DO SEU SHOP.LUA ATUAL!
- 8 respostas
-
- gesior
- quantidades
-
(e 1 mais)
Tags:
-
Manda teu config.lua.
-
[Encerrado] Testando Itens Loja Gesior
tópico respondeu ao Adriez de Danihcv em Tópicos Sem Resposta
Vc finge que é um comprador, ué... Só fazer todo o processo que o comprador vai fazer... .-. -
Dá algum erro na distro?
- 8 respostas
-
- gesior
- quantidades
-
(e 1 mais)
Tags:
-
tfs 0.3.6 Bug em npc que faz o servidor freezar
pergunta respondeu ao Makakovisk de Danihcv em Scripts
@@Makakovisk, putz cara, já descobrimos uma bem provavel fonte do problema então. Eu sempre recomendo pelo menos 4 gb de RAM. E quanto ao tipo de ot, o que eu qria dizer é se o seu ot é normal (global) ou derivado (poketibia, etc). -
O problema está em sua data base, e não no servidor em si. Aqui tem um tutorial q eu fiz ensinando a resolver erros na data base: http://www.xtibia.com/forum/topic/233368-tutorial-resolvendo-qualquer-erro-na-data-base/ Qualquer duvida, pode perguntar por aqui mesmo.
-
tfs 0.3.6 Bug em npc que faz o servidor freezar
pergunta respondeu ao Makakovisk de Danihcv em Scripts
@@Makakovisk, amigo, mt provavelmente esse problema está sendo ocasionado pela pouca potencia do servidor. Ou seja, é necessário dar um upgrade no host. Quais as configurações do seu host e qual o tipo de ot que vc tem? -
Tenta ae: mount: -- [( Mount System 1.4 created by Doidin for XTibia.com )] -- function onUse(cid, item) local outfit = {lookType = 4} -- Outfit da montaria! local exhaust = 60 -- Tempo para player poder usar o item novamente! (tempo em segundos) local time = 60 -- Tempo para ficar na montaria! (tempo em segundos) local speed = 300 -- Velocidade adicionada ao player após usar o item! (300 = velocidade, quanto maior mais rapido...) local mana = 500 -- Quantidade de mana que o player necessita para usar o sistema! local premium = "yes" -- Apenas players premium accounts "yes" or "no"!? local storage = 9393 -- Não mexa aqui! if (premium == "yes") and (not isPremium(cid)) and (isPlayer(cid)) then return doPlayerSendTextMessage(cid, 23, "Sorry, only premium players.") end if(getCreatureMana(cid) < mana) then return doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHMANA) end if isPlayer(cid) then if (getPlayerStorageValue(cid, storage) <= os.time()) then doCreatureSay(cid, "Yeeeah!!!\nYou went up on his ride.", 19) doSetCreatureOutfit(cid, outfit, time*1000) doChangeSpeed(cid, speed) doSendMagicEffect(getCreaturePosition(cid), 34) setPlayerStorageValue(cid, storage, os.time()+exhaust) doPlayerAddMana(cid, -mana) addEvent(doChangeSpeed, time*1000+40, cid, -speed) addEvent(doPlayerSendTextMessage, time*1000+45, cid, 23, "Mount System is time out!") addEvent(doSendMagicEffect, time*1000+50, getCreaturePosition(cid), 2) else doPlayerSendCancel(cid, "Sorry, you only can again use this item after "..exhaust.." seconds.") end end return true end o outro: local GemsConfig = { [2153] = { vocations = {4, 8, 12}, effect = CONST_ME_EXPLOSIONAREA, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SKILL_MELEEPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } }, [2154] = { vocations = {3, 7, 11}, effect = CONST_ME_HOLYDAMAGE, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SKILL_DISTANCEPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } }, [2156] = { vocations = {1, 5, 9}, effect = CONST_ME_MORTAREA, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_STAT_MAGICLEVELPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } }, [2158] = { vocations = {2, 6, 10}, effect = CONST_ME_SMALLPLANTS, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_STAT_MAGICLEVELPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } } } local Conditions = {} for itemid, info in pairs(GemsConfig) do Conditions[itemid] = {} for condition, parameters in pairs(info.conditions) do local new = createConditionObject(condition) for parameter, value in pairs(parameters) do setConditionParam(new, parameter, value) end table.insert(Conditions[itemid], new) end end local function doShowGemAura(cid, type) if isCreature(cid) then local position = getThingPosition(cid) doSendMagicEffect(position, type) if isCreature(cid) then if getCreatureCondition(cid, CONDITION_ATTRIBUTES, 200) then addEvent(doShowGemAura, 1 * 1000, cid, type) end end end return true end function onUse(cid, item, fromPosition, itemEx, toPosition) if not GemsConfig[item.itemid] then return false end if not isInArray(GemsConfig[item.itemid].vocations, getPlayerVocation(cid)) then return doPlayerSendCancel(cid, "You cannot use this spirit gem.") end if getCreatureCondition(cid, CONDITION_ATTRIBUTES, 200) then return false end for _, condition in pairs(Conditions[item.itemid]) do doAddCondition(cid, condition) end doCreatureSay(cid, "AAAAH! I FEEL THE POWER!", TALKTYPE_ORANGE_1) doSendMagicEffect(toPosition, GemsConfig[item.itemid].effect) addEvent(doShowGemAura, 1 * 1000, cid, GemsConfig[item.itemid].effect) doRemoveItem(item.uid, 1) return true end
-
Putz, os erros estão dixendo que esses arquivos que ele tá tentando abrir, não existem. Só isso. shusauhsa Ou seja, os scripts de certos npc's e de certos monstros não estão no local (diretório) correto. E é o que eu tava suspeitando mesmo, o problema está no data pack. Ele está incompleto, creio eu. Tente pegar a pasta data de outro servidor tfs 0.4 e substitua no lugar da sua atual.
-
tfs 0.3.6 [Encerrado] Account Manager Criando Dois Nomes Iguais
tópico respondeu ao Adriez de Danihcv em Tópicos Sem Resposta
Infelizmente eu não sei te dizer. Vc mesmo terá que procurar algo relacionado ao account manager pelos arquivos da source... Ou vc pode dar uma pesquisada pelas internets tb pra saber qual arquivo está relacionado ao acc manager. ou vc espera alguem que saiba responder... NÃO RECOMENDO ESSA ULTIMA OPÇÃO! Buscar conhecimento é sempre muito bom. ^^
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.