Just want to request a script or code that will help this script to give to the kriemhild guild leader owner the item ID# 7146's amount depends on how many castles they're owned.
SIEGE_P:
set @GID,getcharid(2);
set .@GID, GetCastleData("prtg_cas01",1);
set .Map$,"prtg_cas01";
if ( agitcheck() ){ message strcharinfo(0), "You can't get any guild profit if there's a war."; end; }
if ( SIEGEPOINTS < 1 ){ message strcharinfo(0), "You don't have any Siege Point(s)."; end; }
if ( MaxWeight <= Weight * 2 ){ message strcharinfo(0), "You can't get any profit if you're over weight."; end; }
if ( @inventorylist_count > 95 ){ message strcharinfo(0), "Remove some of your inventory item(s) to get your profit."; end; }
if( strcharinfo(0) == getguildmaster( getcastledata( .Map$,1 ) ) ){
getitem 7146,10;
getitem 30004,SIEGEPOINTS*100;
set SIEGEPOINTS,0;
end;
}
}
Question
cahadeyelo
Just want to request a script or code that will help this script to give to the kriemhild guild leader owner the item ID# 7146's amount depends on how many castles they're owned.
SIEGE_P: set @GID,getcharid(2); set .@GID, GetCastleData("prtg_cas01",1); set .Map$,"prtg_cas01"; if ( agitcheck() ){ message strcharinfo(0), "You can't get any guild profit if there's a war."; end; } if ( SIEGEPOINTS < 1 ){ message strcharinfo(0), "You don't have any Siege Point(s)."; end; } if ( MaxWeight <= Weight * 2 ){ message strcharinfo(0), "You can't get any profit if you're over weight."; end; } if ( @inventorylist_count > 95 ){ message strcharinfo(0), "Remove some of your inventory item(s) to get your profit."; end; } if( strcharinfo(0) == getguildmaster( getcastledata( .Map$,1 ) ) ){ getitem 7146,10; getitem 30004,SIEGEPOINTS*100; set SIEGEPOINTS,0; end; } }
Link to comment
Share on other sites
1 answer 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.