turbo_room,93,117,5 script Woe Prize Reward 986,{ waitingroom "Woe Rewarder",0; setcastledata "prtg_cas01", 1, getcharid(2); // just testing .. 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; } set .@menu, select(.menu$) -1; if ( getcastledata("prtg_cas0"+( .@menu +1 ), 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 7179, 50 * (2 - .@menu); // some mathematics ... 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 .castlename$, "Kriemhild", "Swanhild", "Fadhgridh", "Skoegul", "Gondul", "Bright Arbor", "Scarlet Palace"; for ( set .@i, 0; .@i < 7; set .@i, .@i +1 ) set .menu$, .menu$ + .castlename$[.@i] +":"; }
i want to ask for ur help about this script. the prob is. my players telling me that the rewarder giving them 50 pcs of my reward. but when i test it my self its giving me 100 pc, any idea? and i would like to add 2 more castles. Bright arbor and scarlet palace. do you think u can help me? advance thanks for you
Question
alone20
turbo_room,93,117,5 script Woe Prize Reward 986,{
waitingroom "Woe Rewarder",0;
setcastledata "prtg_cas01", 1, getcharid(2); // just testing ..
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;
}
set .@menu, select(.menu$) -1;
if ( getcastledata("prtg_cas0"+( .@menu +1 ), 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 7179, 50 * (2 - .@menu); // some mathematics ...
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 .castlename$, "Kriemhild", "Swanhild", "Fadhgridh", "Skoegul", "Gondul", "Bright Arbor", "Scarlet Palace";
for ( set .@i, 0; .@i < 7; set .@i, .@i +1 )
set .menu$, .menu$ + .castlename$[.@i] +":";
}
i want to ask for ur help about this script. the prob is. my players telling me that the rewarder giving them 50 pcs of my reward. but when i test it my self its giving me 100 pc, any idea? and i would like to add 2 more castles. Bright arbor and scarlet palace. do you think u can help me? advance thanks for you
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.