i Used This Script But The Problem is ..this script is only for 1 castle ..i want to add another castle ..but i dont know how to put properly on the script
i want add this castle prize: prtg_cas01, prtg_cas04, payg_cas01 payg_cas04 aldeg_cas05 gefg_cas01 gef_cas04
prontera,146,174,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 12035,1; // some mathematics ...
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;
}
Question
Green
i Used This Script But The Problem is ..this script is only for 1 castle ..i want to add another castle ..but i dont know how to put properly on the script
i want add this castle prize: prtg_cas01, prtg_cas04, payg_cas01 payg_cas04 aldeg_cas05 gefg_cas01 gef_cas04
woeprice.txt
Edited by CapucheCode
Link to comment
Share on other sites
13 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.