Jump to content

PACI

Developer
  • Posts

    402
  • Joined

  • Days Won

    18
  • Feedback

    0%

Everything posted by PACI

  1. You can open it through your interfaceModule.py: AskSafeboxPassword()
  2. Try this then: Add the changes made by Sanchez Now open your interfaceModule.py, search for the MakeHyperlinkTooltip function and make it look like this: Should be enough I think.
  3. You can do it without touching your source-code with something like: if number(1,100) > 90 then return end pc.set_skill_level(skillVnum, pc.get_skill_level(skillVnum) + 1)
  4. Yeah I wrote it wrong, then I saw the error, and edited my post, but glad that you did what you wanted
  5. Try it like that: self.AppendTextLine("[%d]" % itemVnum)
  6. Just use the function I said, and should work properly.
  7. player.GetItemIndex(slotPos) However, the uiToolTip.ItemToolTip.AddItemData() already receives an item vnum, so you must only print it.
  8. That's right, I haven't seen your tooltip events, so you must edit those sentences with your tooltip events' name.
  9. OnMouseOverIn() and OnMouseOverOut() are the called to run the MouseEvent functions, you can't use them to set a mouse event. You better use: self.itemImage.SAFE_SetStringEvent("MOUSE_OVER_IN", self.ShowToolTip) self.itemImage.SAFE_SetStringEvent("MOUSE_OVER_OUT", self.HideToolTip)
  10. If you search further, you'll see that this was made by Sanchez a few time ago:
  11. seconds * minutes * hours * days * years So to one day, keep only de 3600s (which is 60 * 60 * 1).
  12. I think the dice func was already fixed on the 40k sources, so there's no need to change it.
  13. Is this what you want? local party_pids = {party.get_member_pids()} local party_jobs = {} for i = 1, table.getn(party_pids) do q.begin_other_pc_block(party_pids[i]) party_jobs[pc.get_name()] = pc.get_job() q.end_other_pc_block() end for char_name, char_job in pairs(party_jobs) do say(char_name.." job is "..char_job) end
  14. You know we tried to deal this with each other, however it wasn't possible. You even paid and because of some connection issues you couldn't receive the dungeon, so I gave your money back again.
  15. I did not understand what are you asking for. So you want to activate an event through a GM character, but each non GM character can deactivate itself from the event, am I right?
  16. That is really weird, does it generates any game.core?
  17. We don't know why you want to decrypt it, who knows if you're using a server's leaked db to get the users' password.
  18. pc.give_exp() takes two args: string & int. Better post your quest, that's weird.
  19. In that case you can use this func regen_in_map(mapIndex, regenPath) when you are starting the event. Also, using a kill event giving the mob vnum to start a server_timer in 8 hours which uses the function I said to respawn the mob.
  20. You can use the a when login statement as kima said, using this function: mob.spawn(mobVnum, x, y, count)
  21. 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.
  22. Well you can write the code by yourself if you see the logic on each condition from the object folder.
  23. M2 Download Center Download Here ( 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: [Hidden Content] There's also a kind of guide of the python-side in the download to install it. Download: [Hidden Content]
×
×
  • 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.