Jump to content
  • 0

Help how to add a healer for my pvp room script.


creeps123

Question


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

Can you give me a script that i can add inside my pvproom script? if you talk to it.. it will ask if you want to heal or leave.. thanks in advance guys! :) the heal has cooldown of 30 seconds.. thanks!!!

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

how about the leave.. :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  17
  • Reputation:   2
  • Joined:  02/27/12
  • Last Seen:  

how about the leave.. :(

what do you mean leave ? leave as a quit or leave as a leave in a room ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

how about the leave.. :(

what do you mean leave ? leave as a quit or leave as a leave in a room ?

Leave in the room. warp back to prontera..

i want it to be like this one..

function script HealerPVP {
mes "How do you need help?.";
menu "Heal Please",L_Heal,"Leave",L_Leave;
L_Heal:
percentheal 100,100;
close;
L_Leave:
warp "prontera",156,179;
close;
}

but i want to set delay on the heal menu.. i just don't know how to do it.. :(

bump please :(

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Using

-    script    Healergfd    -1,{

   set .@Price,0;    // Zeny required for heal
   set .@Buffs,0;    // Also buff players? (1: yes / 0: no)
   set .@Delay,30;    // Heal delay, in seconds

   if ( select("Heal Please","Leave") -1 ) {
       warp "prontera",156,179;
       close; }

   callfunc "F_ClearGarbage",0;
   if (@HD > gettimetick(2)) end;
   if (.@Price) {
       message strcharinfo(0),"Healing costs "+.@Price+" Zeny.";
       if (Zeny < .@Price) end;
       if(select("^0055FFHeal^000000:^777777Cancel^000000") == 2) close;
       set Zeny, Zeny-.@Price;
   }
   specialeffect2 313; percentheal 100,100;
   if (.@Buffs) {
       specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,240000,10;
       specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10;
   }
   if (.@Delay) set @HD, gettimetick(2)+.@Delay;
   close;
}
alberta,25,240,6    duplicate(Healergfd)    Healer#albgfd    909

Heal delay : 30 seconds.

Option warp.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

Using

-	script	Healergfd	-1,{

set .@Price,0;	// Zeny required for heal
set .@Buffs,0;	// Also buff players? (1: yes / 0: no)
set .@Delay,30;	// Heal delay, in seconds

if ( select("Heal Please","Leave") -1 ) {
	warp "prontera",156,179;
	close; }

callfunc "F_ClearGarbage",0;
if (@HD > gettimetick(2)) end;
if (.@Price) {
	message strcharinfo(0),"Healing costs "+.@Price+" Zeny.";
	if (Zeny < .@Price) end;
	if(select("^0055FFHeal^000000:^777777Cancel^000000") == 2) close;
	set Zeny, Zeny-.@Price;
}
specialeffect2 313; percentheal 100,100;
if (.@Buffs) {
	specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,240000,10;
	specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10;
}
if (.@Delay) set @HD, gettimetick(2)+.@Delay;
close;
}
alberta,25,240,6	duplicate(Healergfd)	Healer#albgfd	909

Heal delay : 30 seconds.

Option warp.

I tried it.. the first one goes well.. it heals you.. but the second time you are going to use the npc.. when you try to heal.. it is stucked.. it is like you are stucked in the conversation. can't move.. and also.. can you remove the buffs? i want it also to everytime they try to heal again but it is too early the npc will say that Please wait for 30 seconds before you can use me again.. (this is only for the same player that uses it) but if another player uses it.. he will be healed.. i want the cooldown for an individual.. (player 1 will heal.. then player 1 will heal again but not yet 30seconds.. npc will tell him Please wait for xx seconds before you can use me again.. then player 2 will heal.. he can use it.. but the 2nd time he uses it with the effect of cooldown. he wont be able to use it..)

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

but the second time you are going to use the npc.. when you try to heal.. it is stucked.. it is like you are stucked in the conversation. can't move..

Yeah sorry I made a mistake.

and also.. can you remove the buffs?

The buff is already removed.

i want it also to everytime they try to heal again but it is too early the npc will say that Please wait for 30 seconds before you can use me again.. (this is only for the same player that uses it) but if another player uses it.. he will be healed.. i want the cooldown for an individual..

Okay here a version with a message.

-    script    Healergfd    -1,{

   set .@Price,0;    // Zeny required for heal
   set .@Buffs,0;    // Also buff players? (1: yes / 0: no)
   set .@Delay,30;    // Heal delay, in seconds

   if ( select("Heal Please","Leave") -1 ) {
       warp "prontera",156,179;
       close; }

   callfunc "F_ClearGarbage",0;
   set .@t, @HD - gettimetick(2);
   if ( .@t > 0 ) {
       message strcharinfo(0),"Sorry, you must wait "+.@t+" seconds.";
       close; }
   if (.@Price) {
       message strcharinfo(0),"Healing costs "+.@Price+" Zeny.";
       if (Zeny < .@Price) end;
       if(select("^0055FFHeal^000000:^777777Cancel^000000") == 2) close;
       set Zeny, Zeny-.@Price;
   }
   specialeffect2 313; percentheal 100,100;
   if (.@Buffs) {
       specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,240000,10;
       specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10;
   }
   if (.@Delay) set @HD, gettimetick(2)+.@Delay;
   close;
}
alberta,25,240,6    duplicate(Healergfd)    Healer#albgfd    909

Edited by Capuche
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

Ok sir! lemme try it! thanks! :)

EDIT: tested it out but I can't talk to it now.. whenever i click it.. it does nothing..

Help please.. :(

bump!

Edited by creeps123
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

I change it. It works also for eathena or old version now.

-    script    Healergfd    -1,{

   set .@Price,0;    // Zeny required for heal
   set .@Buffs,0;    // Also buff players? (1: yes / 0: no)
   set .@Delay,30;    // Heal delay, in seconds

   if ( select("Heal Please","Leave") -1 ) {
       warp "prontera",156,179;
       close; }

   callfunc "F_ClearGarbage",0;
   set .@t, @HD - gettimetick(2);
   if ( .@t > 0 ) {
       message strcharinfo(0),"Sorry, you must wait "+.@t+" seconds.";
       close; }
   if (.@Price) {
       message strcharinfo(0),"Healing costs "+.@Price+" Zeny.";
       if (Zeny < .@Price) end;
       if(select("^0055FFHeal^000000:^777777Cancel^000000") == 2) close;
       set Zeny, Zeny-.@Price;
   }
   specialeffect2 313; percentheal 100,100;
   if (.@Buffs) {
       specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,240000,10;
       specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10;
   }
   if (.@Delay) set @HD, gettimetick(2)+.@Delay;
   close;
}
alberta,25,240,6    duplicate(Healergfd)    Healer#albgfd    909

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

Thanks sir!!!! ill update you if i have more problems hehe

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
Answer this question...

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