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; }