Unknown_Hero Mage
Messages : 780 Quality Points : 78 Registration Date : 2015-09-06
| Subject: [Script System][Suggestions] SetHeroForHire(player, n, hero, keep) 2017-03-17, 06:46 | |
| Currently, there is no way to change the hero available for hire in a castle.
*
SetHeroForHire(player, n, hero, keep) player: the player to get the hero from (see GetPlayer). n: can be set to "0" or "1". - "0" the hero for hire present in the first slot. - "1" the hero for hire present in the second slot. hero: the hero who will replace the current hero for hire. keep: can be set to "0" or "1". - "0" the former hero is not kept and if the new hero is recruited, the former hero does not necessarily replace him (for the current week). - "1" the former hero is retained and if the new hero is recruited, the former hero replaces him (for the current week).
Replaces the current hero for hire by the one you set. The former hero can be retained or not. | |
|