-
Posts
33 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Asentrix
-
-
3 hours ago, santa12 said:
editing in this file does nothing.
sorry, my mistake.
go to database
table player -> land
there you can edit the price/level_limit.
-
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
-
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.
-
2 hours ago, Creo said:
How can I reset root password at virtualbox freebsd 9.2? I don't remember it
Just use command passwd I think
Edit: I think you meant reset not changing, I missunderstood you
anyway to reset see freebsd faq:
https://www.freebsd.org/doc/en/books/faq/admin.html#idp49286264
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
-
about the coordinates, it should be able to be divided by 256
On 6/28/2020 at 9:42 PM, TMP4 said:If the coordinates of the map can't be divided by 256, it will cause a lots of problem. (2600000/256=10156.25 so it will be bad)
For example the server_attr will be slided, so the block, pvp, water areas will not 100% there where you placed, also if you go to the slide's opposite side you'll get kicked out because there is nothing there according to the server, because it is slided in the other way
(This is because the maps are stricted to areas, and 1 area's size is 256x256)
- 2
-
-
1 minute ago, semoka10 said:
How precisely?
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%%
- 1
- 1
-
locale_game.txt
search for:
REFINE_SUCCESS_PROBALITY
you can edit the color from there
-
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):
- 1
-
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
-
22 minutes ago, lutherko said:
for mysql it worked and for python 2.7? once again same error
pkg install python27
didn't work too?
-
compare this def with another one, I see some differences here
def SetPrivateShopBuilderItem
-
I think that problem is coming from uitoolip.py, can you show it?
-
On 8/8/2020 at 10:08 PM, Finnael said:
Is there a reason to not write the code like this? Am I missing something?
if s >= 1 and s <= 7 then game.drop_item_with_ownership(Vnum ITEM, Quantity) elseif s == 8 then game.drop_item_with_ownership() end
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
- 1
-
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)
-
1 hour ago, Ulthar said:
hello, i have some problem with it...
there is the picturewhat should i do? or what did i wrong?
Help me please.Seems like you have some syntax errors (maybe you forgot a } or something like that)
-
Spoiler
- 1
-
3 hours ago, Bizzy said:
hmm when a make it like 1,5 or 1.5 nothing happend
https://metin2.download/picture/Q06z2ZOYdVeS37u6PMOSfongXoFjBc5W/.png
your problem is clear, "attempt to compare nil with number"
if you can't solve just put the quest
- 1
-
41 minutes ago, TMP4 said:
They actually do since they just copy paste from tutorial. I saw several P server what came to this glitch.
The quest what contains this is official and from gayF, when they introduced cheque they had this bug too for a couple days
yes, and that's why I posted a fix
-
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.
- 1
-
cd /usr/game
search for cores file then db folder
then conf.txt
(path may differ)
-
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)
QuoteOne last thing ... How can I convert item-proto from text to Navi-cat
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
-
QuoteOn 8/28/2014 at 8:47 AM, martysama0134 said:
Lzo is a data compression algorithm. It compress data and there are no "lzo keys".
On the other hand, XTEA is a block cipher which uses a 8 byte key to encrypt/decrypt data.
static DWORD s_adwEterPackKey[] = { 45129401, 92367215, 681285731, 1710201, }; static DWORD s_adwEterPackSecurityKey[] = { 78952482, 527348324, 1632942, 486274726, };
you have to go to EterPack/EterPack.cpp
search for
static DWORD s_adwEterPackKey and static DWORD s_adwEterPackSecurityKey
you'll find them as quoted from MartySama0134
you have to change these keys (you can use Xtea Keys Generator, Credits: MartySama:you'll have output like:
you have to replace the keys in static DWORD s_adwEterPackKey & static DWORD s_adwEterPackSecurityKey in your eterpack.cpp with the new keys from the generated keys then compile the binary, then change the Hex keys in your Packer [This example uses EterNexus](some packers will require the whole key (enclosed in [ ])
after that you have to repack the pack folder again (root, locale, etc) with new keys.
- 72
- 5
- 1
- 4
- 1
- 1
- 16
- 1
- 41
-
36 minutes ago, ZoomDown said:
So to be clear, what do you suggest me to do?
xP3NG3Rx told you what to do.
- 1
Remove/edit buttons from menu (ESC)
in Community Support - Questions & Answers
Posted
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