이번 핫픽스(v38.11)에서 섬 내 거래를 위해 마켓플레이스 모듈 Verse API를 업데이트하여 유로 랜덤 아이템과 플레이어 구매 메시지를 제한했습니다.
AllowPaidRandomItems 및 AllowDirectPromptsToPurchase 가 RestrictPaidRandomItems 및 RestrictDirectPromptsToPurchase 로 바로 대체되었습니다.
중요: 이전 AllowPaidRandomItems 및 AllowDirectPromptsToPurchase 메서드는 마켓플레이스 모듈에 더 이상 존재하지 않습니다. 해당 메서드를 사용한 프로젝트는 컴파일되지 않으며, 기존 섬은 업데이트될 때까지 작동을 멈추게 됩니다.
아래는 이전 메서드인 AllowPaidRandomItems 입니다.
OnEvent(Agent:agent):void=
if (Player := player[Agent]):
if (AllowPaidRandomItems[Player]):
Print(“Player is allowed to purchase PaidRandomItems.”)
else:
Print(“Player is not allowed to purchase PaidRandomItems.”)
이 메서드는 아래의 RestrictPaidRandomItems 메서드로 대체됩니다.
OnEvent(Agent:agent):void=
if (Player := player[Agent]):
if (RestrictPaidRandomItems[Player]):
Print(“Player is not allowed to purchase PaidRandomItems.”)
else:
Print(“Player is allowed to purchase PaidRandomItems.”)
새 메서드에는 RestrictPaidRandomItems[Player] 가 true인 경우 플레이어의 유료 랜덤 아이템 구매를 방지하고, 반면에 결과가 false인 경우 이전 메서드가 이를 방지하는 로직이 포함되어 있습니다. 이는 또한 AllowDirectPromptsToPurchase 에서 RestrictDirectPromptsToPurchase 로의 변경에도 적용됩니다.
조치 필요
이러한 함수를 변환하는 경우, 새 메서드에 맞춰 로직을 반전해야 합니다. 이는 위의 RestrictPaidRandomItems 스니펫에 나와 있으며, if 명령문의 else 분기가 이제 플레이어가 유료 랜덤 아이템을 구매할 수 있는 사례를 처리합니다.