Jump to content

Necro

Premium
  • Posts

    236
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    0%

Posts posted by Necro

  1. I trew:

     

    function name()
        local jmeno = mysql_query("SELECT name from player_test.player WHERE name='"..pc.get_name().."' LIMIT 1")
    end
    when [test_quest.name(jmeno[1])].server_timer begin

    and that:

    		when (mysql_query("SELECT name from player_test.player WHERE name='"..pc.get_name().."' LIMIT 1")).server_timer begin
    

    but result is the same: name must be give :/

  2. Hi, do you know, where can be problem?

    SYSERR: May  6 15:18:57 :: RunState: LUA_ERROR: locale/france/quest/object/state/lua_drop:1: attempt to index field `?' (a nil value)
    SYSERR: May  6 15:18:57 :: WriteRunningStateToSyserr: LUA_ERROR: quest lua_drop.start click 

    locale/france/quest/object/state/lua_drop:

    lua_drop={["start"]=0,drop= function (self)if dropList [ self ] . typ == "drop" then 
    local chance , count 
    table . foreach ( dropList [ self ] . dropps , function ( i ) 
    if dropList [ self ] . dropps [ i ] [ 3 ] ~= nil then 
    chance = dropList [ self ] . dropps [ i ] [ 3 ] 
    else 
    chance = 100 
    end 
    if dropList [ self ] . dropps [ i ] [ 2 ] ~= nil then 
    count = dropList [ self ] . dropps [ i ] [ 2 ] 
    else 
    count = 1 
    end 
    if math . random ( 1 , 100 ) < chance then 
    game . drop_item_with_ownership ( dropList [ self ] . dropps [ i ] [ 1 ] , count ) 
    end 
    end ) 
    elseif dropList [ self ] . typ == "limit" then 
    if dropList [ self ] . min_level == nil or dropList [ self ] . max_level == nil then return end 
    if dropList [ self ] . min_level > pc . level or dropList [ self ] . max_level < pc . level then return end 
    local chance , count 
    table . foreach ( dropList [ self ] . dropps , function ( i ) 
    if dropList [ self ] . dropps [ i ] [ 3 ] ~= nil then 
    chance = dropList [ self ] . dropps [ i ] [ 3 ] 
    else 
    chance = 100 
    end 
    if dropList [ self ] . dropps [ i ] [ 2 ] ~= nil then 
    count = dropList [ self ] . dropps [ i ] [ 2 ] 
    else 
    count = 1 
    end 
    if math . random ( 1 , 100 ) < chance then 
    game . drop_item_with_ownership ( dropList [ self ] . dropps [ i ] [ 1 ] , count ) 
    end 
    end ) 
    else 
    return 
    end 
    end }
    

    normal quest: 

     

    quest lua_drop begin
    
    state start begin
    when login begin
    dropList = {
    [8008] = {
    typ = "limit", -- type
    min_level = 35, -- mindestlevel
    max_level = 45, -- maxlevel
    dropps = {
    {50513, 1, 15}, -- dropeintrag (vnum, count, chance)
    {27992, 1, 1},
    {27993, 1, 1},
    {27994, 1, 1},
    {50034, 1, 100},
    {70005, 1, 5},
    {70024, 1, 5},
    {70102, 1, 5},
    {71084, 1, 35},
    {71085, 1, 35},
    }
    },
    -- Vrchní ork
    [691] = { 
    typ = "limit", -- type
    min_level = 10, -- mindestlevel
    max_level = 55, -- maxlevel
    dropps = {
    {50006, 1, 100}, -- dropeintrag (vnum, count, chance)
    {50008, 1, 100},
    {50007, 1, 100},
    {50009, 1, 100},
    {50070, 1, 100},
    }
    },
    -- Král démonů
    [1091] = { 
    typ = "limit", -- type
    min_level = 10, -- mindestlevel
    max_level = 55, -- maxlevel
    dropps = {
    {50006, 1, 100}, -- dropeintrag (vnum, count, chance)
    {50008, 1, 100},
    {50007, 1, 100},
    {50009, 1, 100},
    {50081, 1, 100},
    }
    },
    -- Královna pavouků
    [2091] = { 
    typ = "drop", -- type
    dropps = {
    {50006, 1, 100}, -- dropeintrag (vnum, count, chance)
    {50008, 1, 100},
    {50007, 1, 100},
    {50009, 1, 100},
    {50073, 1, 100},
    }
    },
    -- Želva
    [2191] = { 
    typ = "drop", -- type
    dropps = {
    {50006, 1, 100}, -- dropeintrag (vnum, count, chance)
    {50008, 1, 100},
    {50007, 1, 100},
    {50009, 1, 100},
    {50076, 1, 100},
    }
    },
    -- Devítiocas
    [1901] = { 
    typ = "drop", -- type
    dropps = {
    {50006, 1, 100}, -- dropeintrag (vnum, count, chance)
    {50008, 1, 100},
    {50007, 1, 100},
    {50009, 1, 100},
    {50077, 1, 100},
    }
    },
    -- Žlutý tygr
    [1304] = { 
    typ = "drop", -- type
    dropps = {
    {50006, 1, 100}, -- dropeintrag (vnum, count, chance)
    {50008, 1, 100},
    {50007, 1, 100},
    {50009, 1, 100},
    {50078, 1, 100},
    }
    },
    -- Král plamenů
    [2206] = { 
    typ = "drop", -- type
    dropps = {
    {50006, 1, 100}, -- dropeintrag (vnum, count, chance)
    {50008, 1, 100},
    {50007, 1, 100},
    {50009, 1, 100},
    {50079, 1, 100},
    }
    },
    -- Tmavý vůdce duchů
    [792] = { 
    typ = "drop", -- type
    dropps = {
    {50006, 1, 100}, -- dropeintrag (vnum, count, chance)
    {50008, 1, 100},
    {50007, 1, 100},
    {50009, 1, 100},
    {50072, 1, 100},
    }
    },
    }
    end
    function drop(self)
    if dropList[self].typ == "drop" then
    local chance,count
    table.foreach(dropList[self].dropps, function(i)
    if dropList[self].dropps[3] ~= nil then
    chance = dropList[self].dropps[3]
    else
    chance = 100
    end
    if dropList[self].dropps[2] ~= nil then
    count = dropList[self].dropps[2]
    else
    count = 1
    end
    if math.random(1, 100) < chance then
    game.drop_item_with_ownership(dropList[self].dropps[1], count)
    end
    end)
    elseif dropList[self].typ == "limit" then
    if dropList[self].min_level == nil or dropList[self].max_level == nil then return end
    if dropList[self].min_level > pc.level or dropList[self].max_level < pc.level then return end
    local chance,count
    table.foreach(dropList[self].dropps, function(i)
    if dropList[self].dropps[3] ~= nil then
    chance = dropList[self].dropps[3]
    else
    chance = 100
    end
    if dropList[self].dropps[2] ~= nil then
    count = dropList[self].dropps[2]
    else
    count = 1
    end
    if math.random(1, 100) < chance then
    game.drop_item_with_ownership(dropList[self].dropps[1], count)
    end
    end)
    else
    return
    end
    end
    when kill with not npc.is_pc() begin
    lua_drop.drop(npc.get_race())
    end
    end
    end

     

     

  3. Hi, i would like make a quest which give player more then 200items.

     

    So do you know someone how write it? Because when i use pc.give_item, system give only 200 items. and i cant write quest like that:

     

    pc.give_item("27001", 200)

    pc.give_item("27001", 200)

    pc.give_item("27001", 200)

    pc.give_item("27001", 200)

     

     

     

    Because i need give 10.000 items. 

     

     

    Thanks anyway

  4. M2 Download Center

    This is the hidden content, please
    ( Internal )

    Here is over 200 icons of belts. Enjoy
     
    Screen:

    Spoiler

    3128382RzYNUM.png.9de5f18de7869d5d3c5a63

     

    Download: https://mega.nz/file/CuIAGSjY#_YWAZW1sGe8yOx2D4Ixjlq88dhvFBov4LvD1dRT2d7c

    • Metin2 Dev 19
    • Eyes 1
    • Dislove 1
    • Smile Tear 1
    • Think 1
    • Good 11
    • Love 25
  5. I try it but i have little problem, might be someone will knoe answer.

     

    What i must modify in game src 

     

    I have already done:

     

    affect.h

     

    add : 

    	AFF_VIP,
    

    and

     

    char.cpp

     

    modify like that:

    			m_afAffectFlag.Set(AFF_YMIR);
    			m_afAffectFlag.Set(AFF_VIP);
    			m_bPKMode = PK_MODE_PROTECT;
    

    but ingame i still dont see new effect of VIP.

     

    Are any thing to edit in game src?

  6. I am not sure about this.

     

    I think that in src is only index of effect.

     

    Only in client is declared gm.mse ->

     

    ->  playersettingmodule.py 

    	chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+0, "Bip01", locale.FN_GM_MARK)
    

    -> locale.py

    FN_GM_MARK = "%s/effect/gm.mse"	% app.GetLocalePath()
    

    so the best way is find in src this -> 

    chrmgr.EFFECT_AFFECT+0

    and modify or copy.

    • Love 1
×
×
  • 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.