Denny2399
-
Posts
119 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Denny2399
-
-
-
-
#up
Still can't get it to work. -
58 minutes ago, xP3NG3Rx said:
The player.GetItemAttribute([slotWindow=INVENTORY,] slotPos, attrIndex) returns a tuple, don't forget.
attrCount = 0 for i in xrange(player.ATTRIBUTE_SLOT_NORM_NUM): if player.GetItemAttribute(dstSlotWindow, dstSlotPos, i)[0] != 0: attrCount += 1 if attrCount < 4: return True return False
You made new const for it right? Can you point me to how to do that too please?
I would like to make one for normal bonus checking and 6/7 bonus checking. -
11 minutes ago, ragem0re said:
where does the attrCount variable get changed in your code?
I don't understand python much, but it should be here:
Spoilerif attrCount<(number of attributes):
return False
The variable is only present in the definition -
21 minutes ago, ragem0re said:
check your binary source code UserInterface\PythonPlayerModule.cpp
Should I use ATTRIBUTE_SLOT_MAX_NUM instead? -
2 hours ago, ragem0re said:
player.METIN_SOCKET_MAX_NUM think thats not a default constant. does it return ITEM_SOCKET_SLOT_MAX_NUM (3)?
Well I've checked multiple roots with uiinventory script an there is the same code, can't find that constant anywhere too. Where can I find out what it returns?
-
Hello,
Can anyone experienced help me out a little with this piece of code?
It should consider number of bonuses when adding new, but it doesn't. Maybe the function attrcount is wrongly defined?
The define checks if you can add bonus into an item and highlights with red or green.
Spoilerdef __CanAddItemAttr(self, dstSlotPos):
dstItemVNum = player.GetItemIndex(dstSlotPos)
if dstItemVNum == 0:
return Falseitem.SelectItem(dstItemVNum)
if not item.GetItemType() in (item.ITEM_TYPE_WEAPON, item.ITEM_TYPE_ARMOR):
return False
attrCount = 0
for i in xrange(player.METIN_SOCKET_MAX_NUM):
if player.GetItemAttribute(dstSlotPos, i) != 0:
return Trueif attrCount<4:
return False
return False -
Got it all, I updated a define a little bit and added one for special bonuses. Thanks for help anyway.
#closed -
https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif
-
-
1. mysql -u root -p
2. create user 'root'@'localhost' identified by 'password you wish';
3. grant all privileges on *.* to 'root'@'localhost' identified by 'same pass' with grant option;
4. flush privileges;
5. exit
You can also create a completely new user where you put instead of 'root@'localhost' - 'user'@'%'. Don't forget to add privileges.
Now you should be able to connect from your MySQL client to the server using IP of the virtual machine, chosen username and password.
If you need further assistance send me a DM.
Regards.- 1
-
Hello, I've recently downloaded game files with source and when I want to add bonus, the item highlights in red, but it should be green, because I can add it. Does anyone know where to look to change this?
-
43 minutes ago, Istny said:
i'm using v141 toolset without any problems
Using mainline? Can you tell me how did you open it etc.?
-
Hello guys,
I've recently downloaded mainline source(client and server).
Client is on v90(vs 2008) tool set, which is quite old and I'm interested in updating to atleast v120(vs 2013).
Is there any way to do it? -
On 6/24/2018 at 12:24 PM, Sonitex said:
Did anyone else experience a problem with expansions dissapearing after like 10 minutes of players inactivity? It gets saved in database succesfully, but then if a player logs off, expansions will dissapear and you will have to unlock them once again. Records in database do not get deleted, but they do reset once the player unlocks 1st expansion for the 2nd time.
Edit: Issue was laying in ClientManagerPlayer.cpp
Can you point out where please?:)
-
On 7/3/2018 at 1:51 PM, unnamed said:
So i downloaded them and put vdi file into Virtualbox,then logged with root/pass and then nothing happens.I guess i have to join it into some kind of IP so i can join into IP with FIlezilla and client later on,right ?Cause i saw a lots of vids already and with Daroo files Virtualbox asked you for IP literally after you logged into Virtualboox root.Can you help me via skype or something ? Im making stupid little mistakes that can be explained in 1 sentence.
Btw. i had problem with this.Do you think i need realtek family controller or i can use the mentioned one ? Thanks!
//edit
Typed ifconfig,got IP from it ending with .101 but i cant join with filezilla (
Status: Connecting to 192.168.178.101...
Response: fzSftp started, protocol_version=8
Command: open "[email protected]" 22
Error: Connection timed out after 20 seconds of inactivity
Error: Could not connect to server)
Bridged adapter im using is still Qualcomm Atheros.
//edit 2
I tried to configure it through sysinstall and changed IP to one in hamachi(ofc changed ending to .100),changed adapter to Hamachi but i found something strange.Filezilla cant connect into virtualbox but WinSCP can.
When i try to join in fillezilla virtualbox sends this - "host sshd : fatal: matching cipher is not supported: [email protected] (preuth)
Hey, sorry for a late response, I was busy. We can surely figure this out through skype, just pm me your nick
-
On 6/30/2018 at 10:23 PM, unnamed said:
Learning C++ is something i wanted to do before,so im glad to hear that.So now i have to found source for metin2 server & client? Like this ?
Ofc i want something with source cuz without source you cant add new things into games,right ? (I dont mean items or armor/weapons type of sh*t)
Is this the ideal file to start with ? And is it still best choice to go with 40k files ? Cuz there is this guy with 71k.
*Sorry for my dumb questions lol.
Not a problem buddy, everyone has to start somewhere. Well most of the people are using 40k these days and someone told me that vanilla core is bad(no offense). But that's an opinion. Also vanilla doesn't have makefiles done, so it is a bit complex to compile.(I didn't succeed so imagine how much I know about these things xd)
I would start with: Fliege Files "Reworked"Those are fliege's files, they say they are clean and I think 60k version(not sure) - I'm now testing them out too.
But he has vdi ready to compile there.. you can just load that up and if you change something there and compile you can easily move it to your game folder and replace current game/db.. Your game can be on newer version of fbsd and you just move those files from one system to another.
Lunia-Network files are also nice, but I've found some faults like some systems were not implemented fully. -
7 hours ago, unnamed said:
Hey,because most of SFs are outdated and 90% of links are removed i want to start from the bottom,with 40k SF (idk which one is better,40250 or 40424 or 40267,is there anyone who can tell the difference?)but without lycan.I need clean 40k without lycan and there are many people asking for source binary code or smthng like that which i dont understand.(Cuz from YT tutorials i just saw people downloading 8gb vdi files which are probably already compiled MT2 Server files,right ?)
So i just wanted after spending hours looking for good tutorial in english.
- Which SF is best to start ? I get it that its probably 40k because 34k is outdated and newer are hard to find,but which from the 40250,40424,40267 if i dont want lycan in ? + if somebody has clean link that is not outdated,i would be grateful !
- How does this whole thing work,you work in C++ or python and then you compile it to .vdi and you run virtualbox and thats it ? + If there is good english tutorial for it,please!
Thanks!
Unfortunately, there are not many tutorials like that.
Lycan can be easily disabled in any source. There are leaked sources from Ymir/Webzen somewhere on the internet and people build upon them or build their own sources from scratch(What is complicated to me as well to understand how).
Basically, source uses C++ scripting language on both sides - Like Serverside, so is Clientside.
On side of the server, you compile it to 2 binaries(database and game) - Which you can find usually /usr/home/game or /usr/home/database - but you can put them anywhere you want(Don't forget to link them in your starting script of the server)
On side of the client, it's only the .exe file as far as I know.
People are trying to have the newest one version(which is not necessarily better than the older one) but to implement new stuff you need a new core too.
Python is more like the surface of the client - position of the graphics etc.(I may not be right if so correct me, please)
Also, there is language called LUA for quests.
I hope I pointed some major things you asked and wish you good luck on your journey.
Also If anyone wants to add something more, I would be glad, because I'm interested in it too. -
Hello, I'm searching for "full" & "fixed" belt system like this one:
http://wiki.metin2.co.uk/index.php/Belt_System
If anyone doesn't mind to share it, thanks in advance.
(Sorry for not posting this into file requests, no one seems to read those) -
Hello Guys or Girls. I would like to know, if anyone can create new subtype and tell me how to do it. I would really appreciate your help.
Kind Regards. -
-
-
Help with bonuses
in Community Support - Questions & Answers
Posted
The function was like this when I downloaded the client and so is in every client I tried to look into. It's part of the uiinventory.py where it checks if you can put item to destination item. I didn't edit this script in any way and should be then functional? But it's not. Even though I have a value of true it doesn't seem to work and numbers of attrCount don't change anything. I tried putting there elif with different value and return, still didn't succeed. It behaves like attrCount does nothing.
I guess the function is incomplete as you say.
Also, there should be true in my opinion as well
if attrCount<4:
return True
else:
return False
Did not work.