// Move to 'Zsofia' and get the secret number from her.
hero.moveXY(18, 20);
var zso = hero.findNearestFriend().getSecret();

// Divide 'Zsofia's number by 4 to get 'Mihaly's number.
// Move to 'Mihaly' and say his magic number.
var mih = zso / 4;
hero.moveXY(30, 15);
hero.say(mih);



// Divide 'Mihaly's number by 5 to get 'Beata's number
// Move to 'Beata' and say her magic number.
var bea = 12 / 5;
hero.moveXY(42, 20);
hero.say(bea);
// Subtract 'Beata's number from 'Mihaly's to get Sandor's number.
// Move to 'Sandor' and say his magic number.
var san = 12 - 2.4;
hero.moveXY(38, 37);
hero.say(san);

 

 

 

 

Projektuję strony www Lublin na Joomla i WordPress