-
Posts
305 -
Joined
-
Last visited
-
Days Won
2 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by FlorinMarian
-
-
I don't have tutorial for new_pet system but maybe those codes will help you finding the right way:
game.py
if app.NEW_PET_SYSTEM: def SetPetEvolution(self, evo): petname = ["Jung", "Wild", "Tapfer", "Heroisch"] self.petmain.SetEvolveName(petname[int(evo)]) constInfo.PETMINIEVO = int(evo) def SetPetName(self, name): if len(name) > 1 and name != "": self.petmini.Show() self.petmain.SetName(name) def SetPetLevel(self, level): self.petmain.SetLevel(level) constInfo.PETMINILEVEL = int(level) def SetPetDuration(self, dur, durt): if int(durt) > 0: self.petmini.SetDuration(dur, durt) self.petmain.SetDuration(dur, durt) def SetPetBonus(self, hp, dif, sp): self.petmain.SetHp(hp) self.petmain.SetDef(dif) self.petmain.SetSp(sp) def SetPetskill(self, slot, idx, lv): #chat.AppendChat(chat.CHAT_TYPE_INFO, "slot %d %d" % (int(slot),int(idx))) self.petmini.SetSkill(slot, idx, lv) self.petmain.SetSkill(slot, idx, lv) self.affectShower.BINARY_NEW_AddAffect(5400+int(idx),int(constInfo.LASTAFFECT_POINT)+1,int(constInfo.LASTAFFECT_VALUE)+1, 0) if int(slot)==0: constInfo.SKILL_PET1=5400+int(idx) if int(slot)==1: constInfo.SKILL_PET2=5400+int(idx) if int(slot)==2: constInfo.SKILL_PET3=5400+int(idx) def SetPetIcon(self, vnum): if int(vnum) > 0: self.petmini.SetImageSlot(vnum) self.petmain.SetImageSlot(vnum) def SetPetExp(self, exp, expi, exptot): if int(exptot) > 0: self.petmini.SetExperience(exp, expi, exptot) self.petmain.SetExperience(exp, expi, exptot) def PetUnsummon(self): self.petmini.SetDefaultInfo() self.petmini.Close() self.petmain.SetDefaultInfo() self.affectShower.BINARY_NEW_RemoveAffect(int(constInfo.SKILL_PET1),0) self.affectShower.BINARY_NEW_RemoveAffect(int(constInfo.SKILL_PET2),0) self.affectShower.BINARY_NEW_RemoveAffect(int(constInfo.SKILL_PET3),0) constInfo.SKILL_PET1 = 0 constInfo.SKILL_PET2 = 0 constInfo.SKILL_PET3 = 0 def OpenPetMainGui(self): if constInfo.PETGUI == 0: self.petmain.Show() self.petmain.SetTop() constInfo.PETGUI = 1 else: self.petmain.Close() constInfo.PETGUI = 0 def OpenPetIncubator(self, pet_new = 0): import uipetincubatrice self.petinc = uipetincubatrice.PetSystemIncubator(pet_new) self.petinc.Show() self.petinc.SetTop() def OpenPetMini(self): self.petmini.Show() self.petmini.SetTop() def OpenPetFeed(self): self.feedwind = uipetfeed.PetFeedWindow() self.feedwind.Show() self.feedwind.SetTop()
uitooltip.py
Before import if app.NEW_PET_SYSTEM: def pointop(n): t = int(n) if t / 10 < 1: return "0."+n else: return n[0:len(n)-1]+"."+n[len(n)-1:] Before AddItemData if app.NEW_PET_SYSTEM: def check_sigillo(self, item_vnum): for x in range(55701,55706): if x == item_vnum: return TRUE if item_vnum == 55801: return TRUE return FALSE On AddItemData function, after ### Description ### self.AppendDescription(itemDesc, 26) self.AppendDescription(itemSummary, 26, self.CONDITION_COLOR) if app.NEW_PET_SYSTEM: if self.check_sigillo(itemVnum) or itemVnum == 55002 or itemVnum == 55706: if attrSlot[0][1] != 0: self.AppendSpace(5) self.AppendTextLine("Level: "+str(metinSlot[1]), self.NORMAL_COLOR) self.AppendTextLine("TP: +"+pointop(str(attrSlot[0][1]))+"%", self.SPECIAL_POSITIVE_COLOR) self.AppendTextLine("DEF: +"+pointop(str(attrSlot[1][1]))+"%", self.SPECIAL_POSITIVE_COLOR) self.AppendTextLine("MP: +"+pointop(str(attrSlot[2][1]))+"%", self.SPECIAL_POSITIVE_COLOR) self.AppendSpace(5) if itemVnum != 55002: days = (int(attrSlot[3][1])/60)/24 hours = (int(attrSlot[3][1]) - (days*60*24)) / 60 mins = int(attrSlot[3][1]) - (days*60*24) - (hours*60) self.AppendTextLine("Verbl. Zeit: %d Tage %d Std. %d Min." % (days, hours, mins), self.SPECIAL_POSITIVE_COLOR)
-
Acum 5 minute, Avisek a spus:
Thank you for info that it is possible to do...
As a hint, you will have problems in InstanceBase.cpp because there are missing lines to make it working with marty source.
-
Yes, it is working.
With lot of work i have Sash, Mount Costume, Costume Weapon fully working with "Army function aswell".
https://metin2.download/picture/PQU28o4Vvie8ZNIQa3sLazCR1HGJskeL/.png
P.S. And i have Martysamma last version, i bought it on december 2017.
- 1
- 1
- 1
- 1
-
Hi guys !
I've extended View equipment to Sash and Mount Costume System but now when I try to add also Costume weapon, just cannot get costume weapon on his position.on uiscript/equipmentdialog.py if i have
{"index":16, "x":39, "y":106, "width":32, "height":32},
look what happen if i replace 16 with 15
{"index":15, "x":39, "y":106, "width":32, "height":32},
When I have 16 on uiscript/equipmentdialog.py and 15 on uiscript/costumeequimentdialog.py , there isn't displayed costume weapon in any slot.
-
Hi guys !
After installing LeNNt's Sash System, got bugged Weapon costume System.
Here it's character after login:
Here it's character after equip/unequip but cannot move while i wear costume weapon.
Any tip is welcome.
-
-
Hello !
Some help to fix this BUG ?
I get on login directly level 104 via pc.set_level, go to teacher to get skills and as u can see, points aren't refreshed till first relo.
Any tip ? Thanks !
-
Hello !
Today when i tested damage, i realised that: Bell & Fan resist on items don't affect damage. I have same value attack when skilling with and without that bonus weared. (0/60)
What I should check? I didn't any change on item_attr or relative functions.UPDATE: same bug on stone against shaman. Skill isn't affected by stone.
-
Hello !
I have a strange BUG with Shamy, skill Reflection.
After few uses of that skill, character get disconnected.
Relevant syserr:
Show: cannot find sectree by 926642x297320 mapindex 41 (about 60 lines when core start) ForAttrRegionFreeAngle: SECTREE_MANAGER::ForAttrRegion - Unhandled exception. MapIndex: 1 (about 60 lines when core start) SYSERR: Dec 22 17:46:32 :: Process: SEQUENCE 3010e400 mismatch 0xaf != 0x0 header 254 SYSERR: Dec 22 17:46:32 :: Process: SEQUENCE_LOG [UNKNOWN]------------- [254 : 0xaf] (many like this, but i don't see any effect ingame) SYSERR: Dec 22 17:48:17 :: Analyze: Handshake phase does not handle packet 3 (fd 48) SYSERR: Dec 22 17:48:17 :: Process: SEQUENCE 30112000 mismatch 0xaf != 0x63 header 3 SYSERR: Dec 22 17:48:17 :: Process: SEQUENCE_LOG [UNKNOWN]------------- [003 : 0xaf] (few like this, effect unknown) SYSERR: Dec 22 18:00:56 :: Process: SEQUENCE 3010cc00 mismatch 0x40 != 0x63 header 7 SYSERR: Dec 22 18:00:56 :: Process: SEQUENCE_LOG [Slay]------------- [007 : 0x6f] [007 : 0x5f] [007 : 0xae] [007 : 0x5b] [007 : 0x44] [007 : 0xfc] [007 : 0xca] [061 : 0xcf] [007 : 0x13] [051 : 0xef] [007 : 0xac] [054 : 0x20] [007 : 0x3f] [007 : 0xb8] [051 : 0xc6] [007 : 0x6] [054 : 0xdd] [007 : 0xfe] [007 : 0xab] [051 : 0xce] [007 : 0x40] (disconnect for Reflection use)
I think it's a common problem, but i have no idea for solution.
How i realised that it's a common problem? Saw this on public sources from marty:
@fixme135: on char.cpp; if the Sync is made before a move packet and the sectree differs of few x/y coordinates, the sectree will be changed without update (crash character) (troublesome -> removed)
Thanks all !
-
Hello !
Anyone had this and solved it ?
Thanks !
-
Thanks for nothing this time.
Solved myself editing item.cpp like this:
#if defined __WEAPON_COSTUME_SYSTEM__ && !defined __CHANGELOOK_SYSTEM__ else if (GetSubType() == COSTUME_WEAPON) { toSetPart = PART_WEAPON; if (!bAdd) { const CItem* pWeapon = m_pOwner->GetWear(WEAR_WEAPON); toSetValue = (NULL != pWeapon) ? pWeapon->GetVnum() : m_pOwner->GetPart(PART_WEAPON); } } #endif #if defined __WEAPON_COSTUME_SYSTEM__ && defined __CHANGELOOK_SYSTEM__ else if (GetSubType() == COSTUME_WEAPON) { toSetPart = PART_WEAPON; if (!bAdd) { const CItem* pWeapon = m_pOwner->GetWear(WEAR_WEAPON); if(NULL != pWeapon) { if(pWeapon->GetTransmutation() != 0) toSetValue = pWeapon->GetTransmutation(); else toSetValue = pWeapon->GetVnum(); } } } #endif
- 2
-
I've expected that, but it looks good...
case ITEM_WEAPON: { #ifdef __WEAPON_COSTUME_SYSTEM__ if (m_pOwner->GetWear(WEAR_COSTUME_WEAPON) != 0) break; #endif if (bAdd) { if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON) { #ifdef __CHANGELOOK_SYSTEM__ DWORD dwRes = GetTransmutation() != 0 ? GetTransmutation() : GetVnum(); m_pOwner->SetPart(PART_WEAPON, dwRes); #else m_pOwner->SetPart(PART_WEAPON, GetVnum()); #endif } } else { if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON) #ifdef __WEAPON_COSTUME_SYSTEM__ m_pOwner->SetPart(PART_WEAPON, 0); #else m_pOwner->SetPart(PART_WEAPON, m_pOwner->GetOriginalPart(PART_WEAPON)); #endif } } break;
-
Preview to understand much better what I mean:
https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif
-
Hi devs !
I have 2 little requests:
1. How can I do to solve next BUG on Tranmustation system:
- equip weapon with transmutation -> OK
- equip weapon skin -> OK
- unequip weapon skin -> weapon become original skin of weapon, not tranmutated
2. Which bugs must be checked before these releasing systems on live game server?
Thank you all !
-
Maybe server_attr don't have that safezone, only clientside.
-
Acum 10 ore, Tasho a spus:
I do not recommend, it's a just another romanian ~!@#$.
Thank you for racism, i apreciate.
Any another issue than nationality? Thanks !
-
Hello !
I own a small dedicated server on OVH GAMING for my server.
Because I pay a lot for it and not always will have donations, i would like to sell some KVM VPS from my dedicated.
If someone will be interested I will buy SolusVM licenses to give full acces to server.
I'll accept payments with Card/Paysafecard/Paypal (customers will donate on my metin2 server because there i have automated payments) and if i will sell over 5 servers, i'll be able to buy a whmcs license (39 dollars/month).
If someone want to test antiddos, ping, lag etc. can use my server as demo. ( www.metin2hfm.ro ) (now virtualised with proxmox, 2x VDS)
I'll sell a maximum of 6 servers. (2 used for my server & web server)
CPU: 1x 4.4 GHz core (i7-4790K)
RAM: 2 GB
SSD: 50 GB
Price: 20 euro monthly
Open for critics, ideas, tips etc.
-
Hello !
I've found a strange BUG on change leader function.
The story:
- Name1 create guild called Guild;
- Name1 change leader to another account called Name2;
- Name1 delete his character and create it again with same name;
- Name2 try to move guild Guild back to Name1 but Guild go to deleted character and Guild remain without leader.
Any solution ?
Thank you !
-
Hello devs !
I've installed this VIP system.
Everything works fine less that function which normally have to remove flag over the head if u see a VIP.
Any help ?
Thank you !
void CInstanceBase::__AttachEmpireEffect(DWORD eEmpire) { if (!__IsExistMainInstance()) return; CInstanceBase* pkInstMain=__GetMainInstancePtr(); if (IsWarp()) return; if (IsObject()) return; if (IsFlag()) return; if (IsResource()) return; if (IsNPC()) return; if (pkInstMain->IsGameMaster()) { } else if (pkInstMain->IsVIP()) { } else { if (pkInstMain->IsSameEmpire(*this)) return; // HIDE_OTHER_EMPIRE_EUNHYEONG_ASSASSIN if (IsAffect(AFFECT_EUNHYEONG)) return; // END_OF_HIDE_OTHER_EMPIRE_EUNHYEONG_ASSASSIN } if (IsGameMaster()) return; if (IsVIP()) return; __EffectContainer_AttachEffect(EFFECT_EMPIRE+eEmpire); }
-
Acum 11 ore, kntybrn a spus:
Sorry for delay, but not thats, 5 VDS servers MySQL ve game servers, im not looking for all channels in one server
I think it's not a good idea to have separate VPS for every channel, much better a single strong VPS (SSD + multiple cores) and that's it.
-
1 oră în urmă, Root a spus:
Try this
LPCHARACTER pkChr;//Setting pinter for char class int blocked_items[] = {72723, 72724, 72725, 72726};//Banned potions for(size_t i = 0; i < INVENTORY_MAX_NUM; i++) //Running ineventory scan { for (size_t id = 0; id < 4; id++) { if(pkChr->GetInventoryItem(i)> 0 && pkChr->GetInventoryItem(i)->GetSocket(0) == 1 && pkChr->GetInventoryItem(i)->GetVnum() == blocked_items[id]) { pkChr->ChatPacket(CHAT_TYPE_INFO, "%s Potion detected" , pkChr->GetName()); return false;//Stoping code here }
haha, great bro but i wanna disable some functions while autopotions are enabled, not only blocking potions use.
Thank you !
-
Acum 9 ore, Root a spus:
It's a good point but i want to check if autopotion it's enabled.
Try to check with
if (FindAffect(AFFECT_AUTO_HP_RECOVERY) || FindAffect(AFFECT_AUTO_SP_RECOVERY))
but don't succeed.
-
Hello !
I try to use a function from pvp.cpp on char_item.cpp and using this simple checkup:
if(IsFight())
I get error
error: 'IsFight' was not declared in this scope
I've included "pvp.h" on header. Any idea ? Thank you !
-
Hello !
I have a weird bug on my test server.
When I try to open NPC Category with two characaters, one succed and one fail [maybe there are many which fail/succeed but i didn't tested].
Syserr - empty
Syslog:
Jul 22 09:55:54 :: SHOP: END: KinkySex Jul 22 09:55:55 :: OnClick Magazin special[vnum 9003 ServerUniqueID 15, pid 0] by KinkySex Jul 22 09:55:55 :: reallocating buffer to 8192, current 1024 Jul 22 09:55:55 :: SHOP: START: KinkySex Jul 22 09:55:56 :: SHOP: END: KinkySex Jul 22 09:56:03 :: GLOBAL_TIME: Jul 22 09:56:03 time_gap 0 Jul 22 09:56:24 :: QUEST ScriptAnswer pid 181633 answer 6 Jul 22 09:56:25 :: OnClick Magazin special[vnum 9003 ServerUniqueID 15, pid 0] by [FlorinMarian] Jul 22 09:56:26 :: QUEST ScriptAnswer pid 181633 answer 6
[Estimations]Hosting price
in Community Support - Questions & Answers
Posted
Hello guys !
I'm Florin from Romania, owner of a legal registered business in my country.
I would like to know interest from further customers about products and price.
I have for you guys few questions:
1. Will you ever trust a new hosting provider ?
2. It's enaugh for you Anti-DDOS provided by OVH Dedicated GameServers?
3. It's enaugh for your applications to provide: VPS, CPanel webhosting and domain registrations?
3. How much you will be able to pay for:
10 GB SSD Storage 1 CPU 4.4 GHz 100 MB/s uplink Unlimited traffic 1 IP Address KVM Virtualization
Thank you all !
*** I need your pareer to make few estimations about costings (CPanel, WHMCS, SolusVM licenses & dedicated servers rental).