-
Posts
84 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Xerneas
-
-
Hello,
ive tried to edit the transmutate system to transmutate weapons to costume weapons/costume weapons, armor to costume/costume to armes like official it has.
But sadly, i didnt have success.
This is the Code:
SpoilerLPITEM pkItem = GetItem(tPos); if (!pkItem) return; else if ((pkItem->GetCell() >= INVENTORY_MAX_NUM) || (tPos.IsBeltInventoryPosition())) return; else if (pkItem->IsEquipped()) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("[Transmutation] You cannot transmute an item while it is equipped.")); return; } else if ((pkItem->GetType() != ITEM_WEAPON) && (pkItem->GetType() != ITEM_ARMOR) && (pkItem->GetType() != ITEM_COSTUME)) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("[Transmutation] This item cannot be transmuted.")); return; } else if ((pkItem->GetType() == ITEM_WEAPON) && ((pkItem->GetSubType() == WEAPON_ARROW) || (pkItem->GetSubType() == WEAPON_MOUNT_SPEAR))) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("[Transmutation] This item cannot be transmuted.")); return; } else if ((pkItem->GetType() == ITEM_ARMOR) && (pkItem->GetSubType() != ARMOR_BODY)) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("[Transmutation] This item cannot be transmuted.")); return; } else if ((pkItem->GetType() == ITEM_COSTUME) && (pkItem->GetSubType() != COSTUME_BODY) && (pkItem->GetSubType() != COSTUME_HAIR)) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("[Transmutation] This item cannot be transmuted.")); return; } else if (pkItem->isLocked()) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("[Transmutation] You can't add locked items.")); return; } else if (pkItem->GetTransmutation() != 0) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("[Transmutation] You can't add items which are transmuted yet.")); return; } LPITEM * pkItemMaterial; pkItemMaterial = GetClWindowMaterials(); if ((bPos == 1) && (!pkItemMaterial[0])) return; if (pkItemMaterial[bPos]) return; if (bPos == 1) { bool bStop = false; if (pkItemMaterial[0]->GetType() != pkItem->GetType()) bStop = true; else if (pkItemMaterial[0]->GetSubType() != pkItem->GetSubType()) bStop = true; else if (pkItemMaterial[0]->GetOriginalVnum() == pkItem->GetOriginalVnum()) bStop = true; else if (((IS_SET(pkItemMaterial[0]->GetAntiFlag(), ITEM_ANTIFLAG_FEMALE)) && (!IS_SET(pkItem->GetAntiFlag(), ITEM_ANTIFLAG_FEMALE))) || ((IS_SET(pkItemMaterial[0]->GetAntiFlag(), ITEM_ANTIFLAG_MALE)) && (!IS_SET(pkItem->GetAntiFlag(), ITEM_ANTIFLAG_MALE)))) bStop = true; else if ((pkItem->GetAntiFlag() & ITEM_ANTIFLAG_WARRIOR) && (!IS_SET(pkItemMaterial[0]->GetAntiFlag(), ITEM_ANTIFLAG_WARRIOR))) bStop = true; else if ((pkItem->GetAntiFlag() & ITEM_ANTIFLAG_ASSASSIN) && (!IS_SET(pkItemMaterial[0]->GetAntiFlag(), ITEM_ANTIFLAG_ASSASSIN))) bStop = true; else if ((pkItem->GetAntiFlag() & ITEM_ANTIFLAG_SHAMAN) && (!IS_SET(pkItemMaterial[0]->GetAntiFlag(), ITEM_ANTIFLAG_SHAMAN))) bStop = true; else if ((pkItem->GetAntiFlag() & ITEM_ANTIFLAG_SURA) && (!IS_SET(pkItemMaterial[0]->GetAntiFlag(), ITEM_ANTIFLAG_SURA))) bStop = true; if (bStop) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("[Transmutation] You cannot submit this item.")); return; } }
I´ve tried the following steps:
try to expand the if step:
else if ((pkItem->GetType() == ITEM_COSTUME) && (pkItem->GetType() == ITEM_WEAPON) && (pkItem->GetSubType() != COSTUME_BODY) && (pkItem->GetSubType() != COSTUME_HAIR) && (pkItem->GetSubType() != COSTUME_WEAPON) && (pkItem->GetType() != ITEM_WEAPON))
doesnt work
edit bstop = false and make a whiteliste for weapons and costumes... no success... maybe you want to help?
-
Hello,
i´ve configured a CRC Patcher... it works but every full patch, the patcher patch the full client again and again... but its already full patched? i remember, that it donest patch existing files, just patch new files, or?
Did I failed something?
-
Or remove Sash i think you delete the function
-
What does it do?
-
Am 26.2.2018 um 21:27 schrieb avertuss:
Funny af
Just the truth, or install it correctly.
-
Remove sash. Problem solved.
- 1
-
Only english is allowed.
-
Am 13.1.2018 um 23:45 schrieb emanuel:
Right, and i search for The Code for reall Time refresh, i pay
Shame on you.
-
You buyed the system from vegas?
-
How can it works without datatype changes? I mean the databyte from the safebox is byte.
-
-
Same for me, didnt see the effect but nice release !
-
Man buy it, you will never get this free unbugged.
-
For free???
-
Its a known issue, its hard to fix, i´ve tried many time, but no success.
-
Hey, guys
i´ve implemented the new sashes from the 17.5 Update.
All works fine, but if i wear a 19% absorbtion rate it will set a other sashes as the icon it says...
Here is a screen of that:
18% ( the original sash)
Spoilerand here is the same sash but with 19%
SpoilerIf you know or if you need something example a code of my source, tell me.
-
You have to edit func i instacebase?
In this func theres a check for this. But i recommed to rewrite the scale func from Sash
- 1
-
Hello, Devs
as you seen above, I´m searching a dev for blocking Cheats like lalaker
I´ll be ready to pay, if you intrested and you want to talk about prices?
Write a PM for more
greets
-
I think the gr2 model is break? Try to replace it, maybe it helps.
-
Change der Serverside part. Seems like Kori 1.5
-
Im sure he add sash and fail.
-
Disable it?
-
Good Job
- 1
-
Remove the create fly
v17.5 Active Pet Seal Effect
in Features & Metin2 Systems
Posted · Edited by Xerneas
Core X - External 2 Internal
After the pet is unsummon it has a funny time:
Seems like an issue with REAL_TIME_FIRST_USE
On REAL_TIME it works perfectly
if you resummon the pet, the item disappear