Ir para conteúdo

Líderes

Conteúdo Popular

Exibindo conteúdo com a maior reputação em 06/11/11 em %

  1. Como construir uma loja de magia

    Diego Oliveira e um outro reagiu a Skywar por uma resposta no tópico

    2 pontos
    Construindo uma loja de magia Neste tutorial venho a propósito de mostrar a vocês como se deve fazer uma loja de magia – lembrando que é meu estilo de mapping -, com isso ti dou uma dica infalível, pesquise no Google algumas imagens ou conceitos disso, para ter uma criatividade ao fazer-la. Vamos ao tutorial. 1) Primeiramente faça a base da loja: Explicação: Aqui já ti mostro a base da loja, por enquanto bem simples, onde o NPC ficará e onde os players falarão com ele. ID'S USADOS: 5519 a 3396, 1624 e 1625. 2) Aqui ti mostro um pouco do meu estilo de mapping; Explicação: Bom aqui eu coloquei alguns detalhes nas paredes, coloquei uma estante de livros, e uma estátua mostrando que é uma loja de mago e também coloquei uns detalhes no piso da loja. ID'S USADOS: 3176 e 3178, 1718 e 1719, 3190 a 3193 e 3766. 3) Finalizando o primeiro andar: Explicação: Já aqui coloquei umas pedras, musgos na parede e no chão, tochas para a iluminação e detalhes na área do NPC. ID'S USADOS: 9415 e 9416, 3611 a 3614, 7936, 7937. 4) Fazendo um segundo andar: Explicação: Aqui vou fazer o andar inteiro, caso queria fazer não tem problema, vou usar uma arquitetura diferente, esses buracos na próxima imagem vão entender. ID'S USADOS: 436, 369 e 3364. 5) Detalhes no andar: Explicação: Eu particularmente gostei da decoração de madeira, caso queria mudar use o ID 3401. Eu coloquei um balcão onde há potions, mais uma estante de livros e uma cadeira e um livro. ID'S USADOS: 1626 e 1627, 6368, 7588, 1616, 1652, 8046, 8047, 1986 e 2600. PS: Posso ter exagerado em alguns detalhes normal. Você pode fazer de qualquer parede que quiser, esse tutorial é para mostrar um estilo da loja. Espero ter ajudado nesse tutorial, até o próximo. Totais créditos a min, Skywar. Download do mapa: http://www.speedyshare.com/files/23492823/magic.otbm
  2. Sistema De Owner Para Equips.

    Chiitus reagiu a MatheusMkalo por uma resposta no tópico

    1 ponto
    Bem o sistema é basicamente isso: Fazer com que so um player possa equipar determinado item. Eu fiquei em duvida se botava ou nao botava para aparecer o nome do owner no item, por isso fiz uma enquete para esse topico, a que vencer eu faço. O script esta em mod, voce nao precisa nem mexer no mod. Crie um arquivo.xml na pasta mods do seu ot e nomeie-o de ownersystem (é extremamente importante que o nome seja esse.) e bote esse script: <?xml version="1.0" encoding="UTF-8"?> <mod name="OwnerSystem" enabled="yes" author="MatheusMkalo" credits="Cezar (Patterns)"> <config name="OwnerLib"><![CDATA[ function getSlotIds(tag) local file = "mods/ownersystem.xml" local input = assert(io.open(file)) local content = assert(input:read("*a")) local tag = content:match("(<movevent[^>]*slot=[\"']".. tag .."[\"'][^>]*>)") local itemid = tag:match("itemid=[\"'](.-)[\"']") input:close() return itemid:explode(";") end function writeId(tag, id) local file = "mods/ownersystem.xml" local input = assert(io.open(file)) local content = assert(input:read("*a")) local tag = content:match("(<movevent[^>]*slot=[\"']".. tag .."[\"'][^>]*>)") local itemid = tag:match("itemid=[\"'](.-)[\"']") input:close() if(itemid:match(tostring(id))) then return true end if(itemid == "") then itemid = id else itemid = itemid .. ";" .. id end local ntag = tag:gsub("itemid=[\"'](.-)[\"']", "itemid=\"" .. itemid .. "\"") local content = content:gsub(tag, ntag) local output = assert(io.open(file, "w")) output:write(content) output:close() addEvent(doReloadInfo, 1000, 22) end function getItemType(itemid) local slottypes = {"head", "body", "legs", "feet"} local arq = io.open("data/items/items.xml", "r"):read("*all") local attributes = arq:match('<item id="' .. itemid .. '".+name="' .. getItemNameById(itemid) ..'">(.-)</item>') local slot = "" for i,x in pairs(slottypes) do if attributes:find(x) then slot = x break end end if slot == "body" then slot = "armor" end return slot end function isHandedWeapon(itemuid) local typee = getItemWeaponType(itemuid) or 0 if typee >= 1 and typee <= 6 then return TRUE end end function isPlayerOwnerItem(cid, itemuid) return not getItemAttribute(itemuid, "ownerguid") or getItemAttribute(itemuid, "ownerguid") == getPlayerGUID(cid) end function setItemOwner(itemuid, cid) if isHandedWeapon(itemuid) then local equips = getSlotIds("hand") if not table.find(equips, getItemIdByName(getItemName(itemuid))) then writeId("hand", getItemIdByName(getItemName(itemuid))) end doItemSetAttribute(itemuid, "ownerguid", getPlayerGUID(cid)) elseif getItemType(getItemIdByName(getItemName(itemuid))) then local equips = getSlotIds(getItemType(getItemIdByName(getItemName(itemuid)))) if not table.find(equips, getItemIdByName(getItemName(itemuid))) then writeId(getItemType(getItemIdByName(getItemName(itemuid))), getItemIdByName(getItemName(itemuid))) end doItemSetAttribute(itemuid, "ownerguid", getPlayerGUID(cid)) end end ]]></config> <movevent type="Equip" itemid="" slot="head" event="script"><![CDATA[ domodlib("OwnerLib") if not isPlayerOwnerItem(cid, item.uid) then addEvent(doPlayerSendCancel, 1, cid, "You are not the owner of this item.") else return TRUE end ]]></movevent> <movevent type="Equip" itemid="" slot="hand" event="script"><![CDATA[ domodlib("OwnerLib") if not isPlayerOwnerItem(cid, item.uid) then addEvent(doPlayerSendCancel, 1, cid, "You are not the owner of this item.") else return TRUE end ]]></movevent> <movevent type="Equip" itemid="" slot="legs" event="script"><![CDATA[ domodlib("OwnerLib") if not isPlayerOwnerItem(cid, item.uid) then addEvent(doPlayerSendCancel, 1, cid, "You are not the owner of this item.") else return TRUE end ]]></movevent> <movevent type="Equip" itemid="" slot="armor" event="script"><![CDATA[ domodlib("OwnerLib") if not isPlayerOwnerItem(cid, item.uid) then addEvent(doPlayerSendCancel, 1, cid, "You are not the owner of this item.") else return TRUE end ]]></movevent> <movevent type="Equip" itemid="" slot="feet" event="script"><![CDATA[ domodlib("OwnerLib") if not isPlayerOwnerItem(cid, item.uid) then addEvent(doPlayerSendCancel, 1, cid, "You are not the owner of this item.") else return TRUE end ]]></movevent> </mod> Agora vá na pasta libs e abra o arquivo.lua que tem o nome de functions ou 050-functions (pode variar de ot pra ot) e adicione essa funçao: function setItemOwner(itemuid, cid) domodlib("OwnerLib") return setItemOwner(itemuid, cid) end Agora vá em data/talkactions/scripts e abra o arquivo createitem.lua e mude o script para esse: function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local t = string.explode(param, ",") local ret = RETURNVALUE_NOERROR local pos = getCreaturePosition(cid) local id = tonumber(t[1]) if(not id) then id = getItemIdByName(t[1], false) if(not id) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item wich such name does not exists.") return true end end local amount = 100 if(t[2]) then amount = t[2] end local item = doCreateItemEx(id, amount) if(t[3] and getBooleanFromString(t[3])) then if(t[4] and getBooleanFromString(t[4])) then pos = getCreatureLookPosition(cid) end ret = doTileAddItemEx(pos, item) else doPlayerAddItem(cid, id, amount) ret = RETURNVALUE_NOERROR end if(ret ~= RETURNVALUE_NOERROR) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Couldn't add item: " .. t[1]) return true end doDecayItem(item) if(not isPlayerGhost(cid)) then doSendMagicEffect(pos, CONST_ME_MAGIC_RED) end return true end É de extrema importancia que voce mude o script do /i, pois o i que vem nos ots contem um bug que arruina com o sistema de owner. Pronto agora você so precisa juntar a minha funçao setItemOwner(itemuid, cid) com qualquer outro script de quest whatever. Lembre-se se voce quizer algum script que use esse meu sistema, peça-o na sessao de pedidos de scripts, não aqui.
  3. Coleção de Emontions FUUUUU

    Mek Fiuchem reagiu a ferlations por uma resposta no tópico

    1 ponto
    Bem gente, andei pesquisando e está ai. Um pacote inteiro de emotions FU pra vocês (renato ou matheus põe alguns deles ai, principalmente o retrollado asduhasuhd) Bem, ta ai né. Autor: 403 - Forbiddeen Formato: .jpg Instalação: Copie as imagens da pasta Emontions FUUU e envie para /www/forum/public/style_emoticons/default/, depois vá em Admincp > Lock & Feel > Emoticon Management > Default, no final em Unassigned Emoticons in set: 'default' selecione os emontions que quer adicionar e definir como 'clicável'. 403 - Fuuu Emontion.zip
  4. 5# - Evento para refletir...

    Liri reagiu a Demonbholder por uma resposta no tópico

    1 ponto
    DESCLASSIFICADO!
  5. 5# - Evento para refletir...

    Renato reagiu a Stomp por uma resposta no tópico

    -1 pontos
    DESCLASSIFICADO!
Líderes está configurado para São Paulo/GMT-03:00

Informação Importante

Confirmação de Termo