Need a simple Static NPC Healer Script

Join Discord

Mobius1NI

Dedicated Member
Dedicated Member
Jul 6, 2010
10
0
27
I would like to have an NPC that can be placed somewhere in my newcommer zone, where players
can click on to get a free heal. I know how to get NPCs to give you items but not health, can someone
explain please?

I searched the forums but didnt really find a solution
 

Mobius1NI

Dedicated Member
Dedicated Member
Jul 6, 2010
10
0
27
That looks usefull but I dont really understand what it means, can anyone
break it down a bit for me and explain how I use it, not for guilds just for
an NPC that anyone can use under the level of say... 10?
 
Upvote 0

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
195
Redditch, UK
if the script previously works then it should be real simple like:

[@HealZone_Main]
#IF
!CHECKLEVEL 10
#ACT
Mov A0 %USERMAP
Mov A1 %USERX
Mov A2 %USERY
FormatStr "%s,%s,%s,20" %A0 %A1 %A2
MakeHealZone %A9 10 50
Break
#SAY
Healing Area Activated!\
< Exit /@ Exit >
 
Upvote 0

Mobius1NI

Dedicated Member
Dedicated Member
Jul 6, 2010
10
0
27
I have created the NPC, he is at the southern gate in old bichion next to the teleport
The simple dialog works fine: The NPC responds with Healing Area Activated, but
this does not seem to heal the character or increase the regenation of his health or
anything like that.

Is there meant to be additional code stored elsewhere? Can anyone point
out whats wrong and where?

Code:
[@MAIN]
#IF
CHECKLEVEL 1
#SAY
I am here to heal you\
\
<Thanks /@HealZone_Main>
[@HealZone_Main]
#ACT
Mov A0 %USERMAP
Mov A1 %USERX
Mov A2 %USERY
FormatStr "%s,%s,%s,20" %A0 %A1 %A2
MakeHealZone %A9 10 50 
Break
#SAY
Healing Area Activated!\
< Exit /@ Exit > ]

I thought maybe the "MakeHealZone %A9 10 50" represented the coordinates of the healzone
so I tried making it the length of the entire map and also tried just an area around the NPC itself but
this didnt do anything.
 
Upvote 0