Jump to content

emanuel

Inactive Member
  • Posts

    324
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by emanuel

  1. Hello guys,i have some bug i think..or it's on my source ..?

    I use item_proto.txt

    So..when i change in item_proto.txt a name from a item,that line : ITEM_NAME line, item dissapear from stone drop,when i change name of that item , that item dissapear from stone drop,i check in source,mob_drop_item.txt,..sometimes items put themselves on stones drop..because of ITEM_NAME(K)..someone know whatt is the problem ?

  2. Hello , i have a little problem..who is pretty nice and help me...

    i use this code in my questlib.lua :

    out = mysql_query("SELECT * FROM player.mob_proto;", "root", "password")
    mob._data = out
    mob._idx  = {}
    table.foreach(out.vnum,
        function(i,p)
            mob._idx[p]=i
        end
    )
    
    setmetatable(mob,{
            __index = function(this,idx)
                local exec = string.gsub(idx,'get_(%.+)','%1')
                if this._data[exec] ~= nil then
                    return function(moid)
                        return this._data[exec][this._idx[moid or npc.get_race()]]
                    end
                else
                    return function() return 0 end
                end
            end
        }
    )

    ok..but i get a error on that line :

    table.foreach(out.vnum,

    this error :

    locale/en/quest/questlib.lua:1985: bad argument #1 to `?' (table expected, got nil)

    Any one know why ?..thank youu !

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.