Jump to content

Owsap

Honorable Member
  • Posts

    264
  • Joined

  • Last visited

  • Days Won

    29
  • Feedback

    91%

Everything posted by Owsap

  1. You must add the value 1 to OnClick column of your shop NPC in mob_proto. Example:
  2. First of all I know this is kind useless but for the sake of enabling and disabling the flash effect in buttons I decided to use the standard flash function because I didn't know an easier way. As for an example, here is a demonstration of the flash effect.
  3. https://metin2.download/picture/5gREOBDY2uzUBLoT4Q3wTA1Z7d9oKoJv/.gif
  4. Nice work keep it up
  5. It works the same but your way is cleaner, i just didn't feel the necessity of adding a new argument to the CountSpecificItem function, instead i differently added another way of counting the items. Anyway, thanks for making it more cleaner.
  6. When item materials are removed from the refinment process the source item that is beeing refined also get's removed since it's apart of the required item list and this is what causes the game core to crash after any instance like warping. In order to fix this, we can check the source item beeing refined by position, simply by creating a new argument for the function RemoveSpecifyItem with the source item's cell position. char_item.cpp char.h Preview of fix: [Hidden Content]
  7. It seems fly effect does not update when you change arrow type, maybe you forgot something in UserInterface. InstanceBase.cpp #ifdef ENABLE_QUIVER_SYSTEM bool CInstanceBase::SetArrow(DWORD eArrow) { if (IsPoly()) return false; if (__IsShapeAnimalWear()) return false; if (eArrow) { CItemData * pItemData; if (!CItemManager::Instance().GetItemDataPointer(eArrow, &pItemData)) return false; if (pItemData->GetType() == CItemData::ITEM_TYPE_WEAPON) { if (pItemData->GetSubType() == CItemData::WEAPON_ARROW) { m_GraphicThingInstance.SetQuiverEquipped(false); m_GraphicThingInstance.SetQuiverEffectID(0); return true; } if (pItemData->GetSubType() == CItemData::WEAPON_QUIVER) { m_GraphicThingInstance.SetQuiverEquipped(true); m_GraphicThingInstance.SetQuiverEffectID(pItemData->GetValue(0)); return true; } } } m_GraphicThingInstance.SetQuiverEquipped(false); m_GraphicThingInstance.SetQuiverEffectID(0); return false; } void CInstanceBase::ChangeArrow(DWORD eArrow) { SetArrow(eArrow); } #endif InstanceBase.h #ifdef ENABLE_QUIVER_SYSTEM bool SetArrow(DWORD eArrow); void ChangeArrow(DWORD eArrow); #endif NetworkActorManager.cpp // Search: pkInstFind->ChangeWeapon(c_rkNetUpdateActorData.m_dwWeapon); // Add below: #ifdef ENABLE_QUIVER_SYSTEM pkInstFind->ChangeArrow(c_rkNetUpdateActorData.m_dwArrow); #endif
  8. when kill begin -- Trigger for killing anything. if npc.is_pc() then return -- Ignore dropping the item below if the target was a player. end local level_difference = 15 -- Level difference. local min_limit = npc.get_level() - level_difference local max_limit = npc.get_level() + level_difference if pc.get_level() >= min_limit and pc.get_level() <= max_limit then game.drop_item_with_ownership(19, 1) -- 1 Sword+9 end end
  9. You have duplicate REAL_TIME in item_proto remove one.
  10. Working flawlessly, good job.
  11. I'm having an issue with the rendering.
  12. Add TASKBAR_OFFLINE_SHOP in your locale/locale_game.txt
  13. Maybe a binary/client problem then... walk.mss file makes the character move animation. Check it out in your client. By the way, no syserr errors?
  14. I am using Navicat 11.0.8 and I am trying to insert values into a table using a query but when i try to insert the values with the query it works but the character encoding is messed up! This is a problem that many people have on trying to execute querys on navicat to complete their new item_proto.xml. As you can see on my code, the table is 'table' and i am inserting an ID, VNUM and a NAME. The VNUM is '体字' and the NAME is 'Versão'. INSERT INTO table VALUES ('1', '体字', 'Versão'); Instead of showing '体字' on the VNUM and 'Versão' on the NAME, it shows '体字' and 'Versão'. This is very bad for me because I am trying to insert more than 5000 lines with alot of information. I have tried to set the Character Encoding of the table using this these commands: ALTER TABLE table CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci; & ALTER TABLE table CONVERT TO CHARACTER SET big5 COLLATE big5_chinese_ci; & ALTER TABLE table CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; I also have tried to delete my table and create a new one with the character encoding already to utf-8 and send the values.. SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS `table`; CREATE TABLE `table` ( `vnum` int(11) unsigned NOT NULL default '0', `name` varbinary(200) NOT NULL default 'Noname', `locale_name` varbinary(24) NOT NULL default 'Noname', ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT INTO `table` VALUES ('1', '体字', 'Versão'); Still show's '体字' and 'Versão'. If i edit the table manually, it show's correct! But i am not going to edit 5000+ lines... 2° Question How can i convert Corean 돈꾸러미 from item_proto.xml to µ·²Ù·¯¹Ì ? <ItemDef Vnum="1" Name="돈꾸러미" LocalizedName="Yang" Type="9" SubTy... ANSI convertion converts Corean (돈꾸러미) to ëˆê¾¸ëŸ¬ë¯¸ instead of µ·²Ù·¯¹Ì which can be very hard on changing mob_drop, etc_drop and special_group_item items.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.