-
Posts
162 -
Joined
-
Last visited
-
Days Won
5 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Deliris
-
-
7 hours ago, peakzinho said:
up
thanks allReplace: if (GuildID != 0) _snprintf(szBufName, sizeof(szBufName), "Name: %s - Guild: %s", CPythonPlayer::Instance().GetName(), &GuildName); else _snprintf(szBufName, sizeof(szBufName), "Name: %s", CPythonPlayer::Instance().GetName()); With this: if (GuildID != 0) _snprintf(szBufName, sizeof(szBufName), "Name: %s - Guild: %s", CPythonPlayer::Instance().GetName(), GuildName.c_str()); else _snprintf(szBufName, sizeof(szBufName), "Name: %s", CPythonPlayer::Instance().GetName()); char szLevel[256]; _snprintf(szLevel, sizeof(szLevel), "Level: %u", CPythonPlayer::Instance().GetStatus(POINT_LEVEL)); strcat(szBufName, szLevel);
-
-
Regarding the discord RPC, you could try something like this:
#include "InstanceBase.h" #include "PythonCharacterManager.h" CInstanceBase* pkMainInstance = CPythonCharacterManager::Instance().GetMainInstancePtr(); char info[32 + 1]; snprintf(info, sizeof(info), "Level: %u", pkMainInstance->GetLevel()); activity.SetDetails(info); /* You can get other player's informations such as player name, empire id, duel state, alignment, race, etc using the same object 'pkMainInstance', you can get a list of these functions from InstanceBase.h. */
'activity' is an object of type 'discord::Activity', you should adapt it to your source.
- 1
-
Heellooooooo, welcome ~~
-
item.cpp
void CItem::ModifyPoints(bool bAdd)
I think this is what you're searching for.
When bAdd is TRUE it will give the bonuses, when it is FALSE it will remove them.
-
Good job, nice
Thanks for the release
- 1
- 1
-
Good job!
But if you continue releasing free things I think I will lose all my customers XD
- 2
- 2
- 1
-
On 12/3/2020 at 1:29 AM, Vaynz said:
Change m2net with chat like this chat.SendChatPacket....
and import chat before this function at start file when you open it
Or import m2net
SendChatPacket is from module "net", therefore you will need to use it like this:
net.SendChatPacket(...)
@xP3NG3Rxhas the "net" module renamed to "m2net", this is why you get that error @dedif2.
- 2
- 1
-
I'm not that good with words so I'll just say this: THANK YOU, we needed this! ~~
- 4
-
2 hours ago, Sevence™ said:
new team metin2dev definitely does not cope with the administration of this forum.
nEw TeAm MeTiN2DeV dEfInEtLy DoEs NoT COpE WiTH thE AdmInIstRaTiON oF ThIS FoRuM
On topic: The important thing is that is online now
- 1
-
I think you forgot to add the skill id in function active_skill_list from questlib.lua.
Edit: Sorry, didn't see that someone answered already.
- 2
-
Hi, ASIKOO!
Are you new here? Welcome!!
- 1
-
Am I the only one who thinks that it looked better then?
- 1
-
And now that you "released" it, what do you think will happen ?
- 4
-
I wish I was a good person too...
Spoilercheck my profile for contact info.
- 1
-
Spoiler
SYSERR: Jun 11 01:05:47.699160 :: Analyze: Handshake phase does not handle packet 3 (fd 17)
SYSERR: Jun 11 01:05:47.699234 :: Process: SEQUENCE 35ce6300 mismatch 0xaf != 0x2f header 3
SYSERR: Jun 11 01:05:47.699271 :: Process: SEQUENCE_LOG [UNKNOWN]-------------
[003 : 0xaf]Fix sequence.
Off: Next time use spoiler, please.
- 1
-
uiCharacter.py:
def RefreshStatus(self):
...
...
...
if unsigned32(player.GetStatus(player.EXP)) > your_limit_value_or_idk:
show_dialog_and_set_default_value(your_limit_value_or_idk - unsigned32(player.GetStatus(player.EXP)))
Something like that I think...
-
Hi there,
If I am not mistaken, you could check in uiCharacter the function that sets the player's EXP and if it exceeds the limit to show that dialog.
- 1
-
You could insert into a vector the damage taken and the player instance or player id, doesn't really matter.
After the boss is killed you can just loop through the vector and see who did the most damage.
Hope it helped.
-
7 hours ago, Cripplez said:
Ok I fixed all the syserr and now it is empty, but when i use the item 71032 it doesnt show this:
self.probText.SetText(localeInfo.REFINE_SUCCESS_PROBALITY % (self.percentage2))
Maybe it is not correct using this here for what I need?
if itemVnum == 71032: self.probText.SetText(localeInfo.REFINE_SUCCESS_PROBALITY % (self.percentage2)) else: self.probText.SetText(localeInfo.REFINE_SUCCESS_PROBALITY % (self.percentage))
Maybe I'm wrong but I think you should make use of 'type' instead of itemVnum. You can get a list of all refine types from source.
-
Show us cmd.cpp from game/src.
-
32 minutes ago, Crital said:
Mine server has .txt files for item_names and mob_names when I view them with WinSCP. What files should I edit to change the displayed text-ingame?
Should I edit the files from WinSCP, with Navicat or both? I'm confused.
Guess what?
All of them + client item and mob_proto.
-
Hi there, you could try doing this:
dam *= 1.2 + (float)(iTestDamage / 100); or dam *= 1.2 + (double)(iTestDamage / 100);
Choose whats best for you.
-
Enable Scaling for Buttons
in Programming & Scripts
Posted
M2 Download Center
Helloo!
Someone asked if there's a way to scale buttons and since Metin2 doesn't support this by default, I decided to make this small tutorial.
Sincerly,
Finnis.