then today the castle opened is swan then guild omega successfully defended there castle
so they will get the prize for swan,.
the problem is they can also get again the prize for fad,arug..that should not be because swan only opened this day
here is my script i am using 3ceam
zhakastia,98,39,8 script Woe Prize 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; } else if ( agitcheck2() ) { 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; } set .@menu, select(.menu$) -1; if ( getcastledata( .castlemap$[.@menu], 1) == getcharid(2) ) { if ( $castle_claimed & pow(2, .@menu) ) { mes "your guild already received the reward for "+ .castlename$[.@menu]; close; } else if ( getguildmasterid( getcharid(2) ) == getcharid(0) ) { mes "receiving the reward for "+ .castlename$[.@menu]; getitem 674, 15; set $castle_claimed, $castle_claimed | pow(2, .@menu); close; } else { mes "ask your guild master to see me"; close; } } mes "your guild failed to take "+ .castlename$[.@menu]; 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: setarray .castlemap$, "arug_cas03", "aldeg_cas05", "gefg_cas04", "payg_cas03", "prtg_cas02"; for ( set .@i, 0; .@i < 5; set .@i, .@i +1 ) { set .castlename$[.@i], getcastlename(.castlemap$[.@i]); set .menu$, .menu$ + .castlename$[.@i] +":"; } }
the problem to my woe prize giver is example
omega guild owns 3 castle already fad,swan,arug
then today the castle opened is swan then guild omega successfully defended there castle
so they will get the prize for swan,.
the problem is they can also get again the prize for fad,arug..that should not be because swan only opened this day
here is my script i am using 3ceam
Share this post
Link to post
Share on other sites