Emistry Posted November 1, 2018 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Thursday at 04:49 PM Share 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 Link to comment Share on other sites More sharing options...
Tanlor Posted November 1, 2018 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 50 Reputation: 14 Joined: 07/23/18 Last Seen: January 9, 2023 Share Posted November 1, 2018 What a beautiful script, Emistry! ;D Quote Link to comment Share on other sites More sharing options...
Radian Posted November 1, 2018 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 November 1, 2018 Great release there Emistry ! Quote Link to comment Share on other sites More sharing options...
Rizta Posted November 2, 2018 Group: Members Topic Count: 22 Topics Per Day: 0.01 Content Count: 109 Reputation: 5 Joined: 08/12/17 Last Seen: March 30, 2020 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted November 2, 2018 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Thursday at 04:49 PM Author Share Posted November 2, 2018 21 hours ago, Emistry said: add the source mode provided in the script. (or here) Quote Link to comment Share on other sites More sharing options...
OscarScorp Posted November 2, 2018 Group: Members Topic Count: 62 Topics Per Day: 0.02 Content Count: 217 Reputation: 16 Joined: 01/28/15 Last Seen: February 25, 2022 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted November 3, 2018 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Thursday at 04:49 PM Author Share 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 Link to comment Share on other sites More sharing options...
OscarScorp Posted November 3, 2018 Group: Members Topic Count: 62 Topics Per Day: 0.02 Content Count: 217 Reputation: 16 Joined: 01/28/15 Last Seen: February 25, 2022 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted November 3, 2018 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Thursday at 04:49 PM Author Share Posted November 3, 2018 create a usable item. Quote Link to comment Share on other sites More sharing options...
JaranSwitch0101 Posted November 10, 2018 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 59 Reputation: 5 Joined: 07/02/18 Last Seen: September 3, 2020 Share 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 Link to comment Share on other sites More sharing options...
OscarScorp Posted November 11, 2018 Group: Members Topic Count: 62 Topics Per Day: 0.02 Content Count: 217 Reputation: 16 Joined: 01/28/15 Last Seen: February 25, 2022 Share 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 Link to comment Share on other sites More sharing options...
Froost Posted November 12, 2018 Group: Donators Topic Count: 20 Topics Per Day: 0.01 Content Count: 122 Reputation: 140 Joined: 07/28/18 Last Seen: April 12 Share 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 Link to comment Share on other sites More sharing options...
JaranSwitch0101 Posted November 12, 2018 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 59 Reputation: 5 Joined: 07/02/18 Last Seen: September 3, 2020 Share 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 Link to comment Share on other sites More sharing options...
Phaige Posted November 12, 2018 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 60 Reputation: 3 Joined: 01/28/12 Last Seen: January 20, 2021 Share 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 Link to comment Share on other sites More sharing options...
JaranSwitch0101 Posted November 13, 2018 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 59 Reputation: 5 Joined: 07/02/18 Last Seen: September 3, 2020 Share 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 Link to comment Share on other sites More sharing options...
Froost Posted November 14, 2018 Group: Donators Topic Count: 20 Topics Per Day: 0.01 Content Count: 122 Reputation: 140 Joined: 07/28/18 Last Seen: April 12 Share 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 Link to comment Share on other sites More sharing options...
JaranSwitch0101 Posted November 14, 2018 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 59 Reputation: 5 Joined: 07/02/18 Last Seen: September 3, 2020 Share 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 Link to comment Share on other sites More sharing options...
Froost Posted November 22, 2018 Group: Donators Topic Count: 20 Topics Per Day: 0.01 Content Count: 122 Reputation: 140 Joined: 07/28/18 Last Seen: April 12 Share 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 Link to comment Share on other sites More sharing options...
JaranSwitch0101 Posted November 22, 2018 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 59 Reputation: 5 Joined: 07/02/18 Last Seen: September 3, 2020 Share 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 Link to comment Share on other sites More sharing options...
Froost Posted November 22, 2018 Group: Donators Topic Count: 20 Topics Per Day: 0.01 Content Count: 122 Reputation: 140 Joined: 07/28/18 Last Seen: April 12 Share 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 Link to comment Share on other sites More sharing options...
JaranSwitch0101 Posted November 23, 2018 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 59 Reputation: 5 Joined: 07/02/18 Last Seen: September 3, 2020 Share 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 Link to comment Share on other sites More sharing options...
Froost Posted November 24, 2018 Group: Donators Topic Count: 20 Topics Per Day: 0.01 Content Count: 122 Reputation: 140 Joined: 07/28/18 Last Seen: April 12 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted November 24, 2018 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Thursday at 04:49 PM Author Share 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 Link to comment Share on other sites More sharing options...
Phaige Posted November 25, 2018 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 60 Reputation: 3 Joined: 01/28/12 Last Seen: January 20, 2021 Share Posted November 25, 2018 @Emistry How to change the effect instead of healing into other buff effects/boost effects. Quote Link to comment Share on other sites More sharing options...
OscarScorp Posted November 25, 2018 Group: Members Topic Count: 62 Topics Per Day: 0.02 Content Count: 217 Reputation: 16 Joined: 01/28/15 Last Seen: February 25, 2022 Share 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 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.