Jump to content

Utility: Campfire


Emistry

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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

 

  • Upvote 1
  • Love 4
  • MVP 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   14
  • Joined:  07/23/18
  • Last Seen:  

What a beautiful script, Emistry! ;D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Great release there Emistry ! 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  109
  • Reputation:   5
  • Joined:  08/12/17
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

21 hours ago, Emistry said:

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

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

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!

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

create a usable item.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  59
  • Reputation:   5
  • Joined:  07/02/18
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Donators
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   138
  • Joined:  07/28/18
  • Last Seen:  

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 ?

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  59
  • Reputation:   5
  • Joined:  07/02/18
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   3
  • Joined:  01/28/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  59
  • Reputation:   5
  • Joined:  07/02/18
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Donators
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   138
  • Joined:  07/28/18
  • Last Seen:  

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

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  59
  • Reputation:   5
  • Joined:  07/02/18
  • Last Seen:  

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? 

Link to comment
Share on other sites


  • Group:  Donators
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   138
  • Joined:  07/28/18
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  59
  • Reputation:   5
  • Joined:  07/02/18
  • Last Seen:  

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


  • Group:  Donators
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   138
  • Joined:  07/28/18
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  59
  • Reputation:   5
  • Joined:  07/02/18
  • Last Seen:  

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

 

Link to comment
Share on other sites


  • Group:  Donators
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   138
  • Joined:  07/28/18
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   3
  • Joined:  01/28/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

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

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...