Jump to content
  • 0

Healer + Buffer


Evrard

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  03/27/13
  • Last Seen:  

Hello, I modified a Healer Script that I found so that it gave buffs if you had certain items, to be specific, 1 buff for each ticket, and some special tickets that granted several buffs, when I run it it either doesn't work or gives me stone curse, can anybody please tell me what did I script wrong?

 

//Healer
-	script	Healer	-1,{
	
	set .@Delay,2;	// Heal delay, in seconds
	set .@price,15000;	// Price in zeny

	callfunc "F_ClearGarbage",0;
	if (@HD > gettimetick(2)) end;
	specialeffect2 313; 
	percentheal 100,100;

	if(countitem(30004) >= 1){
	specialeffect2 37; sc_start SC_INCREASEAGI,360000,10;
	}
	if(countitem(30003) >= 1){
	specialeffect2 42; sc_start SC_BLESSING,360000,10;
	}
	if (countitem(30005) >= 1){	
		set .@price,0;
	}
	if (countitem(30006) >= 1){
	specialeffect2 75; sc_start PR_GLORIA,360000,5;
	}
	if (countitem(30007) >= 1){
	specialeffect2 112; sc_start AL_ANGELUS,360000,10;
	}
	if (countitem(30008) >= 1){
	sepecialeffect2 130, sc_start BS_ADRENALINE,360000,5;
	}
	if countitem(30009) >= 1){
	specialeffect2 76, sc_start PR_IMPOSITIO,360000,5;
	}
	if countitem(30010) >= 1){
	specialeffect2 6; sc_start SC_INCREASEAGI,360000,10; sc_start SC_BLESSING,360000,10; set .@price,0;
	}
	if countitem(30011) >= 1){
	specialeffect2 9; c_start PR_GLORIA,360000,5; sc_start AL_ANGELUS,360000,10; set .@price,0;
	}
	if countitem(30012) >= 1){
	specialeffect2 14; sc_start BS_ADRENALINE,360000,5; sc_start PR_IMPOSITIO,360000,5; set .@price,0;
	}
	if countitem(30013) >= 1){
	specialeffect2 77; sc_start SC_INCREASEAGI,360000,10; sc_start SC_BLESSING,360000,10; c_start PR_GLORIA,360000,5; sc_start AL_ANGELUS,360000,10; sc_start BS_ADRENALINE,360000,5; sc_start PR_IMPOSITIO,60000,5; sc_start HP_ASSUMPTIO,60000,5; sc_start SN_WINDWALK,360000,10; set .@price,0;
	}	
	if (BaseLevel<=149){
		set .@price,0;
	}
	if (.@Price) {
		message strcharinfo(0),"Healing costs "+.@Price+" Zeny when you reach level 150 until you get a Price Ticket, or any Healer Ticket.";
		if (Zeny < .@Price) end;
		set Zeny, Zeny-.@Price;
		}
	if (.@Delay) set @HD, gettimetick(2)+.@Delay;
	close;
}

 

thanks in advance >_<

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


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

sepecialeffect2
c_start PR_GLORIA,360000,5;
if countitem(30012) >= 1){

There are typo errors. Check your mapserv

 

 

+

BS_ADRENALINE

is not a sc_bonus

Effect type is a number of effect, 'db/const.txt' lists the common (mostly

negative) status effect types as constants, starting with 'SC_'. You can also

use this to give someone an effect of a player-cast spell:

Link to comment
Share on other sites


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

try change close to end

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  03/27/13
  • Last Seen:  

Changed that, also a couple of , that where supposed to be ; still doesn't work >-<

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  03/27/13
  • Last Seen:  

Thanks! after like 400000 typos it ended up working perfectly, and thanks for the SC_ part, I actually had no idea and I feel kinda stupid because of it... /)_<

 

thanks again!

 

Problem Solved :)

Edited by Evrard
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...