Jump to content
  • 0

Somebody can edit this script for me please? Soul Linker Npc


eboni001

Question


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

Hello guys this is soul linker,healer and buffer npc by Emistry, i want this npc only to buff and soul link at cost of 200k zeny each service, but i want it have the option to choose like reset npc: hello what you want- Link Me, Buff me, both service. thanks in advance hope someboy help me ^_^.

 

prontera,155,181,5 script Soul Buffer#1:SB 992,{
OnHeal:
percentheal 100,100;
end;
OnBuffs:
percentheal 100,100;
skilleffect 34,0; sc_start SC_BLESSING,360000,10;
skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10;
end;
OnLink:
switch ( basejob ) {
  case Job_Alchemist:	set .@spirit, 445; break;
  case Job_Monk:	 set .@spirit, 447; break;
  case Job_Star_Gladiator:  set .@spirit, 448; break;
  case Job_Sage:	 set .@spirit, 449; break;
  case Job_Crusader:	set .@spirit, 450; break;
  case Job_SuperNovice:   set .@spirit, 451; break;
  case Job_Knight:	set .@spirit, 452; break;
  case Job_Wizard:	set .@spirit, 453; break;
  case Job_Priest:	set .@spirit, 454; break;
  case Job_Bard: case Job_Dancer: set .@spirit, 455; break;
  case Job_Rogue:	 set .@spirit, 456; break;
  case Job_Assassin:	set .@spirit, 457; break;
  case Job_Blacksmith:   set .@spirit, 458; break;
  case Job_Hunter:	set .@spirit, 460; break;
  case Job_Soul_Linker:   set .@spirit, 461; break;
  default:
   if ( upper == 1 && baselevel < 70 )
	set .@spirit, 494;
}
if ( .@spirit ) {
  sc_start4 sc_spirit, 360000, 5, .@spirit,0,0;
  skilleffect .@spirit, 5;
}
end;
OnInit:
defpattern 1, "heal","OnHeal";
defpattern 1, "buff","OnBuffs";
defpattern 1, "link","OnLink";
activatepset 1;
end;
}

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  520
  • Reputation:   64
  • Joined:  11/19/11
  • Last Seen:  


prontera,155,181,5 script Soul Buffer#1:SB 992,{

mes " Msg ";

mes " Msg 2";

set .@i,select( "Buff","Link","Both" );

set .@cost,( ( .@i == 3 )? 400000:200000 );

if( Zeny < .@cost ){

mes "You dont have enough "+.@cost+" zeny.";

}else{

set Zeny,Zeny - .@cost;

if( .@i & 1 ){

percentheal 100,100;

skilleffect 34,0; sc_start SC_BLESSING,360000,10;

skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10;

}

if( .@i & 2 ){

switch ( basejob ) {

case Job_Alchemist: set .@spirit, 445; break;

case Job_Monk: set .@spirit, 447; break;

case Job_Star_Gladiator: set .@spirit, 448; break;

case Job_Sage: set .@spirit, 449; break;

case Job_Crusader: set .@spirit, 450; break;

case Job_SuperNovice: set .@spirit, 451; break;

case Job_Knight: set .@spirit, 452; break;

case Job_Wizard: set .@spirit, 453; break;

case Job_Priest: set .@spirit, 454; break;

case Job_Bard: case Job_Dancer: set .@spirit, 455; break;

case Job_Rogue: set .@spirit, 456; break;

case Job_Assassin: set .@spirit, 457; break;

case Job_Blacksmith: set .@spirit, 458; break;

case Job_Hunter: set .@spirit, 460; break;

case Job_Soul_Linker: set .@spirit, 461; break;

default:

if ( upper == 1 && baselevel < 70 )

set .@spirit, 494;

}

if ( .@spirit ) {

sc_start4 sc_spirit, 360000, 5, .@spirit,0,0;

skilleffect .@spirit, 5;

}

}

mes "DONE";

}

close;

}

Link to comment
Share on other sites


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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

Sir Emistry this script is working very good, but how i can add some talk, like hello i am soul buffer npc i can buff or soul link you for the cost of (amount of zeny), what do you want i do for you? soul link me, buff me, both of them. TY again sir Emistry!!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

prontera,155,181,5 script Soul Buffer#1:SB 992,{
        

        mes " Msg ";
        mes " Msg 2";

	set .@i,select( "Buff","Link","Both" );
	set .@cost,( ( .@i == 3 )? 400000:200000 );
	if( Zeny < .@cost ){
		mes "You dont have enough "+.@cost+" zeny.";
	}else{
		set Zeny,Zeny - .@cost;
		if( .@i & 1 ){
			percentheal 100,100;
			skilleffect 34,0; sc_start SC_BLESSING,360000,10;
			skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10;
		}
		if( .@i & 2 ){
			switch ( basejob ) {
			  case Job_Alchemist:	set .@spirit, 445; break;
			  case Job_Monk:	 set .@spirit, 447; break;
			  case Job_Star_Gladiator:  set .@spirit, 448; break;
			  case Job_Sage:	 set .@spirit, 449; break;
			  case Job_Crusader:	set .@spirit, 450; break;
			  case Job_SuperNovice:   set .@spirit, 451; break;
			  case Job_Knight:	set .@spirit, 452; break;
			  case Job_Wizard:	set .@spirit, 453; break;
			  case Job_Priest:	set .@spirit, 454; break;
			  case Job_Bard: case Job_Dancer: set .@spirit, 455; break;
			  case Job_Rogue:	 set .@spirit, 456; break;
			  case Job_Assassin:	set .@spirit, 457; break;
			  case Job_Blacksmith:   set .@spirit, 458; break;
			  case Job_Hunter:	set .@spirit, 460; break;
			  case Job_Soul_Linker:   set .@spirit, 461; break;
			  default:
			   if ( upper == 1 && baselevel < 70 )
				set .@spirit, 494;
			}
			if ( .@spirit ) {
			  sc_start4 sc_spirit, 360000, 5, .@spirit,0,0;
			  skilleffect .@spirit, 5;
			}
		}
		mes "DONE";
	}
close;
}

TY very much guys this is Awesome, ^_^ already have my Soul Buffer npc. Yoohoo!!!

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