Emistry Posted November 1, 2018 Posted November 1, 2018 View File Campfire Original Topic: http://herc.ws/board/topic/16037-campfire-to-regenerate-hpsp/ Herc Script Link : https://pastebin.com/fksPdpFQ The Idea: Camp Fire to restore / regenerate HP & SP. When you sit by the Camp fire, you start feeling the warmth and the comfort, so your HP & SP begin to regenerate. How to use : 1. add the source mode provided in the script. (or here) 2. make a usable item_db with these bonus script. callfunc("func_CreateCampFire", <range>, <duration>, <heal_rate>); // create campfire callfunc("func_UpdateCampFire", <range>, <duration>, <heal_rate>); // update the campfire duration/heal rate. Quote There is a nice contribution from Meko on that subject Menhir (Big rock that possesses magical powers and able to restore Health and Energy of Seekers) Preview: Credits : @Dastgir & @Radian for the src mod and @Habilis for the idea Submitter Emistry Submitted 11/01/2018 Category Utilities Video https://www.youtube.com/watch?v=mFPFflLGscE Content Author Emistry 1 4 1 Quote
Rizta Posted November 2, 2018 Posted November 2, 2018 (edited) HOLY! This is amazing +1 @Emistry What do i need change in source to use that? When i try to apply this i got a error by some function that probably i dont have. (duplicatenpc). Edited November 2, 2018 by Rizta Quote
Emistry Posted November 2, 2018 Author Posted November 2, 2018 21 hours ago, Emistry said: add the source mode provided in the script. (or here) Quote
OscarScorp Posted November 2, 2018 Posted November 2, 2018 Hello. First of all, great script! I've been looking for this script to be implemented in rAthena, so thank you so much! Now, I've encountered a few minor problems, so if I could get some assistance, will be greatly appreciated. First: I don't have the sprite for the campfire npc used. Does anyone knows where can I get it? --------------------------- Error --------------------------- Spr :: Cannot find File : sprite\npc\.spr --------------------------- Cannot find File : sprite\npc\.act --------------------------- Next, which values would you recommend me for using in <range>, <duration>, <heal_rate> ? Is it ok to have for example: "3, 12000, 50" for 3x3 cell area, 12 second duration and 50 hp heal every burst? Please correct me if I'm wrong. Once again, thanks for this script to everyone who worked on it /helped! Quote
Emistry Posted November 3, 2018 Author Posted November 3, 2018 7 hours ago, OscarScorp said: I don't have the sprite for the campfire npc used. Does anyone knows where can I get it? kRO 7 hours ago, OscarScorp said: <range>, <duration>, <heal_rate> range = cells range with npc as the center duration = second units heal rate = percentage of healing Quote
OscarScorp Posted November 3, 2018 Posted November 3, 2018 4 hours ago, Emistry said: kRO range = cells range with npc as the center duration = second units heal rate = percentage of healing Gotcha gotcha. It's working now. Thank you so much! Sorry to bother with another comment. How can I use an extender properly? I've added the script "callfunc("func_UpdateCampFire", <range>, <duration>, <heal_rate>);" but to no avail. How should the item be created? I have: 7203,Solid_Twig,Strong Branch,11,190,,10,,,,,,,,,,,,,{ callfunc("func_UpdateCampFire", 5, 30, 4); },{},{} But it does not work at all. It cannot be used and seems that it has no effect over the closest Campfire NPC created. Quote
JaranSwitch0101 Posted November 10, 2018 Posted November 10, 2018 (edited) I don't understand where I wrong,i follow your instructions but it's not working PLease...help... my item_db: 902,Tree_Root,Tree Root,2,12,,10,,,,,,,,,,,,,{callfunc("func_UpdateCampFire", rand(1, 5), 30, rand(1,8)); },{},{} 7035,Matchstick,Matchstick,2,100,,10,,,,,,,,,,,,,{ callfunc("func_CreateCampFire", rand(2, 5), 60, rand(1,10)); },{},{} 7850,Wooden_Block_,Wooden Block,2,20,,100,,,,,,,,,,,,,{ callfunc("func_UpdateCampFire", rand(3, 5), 60, rand(5,15)); },{},{} @Emistry Edited November 12, 2018 by JaranSwitch0101 Quote
OscarScorp Posted November 11, 2018 Posted November 11, 2018 On 11/3/2018 at 2:06 AM, Emistry said: create a usable item. I do create an usable item but to no avail. Can I have a proper and working example from you please? Quote
Froost Posted November 12, 2018 Posted November 12, 2018 error function 7850 '-' add {callfunc("func_UpdateCampFire", rand(3, 5), 60, rand(5,15));} >> 7850,Wooden_Block_,Wooden Block,2,20,,100,,,,,,,,,,,,,{ "func_UpdateCampFire", rand(3, 5), 60, rand(5,15)); },{},{} On 11/10/2018 at 5:16 AM, JaranSwitch0101 said: I don't understand where I wrong,i follow your instructions but it's not working PLease...help... my item_db: 902,Tree_Root,Tree Root,2,12,,10,,,,,,,,,,,,,{callfunc("func_UpdateCampFire", rand(1, 5), 30, rand(1,8)); },{},{} 7035,Matchstick,Matchstick,2,100,,10,,,,,,,,,,,,,{ callfunc("func_CreateCampFire", rand(2, 5), 60, rand(1,10)); },{},{} 7850,Wooden_Block_,Wooden Block,2,20,,100,,,,,,,,,,,,,{ "func_UpdateCampFire", rand(3, 5), 60, rand(5,15)); },{},{} @Emistry Quote
JaranSwitch0101 Posted November 12, 2018 Posted November 12, 2018 (edited) 2 hours ago, eduardoking said: error function 7850 '-' add {callfunc("func_UpdateCampFire", rand(3, 5), 60, rand(5,15));} >> 7850,Wooden_Block_,Wooden Block,2,20,,100,,,,,,,,,,,,,{ "func_UpdateCampFire", rand(3, 5), 60, rand(5,15)); },{},{} yeah....i try it...but it's still not working I just want to know...where i'm wrong? Edited November 12, 2018 by JaranSwitch0101 Quote
Phaige Posted November 12, 2018 Posted November 12, 2018 awesome script. Working perfectly. How about adding some buff effects? how to do that instead of healing buffs within the area Quote
JaranSwitch0101 Posted November 13, 2018 Posted November 13, 2018 On 11/12/2018 at 1:32 PM, Phaige said: awesome script. Working perfectly. How about adding some buff effects? how to do that instead of healing buffs within the area Can you show me your sprite with item_db? Please.... @Phaige Quote
Froost Posted November 14, 2018 Posted November 14, 2018 @JaranSwitch0101 just follow the diffs, and add the script and item_db, have no error, I adding here and it worked perfectly. You must be missing something. 1 Quote
JaranSwitch0101 Posted November 14, 2018 Posted November 14, 2018 3 hours ago, eduardoking said: @JaranSwitch0101 just follow the diffs, and add the script and item_db, have no error, I adding here and it worked perfectly. You must be missing something. Like you say,i add diff and script & Item_db.Haven't any problem with sever ,i don't know missing what... Maybe i should change name of NPC...what's you think? Quote
Froost Posted November 22, 2018 Posted November 22, 2018 On 14/11/2018 at 06:28, JaranSwitch0101 said: Como você diz, eu adiciono diff e script & Item_db.Não tem nenhum problema com sever, eu não sei falta o que ... Talvez eu deva mudar o nome do NPC ... o que você acha? try to start from scratch, part by piece without forgetting any line, check it, it will work Quote
JaranSwitch0101 Posted November 22, 2018 Posted November 22, 2018 (edited) 7 minutes ago, Frost-Eduardo said: try to start from scratch, part by piece without forgetting any line, check it, it will work i was try 6 times,Carefully check each line one by one of Diff... It simply does not work despite not reporting any errors from sever Edited November 22, 2018 by JaranSwitch0101 Quote
Froost Posted November 22, 2018 Posted November 22, 2018 14 hours ago, JaranSwitch0101 said: i was try 6 times,Carefully check each line one by one of Diff... It simply does not work despite not reporting any errors from sever if it did not give the emulator any problem in the diff part, then you have to see things in item_db, send me like this your item_db and also send me the function you're using Quote
JaranSwitch0101 Posted November 23, 2018 Posted November 23, 2018 When download the Campfire Script of @Emistry .I added the function for item_db as instructed in the Campfire script http:// My item_db: On 11/10/2018 at 2:16 PM, JaranSwitch0101 said: I don't understand where I wrong,i follow your instructions but it's not working PLease...help... my item_db: 902,Tree_Root,Tree Root,2,12,,10,,,,,,,,,,,,,{callfunc("func_UpdateCampFire", rand(1, 5), 30, rand(1,8)); },{},{} 7035,Matchstick,Matchstick,2,100,,10,,,,,,,,,,,,,{ callfunc("func_CreateCampFire", rand(2, 5), 60, rand(1,10)); },{},{} 7850,Wooden_Block_,Wooden Block,2,20,,100,,,,,,,,,,,,,{ callfunc("func_UpdateCampFire", rand(3, 5), 60, rand(5,15)); },{},{} @Emistry I also tried change Ragexe,But it still does not work Quote
Froost Posted November 24, 2018 Posted November 24, 2018 (edited) You're using spaces between numbers, and in my this was giving error you: (2, 6) my: (2,6) try:{callfunc("func_UpdateCampFire",rand(1,5),30,rand(1,8)); } Edited November 24, 2018 by Frost-Eduardo Quote
Emistry Posted November 24, 2018 Author Posted November 24, 2018 @JaranSwitch0101 you're obviously did wrong somewhere in your src without following with the diff or did incorrectly, recheck every single lines that you have edit. No point in checking the item_db are using spaces or not, because its irrelevant. Quote
Phaige Posted November 25, 2018 Posted November 25, 2018 @Emistry How to change the effect instead of healing into other buff effects/boost effects. Quote
OscarScorp Posted November 25, 2018 Posted November 25, 2018 Got mine working now. Here's my CampfireUpdater item if it helps anyone: 7203,Solid_Twig,Strong Branch,0,190,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc("func_UpdateCampFire", 5, 30, 5); },{},{} 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.