kaspersky Posted September 5, 2014 Posted September 5, 2014 where should i put .diff files please reply Quote
Radian Posted September 25, 2014 Posted September 25, 2014 Can someone modified this into latest? this is a good feature.! Quote
darking123 Posted October 20, 2014 Posted October 20, 2014 please update this to be able to be compatible to the latest git Quote
Shen Posted October 28, 2014 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
Sehrentos Posted October 28, 2014 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
darking123 Posted October 28, 2014 Posted October 28, 2014 successfully recompiled my server files but i have 1 concern sir @Sehrentos Quote
Shen Posted October 29, 2014 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
radlican Posted November 21, 2014 Posted November 21, 2014 where can i add this.. Costume_System_v1.diff Quote
exchisu Posted November 28, 2014 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
ChiroDev Posted December 2, 2014 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
Radian Posted December 3, 2014 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
GodKnows Jhomz Posted December 4, 2014 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
exchisu Posted December 4, 2014 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
darking123 Posted December 24, 2014 Posted December 24, 2014 how to remove the effect of costume item Quote
Sehrentos Posted January 6, 2015 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
darking123 Posted June 22, 2015 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
VladimirCastro Posted July 4, 2015 Posted July 4, 2015 can u please convert it for eathena thanks Quote
monof Posted June 9, 2016 Posted June 9, 2016 Hello, Anyone got it working for recent rAthena ?Thanks ! Quote
alternate Posted July 1, 2016 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
Quesooo Posted March 20, 2017 Posted March 20, 2017 where to put .diff??? please pm me for guide or post reply thank you Quote
Subzero Posted July 26, 2017 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
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.