Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2020
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1.  
  2. ต่อจาก pw.WriteBoolean(item.IsShowHighLight)
  3. ของ Gacha items
  4. ----- - - - - -- - - - - - -
  5. if event, ok := models.EventGachapon[machine.EventID]; ok {
  6. pw.WriteBoolean(true)
  7. if event.HaveGuaranteeEvent { // มีอีเว้น การันตีไหม
  8. pw.WriteBoolean(true)
  9. pw.WriteUInt32(event.NumGuaranteeAmount)
  10. pw.WriteInt64(event.GuaranteeCloseTime.Time.Unix())
  11. pw.WriteUInt32(event.NumGuaranteeAmount - userData.PlayEventAmount) // user data เหลืออีกกี่ครั้งจะการันตี
  12. } else {
  13. pw.WriteBoolean(false)
  14. }
  15.  
  16. if event.HaveOpenFreeEvent { // มีอีเว้นเปิดฟรีไหม
  17. pw.WriteBoolean(true)
  18. pw.WriteInt64(userData.PlayFreeTime.Unix()) // เวลาที่จะเปิดฟรี
  19. } else {
  20. pw.WriteBoolean(false)
  21. }
  22.  
  23. pw.WriteUInt32(event.MileageBox1). // Mileage detail
  24. pw.WriteUInt32(event.MileageBox2)
  25. pw.WriteUInt32(event.MileageBox3)
  26. pw.WriteUInt32(event.MileageBox4)
  27.  
  28. pw.WriteUInt32(userData.PlayAmount). // user Mileage data
  29. pw.WriteBoolean(userData.IsReceiveBox1)
  30. pw.WriteBoolean(userData.IsReceiveBox2)
  31. pw.WriteBoolean(userData.IsReceiveBox3)
  32. pw.WriteBoolean(userData.IsReceiveBox4)
  33.  
  34. } else {
  35. pw.WriteBoolean(false)
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement