(roomId int)
| 127 | } |
| 128 | |
| 129 | func (p ScriptParty) SetResetRoomId(roomId int) { |
| 130 | p.each(func(a ScriptActor) { |
| 131 | if a.userRecord == nil { |
| 132 | return |
| 133 | } |
| 134 | a.userRecord.Character.RoomIdOnReset = roomId |
| 135 | }) |
| 136 | } |
| 137 | |
| 138 | func (p ScriptParty) GiveQuest(questId string) { |
| 139 | p.each(func(a ScriptActor) { |