Jump to content

PACI

Developer
  • Posts

    402
  • Joined

  • Days Won

    18
  • Feedback

    0%

Posts posted by PACI

  1. You can try something like this at your uiInventory.py:

    for i in xrange(180):
    	itemVnum = player.GetItemIndex(i)
    	if itemVnum > 0:
    		item.SelectItem(itemVnum)
    		if shop.IsOpen() and item.IsAntiFlag(item.ANTIFLAG_SELL):
    			self.wndItem.LockSlot()
    		else:
    			self.wndItem.UnlockSlot()
    

    I don't really know if this method does this without problems, you must try yourselves and even find other ways to do it.

  2. M2 Download Center

    This is the hidden content, please
    ( Internal )

    Hey.

     

    Some days ago I saw here Think's post about the /cube crash.

     

    So, this system was made with the purpose of helping those who still don't use the metin2 source files, since the /cube command misses some needed checks, that allow a normal player to send the whole server down. I don't know if there're diff to fix it, so that's why I made it.

     

    This system doesn't uses the /cube command. It works by a quest and lua functions that communicate with the client through cmdchats. So if you want to use it, first make sure that your cube command is deactivated via diff or CMD.

     

    Note that this system may have some bugs and it has been tested on a 34083 environment, I don't know if it works with 2089 - it should -, or less (who use them anyway?).

     

    Known bugs/not included features:
        - If we insert more than the items needed to create an item, it'll return "Not enough material" - So.. We must insert the EXACT amount of items to refine smth.
        - If at the cube.txt we have at the same npc the same reward item, but different needed items to create it, the system will only include one of them and use the "or" feature. And use the first material icon. E.g: https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

     

    There's also a kind of guide of the python-side in the download to install it.

     

    Download:

    This is the hidden content, please

    • Metin2 Dev 14
    • Sad 1
    • Cry 1
    • Good 3
    • Love 14
  3. if pc.get_level() >= 80 and pc.get_level() <= 50 then

    Wtf... How can this ever be possible? Whatever your level is, this codition is always false, you're saying this:

    if the players' level is superior or equal than 80 and minor or equal than 50 then do something

     

    But how can a number be >= 80 and at the same time <= 50? Try this anyway:

    if pc.get_level() >= 50 and pc.get_level() <= 80 then
  4. Actually it wouldn't Denis, 'cause here:

    if (string.len(pw) >= 6 and string.len(pw) <= 12) and (string.match(pw, "%W") == nil) then

    pw wasn't declared, and you want to check the password variable content, so instead of pw it must be password. Also, maybe I'm wrong, but some special characters (e.g: say("~smth~")) don't work, so I guess you might add a space at the beginning of your send_letter(). Anyway, you should check what your syserr says.

    • Love 1
  5. lol he's trying to help you by teaching you how to write better quests without using useless code n shit, and you're answering bullshit. That's bad, really bad.

    In this case, teaching you how to write queries.

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