Healer (Updated)


Author: MarijoGamer1337
Created: 2013-06-26T01:21:26-0400
Edited: 2013-06-26T01:21:26-0400
Denizen Version: 0.76
Views: 80
Downloads: 1426
Likes: 1


WGET
Description: This is a simple script for the latest Citizens (Denizen) Build.. It works kinda simple. If you need to be healed, you interact with an NPC and you get healed and fed for money. For default, healing will cost 25 $, but you can change this value easily.

Installation: Put the script into \plugins\Denizen\scripts folder, go to your server and type in:
/denizen reload -a
After that, create an npc:
/npc create Steve
and put him an assignment:
/npc assign --set Healer

Interaction: After creating the NPC, right click him and he'll drop 2 interacting messages, on you is to say 'Yes' or 'No' (Do you want to be healed or not)

Feel free to use the script :)

Credits: man_cub - Script Idea
MarijoGamer1337 - Script update with small fixes and changes

"Healer":
  Type: Assignment
  
  Interact Scripts:
  - 10 HEAL
  Actions:
       on assignment:
       - trigger name:click toggle:true
       - trigger name:chat toggle:true
"HEAL":
  Type: Interact
  Requirements:
    Mode: All
    List:
    - MONEY 25
  Steps:
    1:
      Click Trigger:
        Script:
        - CHAT "Do you need a doctor?"
        - WAIT 1
        - CHAT "Heal and food will cost you 25 &2$&f."
        - WAIT 1
        - HINT (SHORT)
      
      Chat Trigger:
        1:
          Trigger: "/Yes/, I need a doctor"
          Script:
          - WAIT 2
          - CHAT "Ok, let me heal you. "
          - TAKE MONEY QTY:25
          - NARRATE "You lost 25$ for being healed and fed."
          - HEAL
          - FEED
          - NARRATE "You are fed and healed. Be careful next time !"
        
        2:
          Trigger: "/No/, I don't need a doctor !"
          Script:
          - WAIT 2
          - CHAT "Fine. Be careful on your journey !"




Comments
2013-07-20 04:59:57 - Tacoaloto:

The Healer Feeds but doesn't actually heal you at all..maybe it's because i'm using the newest version or something
2013-07-20 05:23:29 - Tacoaloto:

The Healer Feeds but doesn't actually heal you at all..maybe it's because i'm using the newest version or something
2013-07-28 05:37:46 - MarijoGamer1337:

@Tacoaloto hmm, i just fixed my pc, i'll now update bukkit and see what's up :D Thanks for reporting this bug, will try to fix it soon :)