viewing paste Unknown #6104 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
prontera,137,176,5  script  WoE Prize Giver 1002,{
 
if ( agitcheck() ) {
  mes "a war is currently in progress";
  mes "if your guild owned a castle ask your guild master to see me to claim the reward";
  close;
}
if ( getcastledata( .castlename$,1 ) == getcharid(2) ) {
  if ( $castle_claimed ) {
   mes "your guild already received the reward";
   close;
  }else if ( getguildmasterid( getcharid(2) ) == getcharid(0) ) {
   mes "receiving the reward for "+ .castlename$[.@menu];
   getitem 7227,100; // some mathematics ...
   getitem 674,10;
   getitem 14232,10;
   set $castle_claimed,1;
   close;
  }else {
   mes "ask your guild master to see me";
   close;
  }
}
mes "your guild failed to take reward";
mes "if your guild owned a castle ask your guild master to claim reward from me";
close;
 
OnAgitEnd:
set $castle_claimed, 0; // everytime woe ends the variable resets
end;
 
OnInit:
set .castlename$, "prtg_cas01";
    waitingroom "Woe Prize",0;
end;
}
Viewed 782 times, submitted by Guest.