Otserv Comunidad Hispana de tibia

Conectarse

Recuperar mi contraseña

Últimos temas

» MageBOT 10.77 Crackeado
Sáb 04 Jul 2015, 1:31 pm por Dj Tati

» Neo Mc para todos los cliente de tibia
Sáb 04 Jul 2015, 1:24 pm por Dj Tati

» Counter Strike 1.6 UCP descargar
Vie 03 Jul 2015, 12:37 am por Dj Tati

» Como Ganar Dolar viendo anuncio tutorial crear su cuenta
Vie 03 Jul 2015, 12:33 am por Dj Tati

» Descargar Counter Strike 1.6 UCP
Vie 03 Jul 2015, 12:12 am por Dj Tati

» Quieres Ganar Dolar Viendo Anuncio? entra aqui 100%seguro
Jue 02 Jul 2015, 11:58 pm por Dj Tati

» Counter Strike 1.6 [MS] UCP - *Max-Style. ^| Mcbo 24/7.
Jue 02 Jul 2015, 10:48 pm por Dj Tati

» Multi IP Changer Tibia 7.1 - 9.10 Download
Lun 01 Ago 2011, 3:31 am por gugubot

» Multi IP Changer Tibia 7.1 - 9.1 Download
Lun 01 Ago 2011, 3:31 am por gugubot

¿Quién está en línea?

En total hay 1 usuario en línea: 0 Registrados, 0 Ocultos y 1 Invitado

Ninguno


[ Ver toda la lista ]


La mayor cantidad de usuarios en línea fue 136 el Jue 03 Mar 2011, 6:01 pm.


    [8.20] Para TU OTServer

    Comparte

    Carlos51
    Medio Noob
    Medio Noob

    Masculino
    Cantidad de envíos : 61
    Edad : 23
    Localización : Venezuela
    Fecha de inscripción : 05/07/2008

    [8.20] Para TU OTServer

    Mensaje por Carlos51 el Mar 15 Jul 2008, 2:19 pm

    8.20] Para tu Servidor!
    Aqui les dejo un Pack para su Servidor 8.20
    Ya estoy arto de que me pidan cosas para un Serv 8.20, y pues aqui les traigo unas utilidades:

    Sources 8.20 (SVN)
    Descarga:
    http://opentibia.svn.sourceforge.net/viewvc/opentibia/otserv/branches/otserv82/

    Monster: (Son los mios, Beta Test)


    Codigo | Nombre (del Monster)
    301 - Earth elemental
    300 - Grim Reaper
    299 - Bograider
    298 - Skeleton Warrior
    297 - Variation of goblin
    296 - Variation of goblin
    295 - Giant rotworm
    294 - Wisp
    293 - Energy elemental (Azul)
    292 - Giant pumpkin
    291 - Wyrm
    290 - Massive energy elemental (Morado)
    Outfits: 289 - Demon Hunter MALE
    Outfits. 288 - Demon Hunter FEMALE
    287 - A new kind of vampire? it rox.
    286 - Water elemental
    285 - Massive earth elemental
    284 - Cockroach

    PD: El Sea Serpent, Sale en el Codigo 278 (por hay, solo busquen).
    ______________________________

    Items 8.20: (Otro Test, by me!)

    Descarga:
    http://rapidshare.com/files/124958387/items.rar
    ______________________________

    Npc 8.20: (Need, el nuevo System de los Npc, es decir los new Sources)

    Sacus.xml
    <!-- Este es un Ejemplo usando el Jiddo's NPC system -->
    <!-- Esto no va en game spawn -->

    <!-- Modificado por sacus maro -->
    <npc name="Sacus" script="82test.lua" autowalk="0">
    <health now="150" max="150"/>
    <look type="289" head="140" body="64" legs="121" feet="76" addons="3" corpse="2212"/>
    </npc>

    8.2test.lua (Npc de Runas )

    local focuses = {}
    local function isFocused(cid)
    for i, v in pairs(focuses) do
    if(v == cid) then
    return true
    end
    end
    return false
    end

    local function addFocus(cid)
    if(not isFocused(cid)) then
    table.insert(focuses, cid)
    end
    end
    local function removeFocus(cid)
    for i, v in pairs(focuses) do
    if(v == cid) then
    table.remove(focuses, i)
    break
    end
    end
    end
    local function lookAtFocus()
    for i, v in pairs(focuses) do
    if(isPlayer(v) == TRUE) then
    doNpcSetCreatureFocus(v)
    return
    end
    end
    doNpcSetCreatureFocus(0)
    end

    local itemWindow = {
    {id=2160, charges=0, buy=10000, sell=10000},
    {id=2152, charges=0, buy=100, sell=100},
    {id=2148, charges=0, buy=1, sell=1},
    {id=2173, charges=0, buy=10000, sell=5000}
    }

    local items = {}
    for _, item in ipairs(itemWindow) do
    items[item.id] = {buyPrice = item.buy, sellPrice = item.sell, charges = item.charges}
    end

    local function getPlayerMoney(cid)
    return ((getPlayerItemCount(cid, 2160) * 10000) +
    (getPlayerItemCount(cid, 2152) * 100) +
    getPlayerItemCount(cid, 2148))
    end

    local onBuy = function(cid, item, charges, amount)
    if(items[item] == nil) then
    selfSay("Ehm.. sorry... this shouldn't be there, I'm not selling it.", cid)
    return
    end

    if(getPlayerMoney(cid) >= amount*items[item].buyPrice) then
    local itemz, i = doPlayerAddItem(cid, item, charges, amount)
    if(i < amount) then
    if(i == 0) then
    selfSay("Sorry, but you don't have space to take it.", cid)
    else
    selfSay("I've sold some for you, but it seems you can't carry more than this. I won't take more money than necessary.", cid)
    doPlayerRemoveMoney(cid, i*items[item].buyPrice)
    end
    else
    selfSay("Thanks for the money!", cid)
    doPlayerRemoveMoney(cid, amount*items[item].buyPrice)
    end
    else
    selfSay("Stfu noob, you don't have money.", cid)
    end
    end

    local onSell = function(cid, item, charges, amount)
    if(items[item] == nil) then
    selfSay("Ehm.. sorry... this shouldn't be there, I'm not buying it.", cid)
    end

    if(charges < 1) then
    charges = -1
    end
    if(doPlayerRemoveItem(cid, item, amount, charges) == TRUE) then
    doPlayerAddMoney(cid, items[item].sellPrice*amount)
    selfSay("Here you are.", cid)
    else
    selfSay("No item, no deal.", cid)
    end
    end

    function onCreatureAppear(cid)
    end

    function onCreatureDisappear(cid)
    if(isFocused(cid)) then
    selfSay("Hmph!")
    focus = 0
    if(isPlayer(cid) == TRUE) then --Be sure he's online
    closeShopWindow(cid)
    end
    end
    end

    function onCreatureSay(cid, type, msg)
    if((msg == "hi") and not (isFocused(cid))) then
    selfSay("Welcome, ".. getCreatureName(cid) ..".", cid, TRUE)
    selfSay("Do you want to see my {wares}?", cid)
    addFocus(cid)
    elseif((isFocused(cid)) and (msg == "wares" or msg == "trade")) then
    selfSay("Pretty nice, right?", cid)
    sendShopWindow(cid, itemWindow, onBuy, onSell)
    elseif((isFocused(cid)) and (msg == "bye" or msg == "goodbye" or msg == "cya")) then
    selfSay("Goodbye!", cid, TRUE)
    closeShopWindow(cid)
    focus = 0
    end
    end

    function onPlayerCloseChannel(cid)
    if(isFocused(cid)) then
    selfSay("Hmph!")
    closeShopWindow(cid)
    focus = 0
    end
    end

    function onPlayerEndTrade(cid)
    selfSay("It was a pleasure doing business with you.", cid)
    end

    function onThink()
    for i, focus in pairs(focuses) do
    if(isCreature(focus) == FALSE) then
    removeFocus(focus)
    else
    local distance = getDistanceTo(focus) or -1
    if((distance > 4) or (distance == -1)) then
    selfSay("Hmph!")
    closeShopWindow(focus)
    removeFocus(focus)
    end
    end
    end
    lookAtFocus()
    end

    ______________________________

    Creditos: yugioh y *******

    Sakura Haruno
    Moderador
    Moderador

    Femenino
    Cantidad de envíos : 52
    Edad : 24
    Localización : España
    Fecha de inscripción : 15/07/2008

    Re: [8.20] Para TU OTServer

    Mensaje por Sakura Haruno el Lun 25 Ago 2008, 5:06 pm

    Gracia lo Andaba Buscando Besos xD

      Fecha y hora actual: Vie 09 Dic 2016, 7:09 pm