Jump to content

adi97ida

Inactive Member
  • Posts

    30
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by adi97ida

  1. Here's a little quest:

    quest drop_bonusuri begin
        state start begin	
            when kill with not npc.is_pc() and pc.get_level() <= npc.get_level() begin
    			local numar = number(1,3)
    			local sansa = number(3,21)
    			if sansa == 11 then
    			game.drop_item_with_ownership(71084,numar)
    				if numar == 1 then
    					syschat("Ai primit "..numar.." Schimbator de Bonusuri!")
    				else
    					syschat("Ai primit "..numar.." Schimbatoare de Bonusuri!")
    				end
    			else
    			end
    		end
    	end
    end
    			
    
    • Love 1
  2. Hello, I compiled the source on windows, when I run the DB everything is ok, but when I start the game-server i get this error:

    Game-Server syserr

    "CInputDB::Boot: ITEM ID RANGE size error"

    Screenshots:

    EROARE1.png

     

    EROARE2.png

     

    Does someone have any idea ??

     

    P.S.:

    conf.txt : ITEM_ID_RANGE = 2000000000 2100000000

     

    Thank you in advance .

     

     

  3. Open your uiinventory.py and search for this : def RefreshBonus(self):

    Go to this part:

     

    except:
    import exception
    exception.Abort("InventoryWindow.RefreshBonus.BindObject")
     
    and do like this:
     
    except:
    import exception
    #exception.Abort("InventoryWindow.RefreshBonus.BindObject")
     
     
    • Love 3
  4. Hello, i'm using a self-compiled binary, it works flawless, but i have a big problem, it seems that there is no shining on the armors , or on the weapons.

    I'm using the new type of item_proto, the client base is from metin2de, i checked playersettingmodule for the lines containing the effects, the effects are in the right folder , but, still, there's no shinings ....

    Does someone have a clue about what can possibly be the problem?

    Thal you guys in advance.

  5. Hello,

    Today, i made a quest that drops some items if you break a metin stone.

    You get these items from the stone only if the differencte between player's level and metin's is no more than 15.

    Here's the code :

    quest drop_metine begin
    state start begin
    when kill begin
    if npc.get_race() >= 8001 and npc.get_race() <= 8055 then
    	local mob = npc.get_level() + 15
    	local nivel = pc.get_level()
    	local sex = pc.get_sex()
    	local sansa2 = math.random(1,3)
    	local sansa3 = math.random(1,2)
    	chat("Nivelul metinului "..mob.."")
    	if nivel >= mob then
    	notice("Nivelul tau este prea mare pentru a primii rasplata...")
    	else
    		if sansa2 == 2 then
    			if sex == 0 then
    				game.drop_item_with_ownership("71159",1)
    			else
    				game.drop_item_with_ownership("71160",1)
    			end
    		game.drop_item_with_ownership("50130",1) -- cufar pietre
    		game.drop_item_with_ownership("50130",1) -- cufar pietre
    		game.drop_item_with_ownership("50130",1) -- cufar pietre
    		game.drop_item_with_ownership("50513", sansa3) -- Drop SS-uri
    		local aux = pc.getqf("metine_sparte") + 1
    		pc.setqf("metine_sparte", aux)
    		chat("Metine Sparte "..aux.."")
    	notice("Ai fost rasplatit!")
    		end
    	end
    end
    end
    end
    end

    The problem is that the "if nivel >= mob then" condition is not always happening...

    For example:

    My character is level 95, the level of the metin i kill is 90, after i break the stone, the "chat("Nivelul metinului "..mob.."")" message appears, but the condition is not evaluated anymore.

    This also happens if the difference is bigger than 15 levels......

    Sometimes the condition is evaluated, sometimes is not.

    Can someone tell me what's wrong?

    Thank you in advance.

     

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