| 2201 | } |
| 2202 | |
| 2203 | void OperateInnSignChest(const Player &player, Object &questContainer, bool sendmsg) |
| 2204 | { |
| 2205 | if (ActiveItemCount >= MAXITEMS) { |
| 2206 | return; |
| 2207 | } |
| 2208 | |
| 2209 | if (Quests[Q_LTBANNER]._qvar1 != 2) { |
| 2210 | if (&player == MyPlayer) { |
| 2211 | player.Say(HeroSpeech::ICantOpenThisYet); |
| 2212 | } |
| 2213 | return; |
| 2214 | } |
| 2215 | |
| 2216 | if (questContainer._oSelFlag == 0) { |
| 2217 | return; |
| 2218 | } |
| 2219 | |
| 2220 | questContainer._oSelFlag = 0; |
| 2221 | questContainer._oAnimFrame += 2; |
| 2222 | |
| 2223 | PlaySfxLoc(IS_CHEST, questContainer.position); |
| 2224 | |
| 2225 | if (sendmsg) { |
| 2226 | Point pos = GetSuperItemLoc(questContainer.position); |
| 2227 | SpawnQuestItem(IDI_BANNER, pos, 0, 0, true); |
| 2228 | NetSendCmdLoc(MyPlayerId, true, CMD_OPERATEOBJ, questContainer.position); |
| 2229 | } |
| 2230 | } |
| 2231 | |
| 2232 | void OperateSlainHero(const Player &player, Object &corpse, bool sendmsg) |
| 2233 | { |
no test coverage detected