Sultan 68 Report post Posted May 26, 2022 Hello, I've been trying for some time to Apply Forging Gems to Weapons NPC and don't know how. Outside cha_timer, I called varaiable: "NPCForged = false" then inside cha_timer I tried to find the npc by name and apply gems into it but unfortunately unsuccessfully couldn't manage to do it. if(NPCForged == false)then local name = GetChaDefaultName(role) local ret, npc, id = FindNpc( name ) if ret ~= nil and npc ~= nil and id ~= nil then if(name == 'Boss Knowledge - Graves')then print('found npc:') NPCForged = true local item = GetChaItem(role, 1, 9) local param = GetItemForgeParam(item, 1) local Item_Stone = { } local Item_StoneLv = { } param = TansferNum(param) param = SetNum_Part4(param, 9) param = SetNum_Part5(param, 9) SetItemForgeParam(item, 1, param) end end end I think in NPCs it's not possible to check "GetChaItem" maybe that's why. I've also tried adding "eff_id" in the NPC itself the effect applys to the "Head" npc. Quote Share this post Link to post Share on other sites
ShadowJr 18 Report post Posted May 26, 2022 Hello, you need to create an item with glow effect even though it is +0 and add this equipament in characterinfo of NPC Quote Share this post Link to post Share on other sites
Eviles 179 Report post Posted May 26, 2022 Hello @Sultan! If you want to a NPC to show weapon forge glow effect, you need to do something like @ShadowJr said. There's no need using a timer for such. 1. Create a new item on ItemInfo.txt; 2. On "Bind Effect" column of iteminfo.txt put id of weapon glow from sceneffectinfo.txt (i've used effect id 3713 for hammer gllow); 3. Add weapon to NPC model (characterinfo.txt)ItemInfo.txt: ### Forged Hammer w0302 10100002 01020009 02020039 0 0 0 0 2 0 0 0 7 1 1 1 0 1 1 1 2000 2,1,-2,-2 0 1,8,9,10,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 9,-2,-2,-2,-2,-2,-2,-2,-2,-2 9,6,-2,-2,-2,-2,-2,-2,-2,-2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 1,1 1,1 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0 0,0 25000,25000 0 0 0 0 0 0 0 0 0 0 0 3713 0 0,0 0 0 0 Apparel CharacterInfo.txt: #### Carsise Glow NPC 0 1 5 1 0 100 5444 255 5445 5446 5447 0 6961 0 521 0 0,0,0 1 2 100 182 -1 -1 0 0 0 1,2,5,6,8,10,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 1,061 1,815 2,785 40 1,5,0 0,0,0 399 398 0 0 0,0,0 1 1 2 0 29,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 0,-1,-1,-1,-1,-1,-1,-1,-1,-1 0,-1,-1,-1,-1,-1,-1,-1,-1,-1 0 0 0 0,-1,-1,-1,-1,-1,-1,-1,-1,-1 0,-1,-1,-1,-1,-1,-1,-1,-1,-1 10 1 1000 0 0 1 0 1 10000 0 18 0 1500 2000 0 100 2 1 1 0 1 1 1442 0 1500 480 0 5 5 5 5 5 5 20 0 0 0 0 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1,1,1 Please note that: - The game will not render the glow effect on weapon once you updating the game scene (moving from scenario), see attached GIF below. https://i.gyazo.com/91779832b652f96759d1c0a25bdee822.mp4 3 Quote Share this post Link to post Share on other sites
Sultan 68 Report post Posted May 26, 2022 @Eviles Thanks a lot for your help in guiding me through it, much appreciated! That's exactly what I'm looking for 1 Quote Share this post Link to post Share on other sites