Jump to content
  • 0

Guild owns Healer/Buffer


Question

Posted (edited)

Requesting a healer+buffer with pay. 10k for heal/agi/bless 100,000k for heal/agi/bless/windwalk/assumptio. This is owned by the winning guild "kriemhild".The payment will go to the winning guild. Only the guild leader can get the zeny.thank you.

Edited by maynard

8 answers to this question

Recommended Posts

Posted (edited)

try this..and edit the Buff Lists at your own...

prontera,155,181,5 script Sample 757,{
set .Guild,getcastledata( "prtg_cas01",1 );
if( getcharid(2) == .Guild ){
mes "Total Earning : "+$Earn+" Zeny.";
}
mes "The Heal Cost will be paid to the Winning Guild.";
mes "Heal - 10k";
mes "Buff 1 - 100k";
mes "Buff 2 - 200k";
next;
switch( select( "Heal",
"Buff 1",
"Buff 2",
( strcharinfo(0) != getguildmaster( .Guild ) )?"":"[^0000FFMaster^000000] Claim Earn" )){
Case 1:
 if( Zeny < 10000 ){
  mes "You didnt have enough 10k Zeny.";
 }else{
  mes "Done";
  percentheal 100,100; // Heal
  set Zeny,Zeny - 10000;
  set $Earn,$Earn + 10000;
 }
 close;
Case 2:
 if( Zeny < 100000 ){
  mes "You didnt have enough 100k Zeny.";
 }else{
  mes "Done";
  percentheal 100,100;  // Buff 1
  set Zeny,Zeny - 100000;
  set $Earn,$Earn + 100000;
 }
 close;
Case 3:
 if( Zeny < 200000 ){
  mes "You didnt have enough 200k Zeny.";
 }else{
  mes "Done";
  percentheal 100,100; // Buff 2
  set Zeny,Zeny - 200000;
  set $Earn,$Earn + 200000;
 }
 close;
Case 4:
 mes "Total Earning : "+$Earn+" Zeny.";
 if( select("Claim It:Cancel") == 2 ) close;
  mes "How much you want to claim ?";
 do{
  input @Amount,0,$Earn;
  if( !@Amount ) close;
  if( ( Zeny + @Amount ) > 1000000000 ) mes "Limit Exceed...";
 }while( ( Zeny + @Amount ) > 1000000000 );
 mes "Gained "+@Amount+" Zeny.";
 set Zeny,Zeny + @Amount;
 set $Earn,$Earn - @Amount;
 close;
}
}

Edited by Emistry
  • Upvote 1
Posted

sir thank you very much.its working great. i remove the line# 23 because it give me error but after removing that, its working perfectly. once again a nice job well done.A little more NPC script and my goal is complete.

Posted

sir thank you very much.its working great. i remove the line# 23 because it give me error but after removing that, its working perfectly. once again a nice job well done.A little more NPC script and my goal is complete.

What is the error? Removing one line carelessly can completely mess up how a script works.

Posted

sir thank you very much.its working great. i remove the line# 23 because it give me error but after removing that, its working perfectly. once again a nice job well done.A little more NPC script and my goal is complete.

What is the error? Removing one line carelessly can completely mess up how a script works.

Nevermind..it is fixed by himself... i was accidently added an extra line...

you didnt found it coz i edited my posts right after he post the problems...

Posted

I found a bug,If you click it the first time it will show you the menu and its working properly but if you click it the 2nd time it will show you the zeny but there's no menu.you can;t type or do anything, to resolve this you have to warp tru alt-m. This is only happen to the winning guild. If im just ordinary player who don't belong to the winning guild it works properly no matter how many times I click.

Posted
but if you click it the 2nd time it will show you the zeny but there's no menu.you can;t type or do anything, to resolve this you have to warp tru alt-m.

There should be an Error Message in Map Server.....check it....and post here if you donno how solve

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...