script question. about %player% & %buildingowner%
Posted: Tue Dec 06, 2011 10:05 pm
in the above script, the destroyer of the building is meant to reap a reward of gold and cash for destroying a building.Event( "buildingdestroyed", "35" )
{
*customsound %buildingowner% 14
*say %buildingowner%'s Pub has been destroyed by %player%!
*grantcash %player% 300
*grantitem %player% 3 gold
*grantkudos %player% 1
*customsound %player% 8
}
but to avoid cheating, is there any way for the script to detect if the building owner and player is the same person? if so, it does a different thing like *say %player% you destroyed your own pub! with no granting of gold or sheckles. is that possible?