Sign in to follow this  
Emistry

Utility: Campfire

Recommended Posts

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
  • Submitted
    11/01/2018
  • Category
  • Video
    https://www.youtube.com/watch?v=mFPFflLGscE
  • Content Author
    Emistry

 

  • Love 3

Share this post


Link to post
Share on other sites

Great release there Emistry ! 

Share this post


Link to post
Share on other sites

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).

nFS2ATR.png

Edited by Rizta

Share this post


Link to post
Share on other sites
21 hours ago, Emistry said:

add the source mode provided in the script. (or here)

 

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites
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 

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

create a usable item.

Share this post


Link to post
Share on other sites

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 by JaranSwitch0101

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

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 😭

 

Share this post


Link to post
Share on other sites
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 by JaranSwitch0101

Share this post


Link to post
Share on other sites

awesome script. Working perfectly. How about adding some buff effects? how to do that instead of healing buffs within the area

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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? 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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 by JaranSwitch0101

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

When download the Campfire Script of @Emistry .I added the function for item_db as instructed in the Campfire script

http://Untitled.png

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

 

Share this post


Link to post
Share on other sites

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 by Frost-Eduardo

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites

@Emistry How to change the effect instead of healing into other buff effects/boost effects.

Share this post


Link to post
Share on other sites

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); },{},{}

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this