kaspersky Posted September 5, 2014 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 1 Reputation: 0 Joined: 08/29/14 Last Seen: October 7, 2014 Share Posted September 5, 2014 where should i put .diff files please reply Quote Link to comment Share on other sites More sharing options...
Radian Posted September 25, 2014 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 1546 Reputation: 192 Joined: 07/23/14 Last Seen: June 24, 2024 Share Posted September 25, 2014 Can someone modified this into latest? this is a good feature.! Quote Link to comment Share on other sites More sharing options...
Obiwan Posted October 6, 2014 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 88 Reputation: 0 Joined: 08/25/12 Last Seen: November 2, 2021 Share Posted October 6, 2014 why i cant find the NPC location? Quote Link to comment Share on other sites More sharing options...
darking123 Posted October 20, 2014 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 931 Reputation: 13 Joined: 12/20/11 Last Seen: November 21, 2020 Share Posted October 20, 2014 please update this to be able to be compatible to the latest git Quote Link to comment Share on other sites More sharing options...
Shen Posted October 28, 2014 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 11/24/12 Last Seen: April 29, 2020 Share Posted October 28, 2014 (edited) I have an error in the map server [Error]: Loading NPC file: npc/custom/costume.txt script error on npc/custom/costume.txt line 45 parse_line: expect command, missing function name or calling undeclared f tion 40 : mes "[Clown]"; 41 : mes "Need some time to think about it uh?"; 42 : mes "Alright, I can understand."; 43 : close; 44 : } * 45 : 'c'ostume .@Part, // Convert the Headgear 46 : mes "[Clown]"; 47 : mes "Done, enjoy your costume headgear."; 48 : close; 49 : case 2: 50 : next; Edited October 28, 2014 by Shen Quote Link to comment Share on other sites More sharing options...
Sehrentos Posted October 28, 2014 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 91 Reputation: 22 Joined: 10/24/14 Last Seen: November 1, 2024 Share Posted October 28, 2014 (edited) Hey, Just managed to get it work! I had some of the issues others had because the .diff was old. After manually editing few lines, it worked for me. These days you could just use/make the costume items in the item_db. Just like normal headgear except equipment's placement is different. 1024 = Costume Top Headgear 2048 = Costume Mid Headgear 4096 = Costume Low Headgear But its nice functions for making just a quick costume change. My commits at GitHub: * https://github.com/Sehrentos/rathena/commit/92676a4f7440f0e87e221615612b0700aedeaa14 Here is my diff file: rAthena commit hash: 1325e6889199aa3c4d89ade090398d225ab0147b My commit hash: 92676a4f7440f0e87e221615612b0700aedeaa14 Date created: 29-30.4.2015 Link to diff: http://pastebin.com/T5Fqeyb1 How to apply a diff file in git? 1. Put the diff file in rathena root folder 2. Check what will be changed: git apply --check my_file_name.diff 3. Apply the changes in diff file: git apply my_file_name.diff Remember to recompile when done. I hope this helps -- A small update (19.03.2016): After about one year I made a merge with the upstream.. a freaking monstrous pile of changes had taken place. After merge I only had to do a small edit on status.c but it seems to be working just fine. if (i == EQI_AMMO || i == EQI_COSTUME_HEAD_TOP || i == EQI_COSTUME_HEAD_MID || i == EQI_COSTUME_HEAD_LOW) // Costume item edit Edited March 19, 2016 by Sehrentos Quote Link to comment Share on other sites More sharing options...
darking123 Posted October 28, 2014 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 931 Reputation: 13 Joined: 12/20/11 Last Seen: November 21, 2020 Share Posted October 28, 2014 successfully recompiled my server files but i have 1 concern sir @Sehrentos Quote Link to comment Share on other sites More sharing options...
Shen Posted October 29, 2014 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 11/24/12 Last Seen: April 29, 2020 Share Posted October 29, 2014 thanks for your Reply Sehrentos but i still have the same probleme >_< maybe because of the REvision ? i'm using the 17421 Quote Link to comment Share on other sites More sharing options...
radlican Posted November 21, 2014 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 17 Reputation: 0 Joined: 08/09/14 Last Seen: February 18, 2015 Share Posted November 21, 2014 where can i add this.. Costume_System_v1.diff Quote Link to comment Share on other sites More sharing options...
exchisu Posted November 28, 2014 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 60 Reputation: 1 Joined: 12/12/13 Last Seen: July 22, 2023 Share Posted November 28, 2014 (edited) Reply pls [Error]: Loading NPC file: npc/custom/Eclipse/costume.txt script error on npc/custom/Eclipse/costume.txt line 45 parse_line: expect command, missing function name or calling undeclared function 40 : mes "[Clown]"; 41 : mes "Need some time to think about it, huh?"; 42 : mes "Alright, I can understand."; 43 : close; 44 : } * 45 : 'c'ostume .@Part; 46 : mes "[Clown]"; 47 : mes "Done, enjoy your costume headgear."; 48 : close; 49 : case 2: 50 : next; Same Problem.... ! Edited November 28, 2014 by exchisu Quote Link to comment Share on other sites More sharing options...
ChiroDev Posted December 2, 2014 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 1 Reputation: 0 Joined: 09/22/14 Last Seen: April 30, 2015 Share Posted December 2, 2014 (edited) Reply pls [Error]: Loading NPC file: npc/custom/Eclipse/costume.txt script error on npc/custom/Eclipse/costume.txt line 45 parse_line: expect command, missing function name or calling undeclared function 40 : mes "[Clown]"; 41 : mes "Need some time to think about it, huh?"; 42 : mes "Alright, I can understand."; 43 : close; 44 : } * 45 : 'c'ostume .@Part; 46 : mes "[Clown]"; 47 : mes "Done, enjoy your costume headgear."; 48 : close; 49 : case 2: 50 : next; Same Problem.... ! Find this codes: mes "[Clown]"; mes "Need some time to think about it, huh?"; mes "Alright, I can understand."; close; } 'c'ostume .@Part; mes "[Clown]"; mes "Done, enjoy your costume headgear."; close; case 2: next; and change it to this one: mes "[Clown]"; mes "Need some time to think about it, huh?"; mes "Alright, I can understand."; close; } costume .@Part; mes "[Clown]"; mes "Done, enjoy your costume headgear."; close; case 2: next; Edited December 2, 2014 by ChiroDev Quote Link to comment Share on other sites More sharing options...
Radian Posted December 3, 2014 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 1546 Reputation: 192 Joined: 07/23/14 Last Seen: June 24, 2024 Share Posted December 3, 2014 Reply pls [Error]: Loading NPC file: npc/custom/Eclipse/costume.txt script error on npc/custom/Eclipse/costume.txt line 45 parse_line: expect command, missing function name or calling undeclared function 40 : mes "[Clown]"; 41 : mes "Need some time to think about it, huh?"; 42 : mes "Alright, I can understand."; 43 : close; 44 : } * 45 : 'c'ostume .@Part; 46 : mes "[Clown]"; 47 : mes "Done, enjoy your costume headgear."; 48 : close; 49 : case 2: 50 : next; Same Problem.... ! Find this codes: mes "[Clown]"; mes "Need some time to think about it, huh?"; mes "Alright, I can understand."; close; } 'c'ostume .@Part; mes "[Clown]"; mes "Done, enjoy your costume headgear."; close; case 2: next; and change it to this one: mes "[Clown]"; mes "Need some time to think about it, huh?"; mes "Alright, I can understand."; close; } costume .@Part; mes "[Clown]"; mes "Done, enjoy your costume headgear."; close; case 2: next; I think the NPC is not the issue. the reason for this are " expect command, missing function name or calling undeclared function " It's a command that the script didn't acknowledge as a function and missing. apply the source code and this NPC will work. Reply pls [Error]: Loading NPC file: npc/custom/Eclipse/costume.txt script error on npc/custom/Eclipse/costume.txt line 45 parse_line: expect command, missing function name or calling undeclared function 40 : mes "[Clown]"; 41 : mes "Need some time to think about it, huh?"; 42 : mes "Alright, I can understand."; 43 : close; 44 : } * 45 : 'c'ostume .@Part; 46 : mes "[Clown]"; 47 : mes "Done, enjoy your costume headgear."; 48 : close; 49 : case 2: 50 : next; Same Problem.... ! Hope this helps you guys http://rathena.org/board/topic/82370-costume-npc-and-costumeitem/?p=272111 Quote Link to comment Share on other sites More sharing options...
GodKnows Jhomz Posted December 4, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 333 Reputation: 68 Joined: 09/05/12 Last Seen: June 13, 2023 Share Posted December 4, 2014 // ------------------------------------------------------------------------------- // Script Name : Headgear to Costume converter >> Costume to Headgear converter // ------------------------------------------------------------------------------- // Description : // - Allows a user to convert the equipped headgear (on Top, Mid or Low) into a // costume item. It will remove any card and refine of the Item. // - Allows a user to restore the equipped costume headgear (on Top, Mid or Low) // into its original form. It will not return any card or refine of the item. // ------------------------------------------------------------------------------- - script Costume Clown -1,{ mes "[Clown]"; mes "Here you can convert your headgears into a Costume Headgear or restore to its Original State."; mes "And it only cost 1 ^0000FFCostume Ticket^000000 when you're converting or restoring your headgear."; switch(select("I want to convert.:I want to restore.:No thanks.")) { case 1: next; if(countitem(8502) <1) { mes "[Clown]"; mes "I need at least 1 ^0000FFCostume Ticket^000000 to convert your headgear into a ^0000FFCostume^000000"; close; } mes "[Clown]"; mes "Please, select what to convert."; mes "Remember, cards and refine will be removed."; next; setarray .@Position$[1],"Top","Mid","Low"; setarray .@Position[1], 1, 9, 10; set .@Menu$,""; for( set .@i, 1; .@i < 5; set .@i, .@i + 1 ) { if( getequipisequiped(.@Position[.@i]) ) set .@Menu$, .@Menu$ + .@Position$[.@i] + "-" + "[" + getequipname(.@Position[.@i]) + "]"; set .@Menu$, .@Menu$ + ":"; } set .@Part, .@Position[ select(.@Menu$) ]; if( !getequipisequiped(.@Part) ) { mes "[Clown]"; mes "Your not wearing anything there..."; close; } mes "[Clown]"; mes "You want to Costume your " + getitemname(getequipid(.@Part)) + "?"; next; if( select("Yes, proceed:No, I am sorry.") == 2 ) { mes "[Clown]"; mes "Need some time to think about it, huh?"; mes "Alright, I can understand."; close; } costume .@Part; // Convert the Headgear delitem 8502,1; mes "[Clown]"; mes "Done, enjoy your costume headgear."; close; case 2: next; if(countitem(8502) <1) { mes "[Clown]"; mes "I need at least 1 ^0000FFCostume Ticket^000000 to restoring your headgear into its Original State."; close; } mes "[Clown]"; mes "Please, select what to restore."; mes "Remember, I will only restore it back without refine and cards."; next; setarray .@Position$[1],"Top","Mid","Low"; setarray .@Position[1], 13, 12, 11; set .@Menu$,""; for( set .@i, 1; .@i < 5; set .@i, .@i + 1 ) { if( getequipisequiped(.@Position[.@i]) ) set .@Menu$, .@Menu$ + .@Position$[.@i] + "-" + "[" + getequipname(.@Position[.@i]) + "]"; set .@Menu$, .@Menu$ + ":"; } set .@Part, .@Position[ select(.@Menu$) ]; if( !getequipisequiped(.@Part) ) { mes "[Clown]"; mes "Your not wearing anything there..."; close; } mes "[Clown]"; mes "You want to restore your " + getitemname(getequipid(.@Part)) + "?"; next; if( select("Yes, proceed:No, I am sorry.") == 2 ) { mes "[Clown]"; mes "Need some time to think about it, huh?"; mes "Alright, I can understand."; close; } a = getequipid(.@Part); delitem a,1; getitem a,1; delitem 8502,1; mes "[Clown]"; mes "Done, enjoy your restored headgear."; close; case 3: next; mes "[Clown]"; mes "Very well. Return at once if you seek my services."; close; } } // -------------------------------------------------------------------------- // Use duplicates to put your npc on different cities // -------------------------------------------------------------------------- prontera,139,173,5 duplicate(Costume Clown) Costume Clown#1 715 Can anyone help me to ignore bounded items when converting/restoring (Not showing in the list) Thanks~! Quote Link to comment Share on other sites More sharing options...
exchisu Posted December 4, 2014 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 60 Reputation: 1 Joined: 12/12/13 Last Seen: July 22, 2023 Share Posted December 4, 2014 Reply pls [Error]: Loading NPC file: npc/custom/Eclipse/costume.txt script error on npc/custom/Eclipse/costume.txt line 45 parse_line: expect command, missing function name or calling undeclared function 40 : mes "[Clown]"; 41 : mes "Need some time to think about it, huh?"; 42 : mes "Alright, I can understand."; 43 : close; 44 : } * 45 : 'c'ostume .@Part; 46 : mes "[Clown]"; 47 : mes "Done, enjoy your costume headgear."; 48 : close; 49 : case 2: 50 : next; Same Problem.... ! Find this codes: mes "[Clown]"; mes "Need some time to think about it, huh?"; mes "Alright, I can understand."; close; } 'c'ostume .@Part; mes "[Clown]"; mes "Done, enjoy your costume headgear."; close; case 2: next; and change it to this one: mes "[Clown]"; mes "Need some time to think about it, huh?"; mes "Alright, I can understand."; close; } costume .@Part; mes "[Clown]"; mes "Done, enjoy your costume headgear."; close; case 2: next; I think the NPC is not the issue. the reason for this are " expect command, missing function name or calling undeclared function " It's a command that the script didn't acknowledge as a function and missing. apply the source code and this NPC will work. Reply pls [Error]: Loading NPC file: npc/custom/Eclipse/costume.txt script error on npc/custom/Eclipse/costume.txt line 45 parse_line: expect command, missing function name or calling undeclared function 40 : mes "[Clown]"; 41 : mes "Need some time to think about it, huh?"; 42 : mes "Alright, I can understand."; 43 : close; 44 : } * 45 : 'c'ostume .@Part; 46 : mes "[Clown]"; 47 : mes "Done, enjoy your costume headgear."; 48 : close; 49 : case 2: 50 : next; Same Problem.... ! Hope this helps you guys http://rathena.org/board/topic/82370-costume-npc-and-costumeitem/?p=272111 all of these src edit, are for Add the command to rAthena ? because the cmd error a guy told me, are commands for eAmod no for rAthena, that's why Quote Link to comment Share on other sites More sharing options...
darking123 Posted December 24, 2014 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 931 Reputation: 13 Joined: 12/20/11 Last Seen: November 21, 2020 Share Posted December 24, 2014 how to remove the effect of costume item Quote Link to comment Share on other sites More sharing options...
Sehrentos Posted January 6, 2015 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 91 Reputation: 22 Joined: 10/24/14 Last Seen: November 1, 2024 Share Posted January 6, 2015 (edited) how to remove the effect of costume item You need to edit status.c find " for (i = 0; i < EQI_MAX; i++) " some where around line 2959 and edit: if (i == EQI_AMMO || i == EQI_COSTUME_TOP || i == EQI_COSTUME_MID || i == EQI_COSTUME_LOW) This should disable bonus stats to effect player from all costume gear. + I'm not sure but you might also need to disable equipment autobonus edit pc_delautobonus and pc_exeautobonus in pc.c havent tested it. Edit: This is updated in my previous post: http://rathena.org/board/topic/82370-costume-npc-and-costumeitem/?p=272111 Edited April 30, 2015 by Sehrentos Quote Link to comment Share on other sites More sharing options...
darking123 Posted June 22, 2015 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 931 Reputation: 13 Joined: 12/20/11 Last Seen: November 21, 2020 Share Posted June 22, 2015 Hey, Just managed to get it work! I had some of the issues others had because the .diff was old. After manually editing few lines, it worked for me. These days you could just use/make the costume items in the item_db. Just like normal headgear except equipment's placement is different. 1024 = Costume Top Headgear 2048 = Costume Mid Headgear 4096 = Costume Low Headgear But its nice functions for making just a quick costume change. My commits at GitHub: * https://github.com/Sehrentos/rathena/commit/92676a4f7440f0e87e221615612b0700aedeaa14 Here is my diff file: rAthena commit hash: 1325e6889199aa3c4d89ade090398d225ab0147b My commit hash: 92676a4f7440f0e87e221615612b0700aedeaa14 Date created: 29-30.4.2015 Link to diff: http://pastebin.com/T5Fqeyb1 How to apply a diff file in git? 1. Put the diff file in rathena root folder 2. Check what will be changed: git apply --check my_file_name.diff 3. Apply the changes in diff file: git apply my_file_name.diff Remember to recompile when done. I hope this helps I managed to make this work, but how to remove the effect when turned to costume? Quote Link to comment Share on other sites More sharing options...
VladimirCastro Posted July 4, 2015 Group: Members Topic Count: 114 Topics Per Day: 0.02 Content Count: 298 Reputation: 4 Joined: 03/13/12 Last Seen: September 18, 2016 Share Posted July 4, 2015 can u please convert it for eathena thanks Quote Link to comment Share on other sites More sharing options...
monof Posted June 9, 2016 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 13 Reputation: 0 Joined: 08/10/13 Last Seen: April 15, 2017 Share Posted June 9, 2016 Hello, Anyone got it working for recent rAthena ?Thanks ! Quote Link to comment Share on other sites More sharing options...
alternate Posted July 1, 2016 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 20 Reputation: 2 Joined: 06/26/16 Last Seen: April 22, 2024 Share Posted July 1, 2016 I got it almost working, except that the npc isnt converting the item to costume, it only changes the costume to regular item and it can make duplicates also. Quote Link to comment Share on other sites More sharing options...
Elsa Mist Posted July 2, 2016 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 387 Reputation: 60 Joined: 10/08/13 Last Seen: July 14, 2022 Share Posted July 2, 2016 search next time. 1 Quote Link to comment Share on other sites More sharing options...
Super Arki Posted January 12, 2017 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 30 Reputation: 0 Joined: 10/25/15 Last Seen: March 28, 2020 Share Posted January 12, 2017 Where do I put the diff file? Quote Link to comment Share on other sites More sharing options...
Quesooo Posted March 20, 2017 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Share Posted March 20, 2017 where to put .diff??? please pm me for guide or post reply thank you Quote Link to comment Share on other sites More sharing options...
Subzero Posted July 26, 2017 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 60 Reputation: 0 Joined: 07/25/16 Last Seen: August 5, 2021 Share Posted July 26, 2017 i did apply this https://github.com/Sehrentos/rathena/commit/92676a4f7440f0e87e221615612b0700aedeaa14#diff-08420bab8271f3965304fee42cf4b865R696 have an error can someone please update? Quote Link to comment Share on other sites More sharing options...
Nerks Posted September 21, 2017 Group: Members Topic Count: 22 Topics Per Day: 0.01 Content Count: 135 Reputation: 4 Joined: 07/29/17 Last Seen: December 5, 2017 Share Posted September 21, 2017 Is it already included in the NEMO? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.