Jump to content

Asentrix

Member
  • Posts

    33
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Asentrix

  1. locale_xx/ui/systemdialog.py if you want to remove a button you have to remove it from there, and remove it too from root/uisystem.py
  2. sorry, my mistake. go to database table player -> land there you can edit the price/level_limit.
  3. it comes from here: local price, owner, guild_level_limit = building.get_land_info(land_id) so it takes the price, level from ALUA(building_get_land_info) (game/questlua_building.cpp) check it, you should be able to change it from there
  4. I checked the code in that thread, actually it should work but since you'll add it in void CInputLogin::Entergame so it will be applied when you sign out and log in again so bonuses are applied.
  5. Leakers be like: good luck Vegas with your sales, you're one of the great metin2 devs.
  6. Leakers be like: good luck Vegas with your sales, you're one of the great metin2 devs.
  7. Just use command passwd I think Edit: I think you meant reset not changing, I missunderstood you anyway to reset see freebsd faq: [Hidden Content] but in virtualbox you don't have to write "boot -s" to enter single-user mode, you can just enter it by clicking the number beside "Single User Mode" to enter it
  8. about the coordinates, it should be able to be divided by 256
  9. you have to add |cff + hex color search google for Hex colors for example hex color for red is #FF0000 so to use it |cffFF0000 so it will be like: REFINE_SUCCESS_PROBALITY |cffFF0000Successrate: %d%%
  10. locale_game.txt search for: REFINE_SUCCESS_PROBALITY you can edit the color from there
  11. in ui.py in class RadioButton(Button): you have: def OnMouseOverIn(self): if self.overFunc: apply(self.overFunc, self.overArgs ) def OnMouseOverOut(self): if self.overOutFunc: apply(self.overOutFunc, self.overOutArgs ) def SetOverEvent(self, func, *args): self.overFunc = func self.overArgs = args def SetOverOutEvent(self, func, *args): self.overOutFunc = func self.overOutArgs = args move them to class Button(Window):
  12. class TitleBar in ui.py doesn't have def CloseButtonHide it's true that you have def CloseButtonHide in ui.py, but it's inside another class (class HorizontalBar) not the titlebar
  13. pkg install python27 didn't work too?
  14. compare this def with another one, I see some differences here def SetPrivateShopBuilderItem
  15. I think that problem is coming from uitoolip.py, can you show it?
  16. probably to be different (1 differs from 2 and etc) anyway, If I want to do something like that I would do it like this: quest randdrop begin state start begin when 11505.click begin local randitems = { -- {vnum, count} {27001, 1}, {27002, 1} } local rndnum = math.random(table.getn(randitems)) game.drop_item_with_ownership(randitems[rndnum][1], randitems[rndnum][2]) end end end
  17. Since you already (I guess) know how to add buttons you should create a function in c++ and use that function when someone click the button One of the ways is to make new command in c++ and use that command by net.SendChatPacket in Python in that button(but I don't recommend this way much, just giving an idea)
  18. Seems like you have some syntax errors (maybe you forgot a } or something like that)
  19. your problem is clear, "attempt to compare nil with number" if you can't solve just put the quest
  20. yes, and that's why I posted a fix ?
  21. Hey all, easy to fix but I'm releasing because I realized many of servers(and devs) have this problem problem description: when you enter decimal number in Won Exchange window (like 1.5) it will be exchanged for 150,000,000 but it will remove 1 won only so you got yang more than you should get. after checking some cheque systems (including WLsj24 ones) in quests they have check like: if ((amount < 1) or (amount >19) or (amount == nil)) then and it's true except that check from 1 to 19 includes decimal numbers too so if you write 1.5 it will be exchanged to 150,000,000 and only remove 1 Won so you should put a check for INT, you can modify it to be: if ((amount < 1) or (amount >19) or (amount == nil) or (math.floor(amount) ~= amount)) then (if the floor of amount is equal to amount so it's INT, otherwise it's not int) Best Regards.
  22. cd /usr/game search for cores file then db folder then conf.txt (path may differ)
  23. there's nothing wrong in your modification for me I think it's somehow related to encoding (because of notepad++) can you try and edit the item_proto by normal notepad? (not ++) and tell us the result? (just to make sure what's causing the problem) seems like you're using marty's sama source, PROTO_FROM_DB = 1/0 // enable/disable item/mob proto loading from db (otherwise, .txt) MIRROR2DB = 1/0 // convert .txt protos to .sql ones you can adjust it from these 2 options at DB/Conf.txt
×
×
  • 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.